xaml - Xamarin Forms 中是否有 'UpdateSourceTrigger' 等效项?

标签 xaml xamarin xamarin.forms

我正在使用 Xamarin.Forms,我的 View 完全在 XAML 中创建。我也在使用 Xamarin.Forms.Labs。

我已将 EntryCell 绑定(bind)到这样的属性:

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

该页面有一个“保存”工具栏项,它将属性保存到数据库中。

我遇到的问题是,仅当用户更改文本后输入单元格失去焦点时,才会更新 Name 属性。单击 ToolBarItem 不会更改焦点,因此在保存之前不会更新该属性。

我希望用户每次按键都更新该属性。我知道 Silverlight 的“UpdateSourceTrigger”,但在 Xamarin Forms 中找不到等效的方法?

最佳答案

Xamarin.Forms 中没有对应的 UpdateSourceTrigger

关于xaml - Xamarin Forms 中是否有 'UpdateSourceTrigger' 等效项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27870672/

相关文章:

C# WPF 在 XAML 中添加 KeyBinding 事件

c# - 在 wpf 中创建 WindowsFormsHost 的反射

c# - 使用 gps 定位系统服务依赖注入(inject)

xamarin.ios - xamarin 可以免费用于商业目的吗?

c# - 未找到方法 'SQLiteConnection.InsertAll'

Xamarin.forms OnAppLinkRequestReceived

c# - 具有 ContextMenu 单击事件的 WPF ListBox 项目

c# - UWP:用户控件 ListView DataTemplate 数据类型绑定(bind)

ios - UIPickerView 不可交互

c# - ListView 项目上的 Xamarin Forms AutomationId