Is there an equivalent to “UpdateSourceTrigger” in Xamarin Forms?

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

I associated EntryCell with this property:

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

The page has a “Save” ToolBarItem that saves the property in the database.

The problem is that the Name property is only updated when the input cell loses focus after the user changes the text. Clicking on the ToolBarItem does not change the focus, and therefore the property is not updated before saving.

I would like the property to be updated every time a user presses a key. I know "UpdateSourceTrigger" for Silverlight, but I can’t find an equivalent way to do this in Xamarin Forms?

+6
source share

Source: https://habr.com/ru/post/980788/


All Articles