ImportOptions.EnableDataBinding 属性

定义

获取或设置一个值,该值指定生成的代码中的类型是否应实现 INotifyPropertyChanged 接口。

public:
 property bool EnableDataBinding { bool get(); void set(bool value); };
public bool EnableDataBinding { get; set; }
member this.EnableDataBinding : bool with get, set
Public Property EnableDataBinding As Boolean

属性值

如果生成的代码应实现 接口,则为 。 默认值为 false

注解

.NET框架组件(如Windows 窗体或Windows Presentation Foundation)使用此接口捕获用户界面更新的数据更改。 当值发生更改时,生成的属性会引发属性更改事件,从而允许 UI 挂钩相应地执行操作。

适用于