Exemplo n.º 1
0
 static Ribbon()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(Ribbon), new FrameworkPropertyMetadata(typeof(Ribbon)));
     ResourceHelper.SetDefaultStyle(typeof(Ribbon), Resource.ControlStyle);
     QuickAccessToolBarProperty.Override(typeof(Ribbon), coerce: (sender, baseValue, original) => baseValue ?? new RibbonQuickAccessToolBar());
     ContextMenuProperty.Override(typeof(Ribbon), coerce: OnCoerceContextMenu);
 }
Exemplo n.º 2
0
 static RibbonButton()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(RibbonButton), new FrameworkPropertyMetadata(typeof(RibbonButton)));
     ResourceHelper.SetDefaultStyle(typeof(RibbonButton), Resource.ControlStyle);
     ContextMenuProperty.Override(typeof(RibbonButton), coerce: OnCoerceContextMenu);
 }