Binding to a WPF hosted control's DependencyProperty in WinForms
Posted
by Reddog
on Stack Overflow
See other posts from Stack Overflow
or by Reddog
Published on 2010-06-14T21:19:12Z
Indexed on
2010/06/14
21:22 UTC
Read the original article
Hit count: 678
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?
© Stack Overflow or respective owner