Пример #1
0
        private static void PropertyChangeCallback(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MyUserControl myControl = obj as MyUserControl;

            myControl.RaisePropertyChange("ForeColour");
            myControl.OnColorPropertyChange();
        }
Пример #2
0
        private static void OnCaptionPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            MyUserControl myControl = dependencyObject as MyUserControl;

            myControl.RaisePropertyChange("ControlText");
            myControl.OnCaptionPropertyChanged();
        }