Hallo,
I have a picker (pickermode: dialog), and I'm binding ItemsSource and SelectedItemIndex to properties in my ViewModel class:
<Label Text="{Binding Path=Automezzo}">
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Path=ShowAutomezzoPickerCommand}" />
</Label.GestureRecognizers>
</Label>
<sf_picker:SfPicker ItemsSource="{Binding Path=Automezzi}"
SelectedIndex="{Binding Path=AutomezzoIndex, Mode=TwoWay}"
HeaderText="Selezione Automezzo"
PickerMode="Dialog"
IsOpen="{Binding Path=ShowAutomezzoPicker}" />
When I change the picker selection, the property AutomezzoIndex is changed, and the view loads new data. But I need to change AutomezzoIndex only when the picker is closed... how can I do that?
Thank you