Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 'UpdateSourceTrigger' equivalent in Xamarin Forms?

I am using Xamarin.Forms, with my view created fully in XAML. I am also using Xamarin.Forms.Labs.

I have bound an EntryCell to a property like so:

<EntryCell Label="Name:" Text="{Binding Name, Mode=TwoWay}" />

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?

like image 633
michaelmsm89 Avatar asked Jan 09 '15 23:01

michaelmsm89


1 Answers

There is no equivalent for UpdateSourceTrigger in Xamarin.Forms

like image 200
Ketobomb Avatar answered Dec 13 '22 16:12

Ketobomb