Esempio n. 1
0
        private static void PropertyChangeCallback(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MyUserControl myControl = obj as MyUserControl;

            myControl.RaisePropertyChange("ForeColour");
            myControl.OnColorPropertyChange();
        }
Esempio n. 2
0
        private static void OnCaptionPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
        {
            MyUserControl myControl = dependencyObject as MyUserControl;

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