Two Way Binding Not Working on SelectedIndex

In the picker XAML code, I have:

  SelectedIndex="{Binding SelectedItemIndex}".


I also have a ViewModel class where I am attempting to programmatically change the selected item by saying:
SelectedItemIndex = x;

However, this does not do anything. I can change the selected item in other classes by saying:

picker.SelectedIndex = x, but I am trying to keep a consistent design in my code.


1 Reply

SS Suganya Sethuraman Syncfusion Team December 23, 2021 06:43 AM UTC

Hi Scott,

Since we are unable to reproduce the two-way binding not working in SfPicker, we would like you to check the issue with the attached sample and let us know if it is reproduced. Else, please revert to us by modifying the sample based on your application and provide the replication procedure or the sample. It will be helpful for us to provide a better solution at the earliest.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SfPicker_SelectedIndex583855782

Regards,
Suganya Sethuraman.

 


Loader.
Up arrow icon