Beispiel #1
0
 static ModernContextMenuItem()
 {
     CommandProperty.OverrideMetadata(typeof(ModernContextMenuItem),
                                      new FrameworkPropertyMetadata(null, CommandPropertyChangedCallback, CommandPropertyCoerceValueCallback));
     CommandParameterProperty.OverrideMetadata(typeof(ModernContextMenuItem),
                                               new FrameworkPropertyMetadata(null, CommandParameterPropertyChangedCallback));
 }
Beispiel #2
0
 static RadioButtonWithImage()
 {
     CommandProperty.OverrideMetadata(typeof(RadioButtonWithImage), new FrameworkPropertyMetadata(OnCommandPropertyChanged));
     CommandParameterProperty.OverrideMetadata(typeof(RadioButtonWithImage), new FrameworkPropertyMetadata(OnCommandPropertyChanged));
 }
Beispiel #3
0
 static AutoInvalidateButton()
 {
     CommandProperty.OverrideMetadata(typeof(AutoInvalidateButton), new FrameworkPropertyMetadata(OnCommandChanged));
     CommandParameterProperty.OverrideMetadata(typeof(AutoInvalidateButton), new FrameworkPropertyMetadata(OnCommandParameterChanged));
 }