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