Hello,
I believe this is a bug on the control as I expected it to default to TwoWay (although I may be wrong). Here is the XAML:
...xForms:SfAutoComplete ...
DataSource="{Binding SomeListOfObject}"
SelectedItem="{Binding SomeObject}"
DisplayMemberPath="Name"
>
After selecting an item in the control, I read the property SomeObject in my view model and it is null.
Whereas with this XAML it works fine:
...xForms:SfAutoComplete ...
DataSource="{Binding SomeListOfObject}"
SelectedItem="{Binding SomeObject, Mode=TwoWay}"
DisplayMemberPath="Name"
>
EDIT: It looks like there are other problems with SelectedItem. For example, after I select one item from the list, if I assign null to SelectedItem it does not clear the text on the control. I am doing this in the view model, not directly. For the moment I resorted to setting the Text to empty in the code behind but it would be cleaner if I could do everything from the view model.
Thanks,
Jose
P.S. The forum deleted some of the XAML.