I have a WinForms app with some elements that are hosted WPF user controls (using ElementHost).
I want to be able to bind my WinForm's control property (Button.Enabled
) to a custom DependencyProperty of the hosted WPF user control (SearchResults.IsAccountSelected
).
Is it possible to bind a System.Windows.Forms.Binding to a property managed by a DependencyProperty?
Also, since I know the System.Windows.Forms.Binding watches for INotifyPropertyChanged.PropertyChanged
events - will a property backed by a DependencyProperty automatically fire these events or will I have to implement and manage the sending of PropertyChanged events manually?