13 instantiations of Style
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
65Resources.Add(ToolTipStyleKey, new Style(typeof(ToolTip))
PresentationFramework (12)
System\Windows\Controls\AccessText.cs (1)
555Style accessKeyStyle = new Style(typeof(Run));
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
39Style style = new Style(typeof(CheckBox), baseStyle); 71Style style = new Style(typeof(CheckBox), baseStyle);
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
224Style style = new Style(typeof(ComboBox));
System\Windows\Controls\DataGridTextColumn.cs (2)
36Style style = new Style(typeof(TextBlock)); 59Style style = new Style(typeof(TextBox));
System\Windows\Controls\Image.cs (1)
410Style style = new Style(typeof(Image), null);
System\Windows\Controls\InkCanvas.cs (1)
95Style defaultStyle = new Style(ownerType);
System\Windows\Controls\MediaElement.cs (1)
102Style style = new Style(typeof(MediaElement), null);
System\Windows\FrameworkElement.cs (1)
3819Style defaultFocusVisualStyle = new Style();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10730DefaultConstructor = delegate () { return new System.Windows.Style(); },
System\Windows\Markup\KnownTypes.cs (1)
1572case KnownElements.Style: o = new System.Windows.Style(); break;
323 references to Style
Microsoft.VisualStudio.LanguageServices (4)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.g.cs (3)
109((System.Windows.Style)(target)).Setters.Add(eventSetter); 120((System.Windows.Style)(target)).Setters.Add(eventSetter); 131((System.Windows.Style)(target)).Setters.Add(eventSetter);
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
102ToolTip = new ToolTip { Content = viewModel.ToolTipTextBlock, Style = (Style)FindResource(ToolTipStyleKey) };
PresentationFramework (285)
MS\Internal\FrameworkObject.cs (2)
164internal Style ThemeStyle 332internal Style Style
MS\Internal\Helper.cs (1)
326(style is Style || style is ResourceReferenceExpression))
System\Windows\Controls\AccessText.cs (3)
549private static Style AccessKeyStyle 555Style accessKeyStyle = new Style(typeof(Run)); 803private static Style _accessKeyStyle;
System\Windows\Controls\Calendar.cs (9)
118public Style CalendarButtonStyle 120get { return (Style)GetValue(CalendarButtonStyleProperty); } 130typeof(Style), 140public Style CalendarDayButtonStyle 142get { return (Style)GetValue(CalendarDayButtonStyleProperty); } 152typeof(Style), 162public Style CalendarItemStyle 164get { return (Style)GetValue(CalendarItemStyleProperty); } 174typeof(Style),
System\Windows\Controls\DataGrid.cs (18)
887public Style RowStyle 889get { return (Style)GetValue(RowStyleProperty); } 897DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 1381public Style CellStyle 1383get { return (Style)GetValue(CellStyleProperty); } 1391DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1396public Style ColumnHeaderStyle 1398get { return (Style)GetValue(ColumnHeaderStyleProperty); } 1406DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1411public Style RowHeaderStyle 1413get { return (Style)GetValue(RowHeaderStyleProperty); } 1421DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 8151DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8156public Style DragIndicatorStyle 8158get { return (Style)GetValue(DragIndicatorStyleProperty); } 8166DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8171public Style DropLocationIndicatorStyle 8173get { return (Style)GetValue(DropLocationIndicatorStyleProperty); }
System\Windows\Controls\DataGridBoundColumn.cs (9)
118public Style ElementStyle 120get { return (Style)GetValue(ElementStyleProperty); } 130typeof(Style), 138public Style EditingElementStyle 140get { return (Style)GetValue(EditingElementStyleProperty); } 150typeof(Style), 159Style style = PickStyle(isEditing, defaultToElementStyle); 166private Style PickStyle(bool isEditing, bool defaultToElementStyle) 168Style style = isEditing ? EditingElementStyle : ElementStyle;
System\Windows\Controls\DataGridCheckBoxColumn.cs (10)
27public static Style DefaultElementStyle 33Style baseStyle = null; 36baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 39Style style = new Style(typeof(CheckBox), baseStyle); 59public static Style DefaultEditingElementStyle 65Style baseStyle = null; 68baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 71Style style = new Style(typeof(CheckBox), baseStyle); 223private static Style _defaultElementStyle; 224private static Style _defaultEditingElementStyle;
System\Windows\Controls\DataGridColumn.cs (9)
39public Style HeaderStyle 41get { return (Style)GetValue(HeaderStyleProperty); } 49DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle)); 114public Style CellStyle 116get { return (Style)GetValue(CellStyleProperty); } 124DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle)); 1333DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle)); 1338public Style DragIndicatorStyle 1340get { return (Style)GetValue(DragIndicatorStyleProperty); }
System\Windows\Controls\DataGridComboBoxColumn.cs (12)
218public static Style DefaultElementStyle 224Style style = new Style(typeof(ComboBox)); 241public static Style DefaultEditingElementStyle 254public Style ElementStyle 256get { return (Style)GetValue(ElementStyleProperty); } 270public Style EditingElementStyle 272get { return (Style)GetValue(EditingElementStyleProperty); } 287Style style = PickStyle(isEditing, defaultToElementStyle); 299Style style = PickStyle(isEditing, defaultToElementStyle); 306private Style PickStyle(bool isEditing, bool defaultToElementStyle) 308Style style = isEditing ? EditingElementStyle : ElementStyle; 621private static Style _defaultElementStyle;
System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
142public static Style DefaultElementStyle 151public static Style DefaultEditingElementStyle
System\Windows\Controls\DataGridRow.cs (3)
291public Style HeaderStyle 293get { return (Style)GetValue(HeaderStyleProperty); } 301DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
System\Windows\Controls\DataGridTextColumn.cs (6)
30public static Style DefaultElementStyle 36Style style = new Style(typeof(TextBlock)); 53public static Style DefaultEditingElementStyle 59Style style = new Style(typeof(TextBox)); 402private static Style _defaultElementStyle; 403private static Style _defaultEditingElementStyle;
System\Windows\Controls\DatePicker.cs (3)
126public Style CalendarStyle 128get { return (Style)GetValue(CalendarStyleProperty); } 138typeof(Style),
System\Windows\Controls\GridSplitter.cs (5)
222typeof(Style), 224new FrameworkPropertyMetadata((Style)null)); 229public Style PreviewStyle 231get { return (Style)GetValue(PreviewStyleProperty); } 388public PreviewAdorner(GridSplitter gridSplitter, Style previewStyle)
System\Windows\Controls\GridView.cs (3)
249typeof(Style), 256public Style ColumnHeaderContainerStyle 258get { return (Style)GetValue(ColumnHeaderContainerStyleProperty); }
System\Windows\Controls\GridViewColumn.cs (3)
135typeof(Style), 144public Style HeaderContainerStyle 146get { return (Style)GetValue(HeaderContainerStyleProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
60public Style ColumnHeaderContainerStyle 62get { return (Style)GetValue(ColumnHeaderContainerStyleProperty); } 1474Style style = ColumnHeaderContainerStyle;
System\Windows\Controls\GroupItem.cs (1)
174Style style = groupStyle.ContainerStyle;
System\Windows\Controls\GroupStyle.cs (2)
115public Style ContainerStyle 224Style _containerStyle;
System\Windows\Controls\Image.cs (3)
380Style style = CreateDefaultStyles(); 408private static Style CreateDefaultStyles() 410Style style = new Style(typeof(Image), null);
System\Windows\Controls\InkCanvas.cs (1)
95Style defaultStyle = new Style(ownerType);
System\Windows\Controls\ItemsControl.cs (10)
676typeof(Style), 679(Style) null, 687public Style ItemContainerStyle 689get { return (Style) GetValue(ItemContainerStyleProperty); } 700((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 708protected virtual void OnItemContainerStyleChanged(Style oldItemContainerStyle, Style newItemContainerStyle) 1749Style itemContainerStyle = parentItemsControl.ItemContainerStyle; 3492Style style = ItemContainerStyle;
System\Windows\Controls\MediaElement.cs (3)
73Style style = CreateDefaultStyles(); 100private static Style CreateDefaultStyles() 102Style style = new Style(typeof(MediaElement), null);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
769Style style = null; 801Style style = null;
System\Windows\Controls\SoundPlayerAction.cs (1)
118Style targetStyle,
System\Windows\Controls\StyleSelector.cs (2)
28/// Override this method to return an app specific <seealso cref="Style"/>. 33public virtual Style SelectStyle(object item, DependencyObject container)
System\Windows\FrameworkContentElement.cs (15)
57Style defaultValue = (Style)metadata.DefaultValue; 114(Style) null, // default value 122public Style Style 144StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 148protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle) 201internal Style ThemeStyle 218StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache); 886public Style FocusVisualStyle 888get { return (Style) GetValue(FocusVisualStyleProperty); } 2163private Style _styleCache; 2166private Style _themeStyleCache;
System\Windows\FrameworkElement.cs (23)
110Style defaultValue = (Style) metadata.DefaultValue; 136typeof(Style), 139(Style) null, // default value 146public Style Style 168StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 252internal Style ThemeStyle 268StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache); 302protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle) 1161Style style; 1163Style themeStyle; 2980Style selfStyle = null; 3811private static Style _defaultFocusVisualStyle = null; 3813internal static Style DefaultFocusVisualStyle 3819Style defaultFocusVisualStyle = new Style(); 3834typeof(Style), 3842public Style FocusVisualStyle 3844get { return (Style) GetValue(FocusVisualStyleProperty); } 6378private Style _themeStyleCache; 6385private Style _styleCache;
System\Windows\Generated\FrameworkContentElement.cs (2)
459Style selfStyle = null; 460Style selfThemeStyle = null;
System\Windows\Generated\FrameworkElement.cs (2)
475Style selfStyle = null; 476Style selfThemeStyle = null;
System\Windows\HierarchicalDataTemplate.cs (2)
109public Style ItemContainerStyle 239private Style _itemContainerStyle;
System\Windows\Input\KeyboardNavigation.cs (7)
493public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 509public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 751private Style _focusVisualStyle; 858Style fvs = fe.FocusVisualStyle; 864fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 885Style fvs = fce.FocusVisualStyle; 891fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
714case 620: t = () => typeof(Style); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (20)
6149Type type = typeof(System.Windows.Style); 6151this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6158GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Setters; }, 6938Type type = typeof(System.Windows.Style); 6940this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6950SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; }, 6951GetDelegate = delegate (object target) { return ((System.Windows.Style)target).TargetType; } 6960Type type = typeof(System.Windows.Style); 6962this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6969GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Triggers; }, 7180Type type = typeof(System.Windows.Style); 7182this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 7184typeof(System.Windows.Style), // type 7190SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; }, 7191GetDelegate = delegate (object target) { return ((System.Windows.Style)target).BasedOn; } 7380Type type = typeof(System.Windows.Style); 7382this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 7390SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; }, 7391GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Resources; }
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
10727typeof(System.Windows.Style),
System\Windows\Markup\BamlRecordReader.cs (2)
4104Style style = (Style)stackData.ObjectData;
System\Windows\Markup\DependencyPropertyConverter.cs (1)
184XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
System\Windows\Markup\KnownTypes.cs (2)
2522case KnownElements.Style: return (o as System.Windows.Style).Setters; 6168case KnownElements.Style: t = typeof(System.Windows.Style); break;
System\Windows\Markup\RoutedEventConverter.cs (1)
87XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
System\Windows\Markup\WpfXamlLoader.cs (1)
401typeof(Style).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType))
System\Windows\Markup\XamlStyleSerializer.cs (1)
82Type styleTargetType = Style.DefaultTargetType;
System\Windows\Media\Animation\BeginStoryboard.cs (1)
175internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
58internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
System\Windows\Media\Animation\Storyboard.cs (1)
393if( nameScope is Style )
System\Windows\StaticResourceExtension.cs (2)
214XamlType styleXType = schemaContext.GetXamlType(typeof(Style)); 256if (ambientValue.Value is Style style)
System\Windows\Style.cs (7)
53public Style(Type targetType, Style basedOn) 182public Style BasedOn 585Style latestBasedOn = this; 614private void ProcessSetters(Style style) 696private void ProcessSelfStyles(Style style) 722private void ProcessVisualTriggers(Style style) 946private Style _basedOn;
System\Windows\StyleHelper.cs (55)
51Style oldStyle, 52Style newStyle, 53ref Style styleCache) 90Style oldThemeStyle, 91Style newThemeStyle, 92ref Style themeStyleCache) 122Style style = null; 156internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 163Style oldThemeStyle = null; 164Style newThemeStyle = null; 219if( styleLookup is Style ) 223newThemeStyle = (Style)styleLookup; 247newThemeStyle = styleMetadata.DefaultValue as Style; 297Style style = fe.Style; 298Style themeStyle = fe.ThemeStyle; 1335Style oldStyle, 1336Style newStyle, 1370Style newStyle, 1433Style oldStyle, 1670Style oldStyle, 2404Style selfStyle; 2405Style selfThemeStyle; 2502Style ownerStyle, 3027Style style, 3028Style themeStyle) 3042Style style) 3152Style oldStyle, 3153Style newStyle) 3233Style oldThemeStyle, 3234Style newThemeStyle, 3235Style style) 3450Style oldStyle, 3451Style newStyle) 3547private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style) 3600Style oldStyle, Style newStyle) 3874Style style = fo.Style; 3961Style themeStyle = fo.ThemeStyle; 4301Style ownerStyle, 4375Style ownerStyle, 4436Style style, FrameworkTemplate frameworkTemplate, 4474Style style, FrameworkTemplate frameworkTemplate ) 4509FrameworkContentElement fce, Style style, UncommonField<HybridDictionary[]> dataField ) 4564Style style, FrameworkTemplate ft, UncommonField<HybridDictionary[]> dataField ) 4652Style style, FrameworkTemplate frameworkTemplate) 4682Style style, FrameworkTemplate frameworkTemplate ) 4758Style style, FrameworkTemplate frameworkTemplate) 4826Style style, FrameworkTemplate frameworkTemplate) 4844int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate, 4889Style style, FrameworkTemplate frameworkTemplate, 4911int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate, 4984Style style, FrameworkTemplate frameworkTemplate, 5141Style style = (fe != null) ? fe.Style : fce.Style; 5221Style style = (fe != null) ? fe.ThemeStyle : fce.ThemeStyle; 5245Style style,
System\Windows\TemplateContent.cs (4)
124typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 149typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 924else if (typeof(Style).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1178typeof(Style).IsAssignableFrom(type)
System\Windows\TreeWalkHelper.cs (6)
234Style selfStyle, 235Style selfThemeStyle, 309Style selfStyle, 310Style selfThemeStyle, 819Style themeStyle = fe.ThemeStyle; 886Style themeStyle = fce.ThemeStyle;
System\Windows\TriggerAction.cs (1)
44Style targetStyle,
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1039_findToolBar.Style = _findToolBar.FindResource(toolBarStyleKey) as Style;
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
101Style keyTipStyle = KeyTipService.GetKeyTipStyle(keyTipElement);
Microsoft\Windows\Controls\KeyTipService.cs (4)
119public static Style GetKeyTipStyle(DependencyObject element) 122return (Style)element.GetValue(KeyTipStyleProperty); 125public static void SetKeyTipStyle(DependencyObject element, Style value) 133DependencyProperty.RegisterAttached("KeyTipStyle", typeof(Style), typeof(KeyTipService), new FrameworkPropertyMetadata(null));
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
449public Style ContextualTabGroupStyle 451get { return (Style)GetValue(ContextualTabGroupStyleProperty); } 456DependencyProperty.Register("ContextualTabGroupStyle", typeof(Style), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyContextualTabGroupPropertyChanged))); 613public Style TabHeaderStyle 615get { return (Style)GetValue(TabHeaderStyleProperty); } 621DependencyProperty.Register("TabHeaderStyle", typeof(Style), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyTabHeaderPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (19)
169DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle)); 171private Style CurrentFilterStyle 173get { return (Style)GetValue(CurrentFilterStyleProperty); } 1839public Style FilterItemContainerStyle 1841get { return (Style)GetValue(FilterItemContainerStyleProperty); } 1849DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1854public Style AllFilterItemContainerStyle 1856get { return (Style)GetValue(AllFilterItemContainerStyleProperty); } 1864DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1930public override Style SelectStyle(object item, DependencyObject container) 1954public Style FilterMenuButtonStyle 1956get { return (Style)GetValue(FilterMenuButtonStyleProperty); } 1964DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2480public Style CategoryStyle 2482get { return (Style)GetValue(CategoryStyleProperty); } 2490DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2521public Style GalleryItemStyle 2523get { return (Style)GetValue(GalleryItemStyleProperty); } 2528DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
140public Style HeaderStyle 142get { return (Style)GetValue(HeaderStyleProperty); } 148DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(RibbonTab), new FrameworkPropertyMetadata(null, OnNotifyHeaderPropertyChanged, CoerceHeaderStyle));