コード例 #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));
 }
コード例 #2
0
 static RibbonTabHeader()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(RibbonTabHeader), new FrameworkPropertyMetadata(typeof(RibbonTabHeader)));
     ResourceHelper.SetDefaultStyle(typeof(RibbonTabHeader), Resource.ControlStyle);
     ContextMenuProperty.Override(typeof(RibbonTabHeader), coerce: OnCoerceContextMenu);
 }