public ErrorPanel() { InitializeComponent(); DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(ErrorPanel_DataContextChanged); }
public static void DetachEnabledHandler(this System.Windows.Controls.MenuItem mi, System.Windows.DependencyPropertyChangedEventHandler eh) { mi.IsEnabledChanged -= eh; }