Beispiel #1
0
 static NotifyIcon()
 {
     VisibilityProperty.OverrideMetadata(typeof(NotifyIcon), new PropertyMetadata(Visibility.Visible, OnVisibilityChanged));
     DataContextProperty.OverrideMetadata(typeof(NotifyIcon), new FrameworkPropertyMetadata(DataContextPropertyChanged));
     ContextMenuProperty.OverrideMetadata(typeof(NotifyIcon), new FrameworkPropertyMetadata(ContextMenuPropertyChanged));
 }
 static RibbonTabHeader()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(RibbonTabHeader), new FrameworkPropertyMetadata(typeof(RibbonTabHeader)));
     ResourceHelper.SetDefaultStyle(typeof(RibbonTabHeader), Resource.ControlStyle);
     ContextMenuProperty.Override(typeof(RibbonTabHeader), coerce: OnCoerceContextMenu);
 }