我有一个WinForms应用程序,其中包含一些使用ElementHost托管的WPF用户控件。
我希望能够将我的WinForm控件属性(Button.Enabled)绑定到托管的WPF用户控件(SearchResults.IsAccountSelected)的自定义DependencyProperty。
是否可以将System.Windows.Forms.Binding绑定到由DependencyProperty管理的属性?
此外,由于我知道System.Windows.Forms.Binding会监视INotifyPropertyChanged.PropertyChanged事件,因此由DependencyProperty支持的属性是否会自动触发这些事件,还是我必须手动实现和管理发送PropertyChanged事件?
我希望能够将我的WinForm控件属性(Button.Enabled)绑定到托管的WPF用户控件(SearchResults.IsAccountSelected)的自定义DependencyProperty。
是否可以将System.Windows.Forms.Binding绑定到由DependencyProperty管理的属性?
此外,由于我知道System.Windows.Forms.Binding会监视INotifyPropertyChanged.PropertyChanged事件,因此由DependencyProperty支持的属性是否会自动触发这些事件,还是我必须手动实现和管理发送PropertyChanged事件?