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