I am using Xamarin.Forms with my view created in XAML. I am also using Xamarin.Forms.Labs.
I have bound an EntryCell to a property like so:
View:
<EntryCell Label="Name:" Text="{Binding Name, Mode=TwoWay}" />
ViewModel:
string _name;
public String Name
{
get { return _name; }
set { SetProperty(ref _name, value); }
}
The page has a 'Save' ToolBarItem which saves the property to a database.
The issue I have is that the Name property is only updated when the entry cell loses focus after the user changes the text. Clicking the ToolBarItem does not change focus and therefore the property is not updated before being saved.
I would like the property to be updated with every key press from the user. I know of 'UpdateSourceTrigger' for Silverlight, but I can't find an equivalent way to do this in Xamarin Forms?
Thanks