12 instantiations of Style
PresentationFramework (12)
System\Windows\Controls\AccessText.cs (1)
557Style accessKeyStyle = new Style(typeof(Run));
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
43Style style = new Style(typeof(CheckBox), baseStyle); 75Style style = new Style(typeof(CheckBox), baseStyle);
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
228Style style = new Style(typeof(ComboBox));
System\Windows\Controls\DataGridTextColumn.cs (2)
39Style style = new Style(typeof(TextBlock)); 62Style style = new Style(typeof(TextBox));
System\Windows\Controls\Image.cs (1)
418Style style = new Style(typeof(Image), null);
System\Windows\Controls\InkCanvas.cs (1)
107Style defaultStyle = new Style(ownerType);
System\Windows\Controls\MediaElement.cs (1)
109Style style = new Style(typeof(MediaElement), null);
System\Windows\FrameworkElement.cs (1)
3826Style defaultFocusVisualStyle = new Style();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9675bamlType.DefaultConstructor = delegate() { return new System.Windows.Style(); };
System\Windows\Markup\KnownTypes.cs (1)
1578case KnownElements.Style: o = new System.Windows.Style(); break;
321 references to Style
PresentationFramework (287)
MS\Internal\FrameworkObject.cs (2)
167internal Style ThemeStyle 335internal Style Style
MS\Internal\Helper.cs (1)
335(style is Style || style is ResourceReferenceExpression))
System\Windows\Controls\AccessText.cs (3)
551private static Style AccessKeyStyle 557Style accessKeyStyle = new Style(typeof(Run)); 801private static Style _accessKeyStyle;
System\Windows\Controls\Calendar.cs (9)
122public Style CalendarButtonStyle 124get { return (Style)GetValue(CalendarButtonStyleProperty); } 134typeof(Style), 144public Style CalendarDayButtonStyle 146get { return (Style)GetValue(CalendarDayButtonStyleProperty); } 156typeof(Style), 166public Style CalendarItemStyle 168get { return (Style)GetValue(CalendarItemStyleProperty); } 178typeof(Style),
System\Windows\Controls\DataGrid.cs (18)
890public Style RowStyle 892get { return (Style)GetValue(RowStyleProperty); } 900DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged))); 1384public Style CellStyle 1386get { return (Style)GetValue(CellStyleProperty); } 1394DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged))); 1399public Style ColumnHeaderStyle 1401get { return (Style)GetValue(ColumnHeaderStyleProperty); } 1409DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged))); 1414public Style RowHeaderStyle 1416get { return (Style)GetValue(RowHeaderStyleProperty); } 1424DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged))); 8146DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged)); 8151public Style DragIndicatorStyle 8153get { return (Style)GetValue(DragIndicatorStyleProperty); } 8161DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null)); 8166public Style DropLocationIndicatorStyle 8168get { return (Style)GetValue(DropLocationIndicatorStyleProperty); }
System\Windows\Controls\DataGridBoundColumn.cs (9)
124public Style ElementStyle 126get { return (Style)GetValue(ElementStyleProperty); } 136typeof(Style), 144public Style EditingElementStyle 146get { return (Style)GetValue(EditingElementStyleProperty); } 156typeof(Style), 165Style style = PickStyle(isEditing, defaultToElementStyle); 172private Style PickStyle(bool isEditing, bool defaultToElementStyle) 174Style style = isEditing ? EditingElementStyle : ElementStyle;
System\Windows\Controls\DataGridCheckBoxColumn.cs (10)
31public static Style DefaultElementStyle 37Style baseStyle = null; 40baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 43Style style = new Style(typeof(CheckBox), baseStyle); 63public static Style DefaultEditingElementStyle 69Style baseStyle = null; 72baseStyle = Application.Current.FindResource(typeof(CheckBox)) as Style; 75Style style = new Style(typeof(CheckBox), baseStyle); 230private static Style _defaultElementStyle; 231private static Style _defaultEditingElementStyle;
System\Windows\Controls\DataGridColumn.cs (9)
42public Style HeaderStyle 44get { return (Style)GetValue(HeaderStyleProperty); } 52DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle)); 117public Style CellStyle 119get { return (Style)GetValue(CellStyleProperty); } 127DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle)); 1334DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle)); 1339public Style DragIndicatorStyle 1341get { return (Style)GetValue(DragIndicatorStyleProperty); }
System\Windows\Controls\DataGridComboBoxColumn.cs (12)
222public static Style DefaultElementStyle 228Style style = new Style(typeof(ComboBox)); 245public static Style DefaultEditingElementStyle 258public Style ElementStyle 260get { return (Style)GetValue(ElementStyleProperty); } 274public Style EditingElementStyle 276get { return (Style)GetValue(EditingElementStyleProperty); } 291Style style = PickStyle(isEditing, defaultToElementStyle); 303Style style = PickStyle(isEditing, defaultToElementStyle); 310private Style PickStyle(bool isEditing, bool defaultToElementStyle) 312Style style = isEditing ? EditingElementStyle : ElementStyle; 626private static Style _defaultElementStyle;
System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
149public static Style DefaultElementStyle 158public static Style DefaultEditingElementStyle
System\Windows\Controls\DataGridRow.cs (3)
295public Style HeaderStyle 297get { return (Style)GetValue(HeaderStyleProperty); } 305DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
System\Windows\Controls\DataGridTextColumn.cs (6)
33public static Style DefaultElementStyle 39Style style = new Style(typeof(TextBlock)); 56public static Style DefaultEditingElementStyle 62Style style = new Style(typeof(TextBox)); 405private static Style _defaultElementStyle; 406private static Style _defaultEditingElementStyle;
System\Windows\Controls\DatePicker.cs (3)
130public Style CalendarStyle 132get { return (Style)GetValue(CalendarStyleProperty); } 142typeof(Style),
System\Windows\Controls\GridSplitter.cs (5)
228typeof(Style), 230new FrameworkPropertyMetadata((Style)null)); 235public Style PreviewStyle 237get { return (Style)GetValue(PreviewStyleProperty); } 394public 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)
136typeof(Style), 145public Style HeaderContainerStyle 147get { return (Style)GetValue(HeaderContainerStyleProperty); }
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
63public Style ColumnHeaderContainerStyle 65get { return (Style)GetValue(ColumnHeaderContainerStyleProperty); } 1469Style style = ColumnHeaderContainerStyle;
System\Windows\Controls\GroupItem.cs (1)
182Style style = groupStyle.ContainerStyle;
System\Windows\Controls\GroupStyle.cs (2)
115public Style ContainerStyle 224Style _containerStyle;
System\Windows\Controls\Image.cs (3)
388Style style = CreateDefaultStyles(); 416private static Style CreateDefaultStyles() 418Style style = new Style(typeof(Image), null);
System\Windows\Controls\InkCanvas.cs (1)
107Style defaultStyle = new Style(ownerType);
System\Windows\Controls\ItemsControl.cs (10)
685typeof(Style), 688(Style) null, 696public Style ItemContainerStyle 698get { return (Style) GetValue(ItemContainerStyleProperty); } 709((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 717protected virtual void OnItemContainerStyleChanged(Style oldItemContainerStyle, Style newItemContainerStyle) 1758Style itemContainerStyle = parentItemsControl.ItemContainerStyle; 3501Style style = ItemContainerStyle;
System\Windows\Controls\MediaElement.cs (3)
80Style style = CreateDefaultStyles(); 107private static Style CreateDefaultStyles() 109Style style = new Style(typeof(MediaElement), null);
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
772Style style = null; 802Style style = null;
System\Windows\Controls\SoundPlayerAction.cs (1)
131Style targetStyle,
System\Windows\Controls\StyleSelector.cs (2)
36/// Override this method to return an app specific <seealso cref="Style"/>. 41public virtual Style SelectStyle(object item, DependencyObject container)
System\Windows\FrameworkContentElement.cs (15)
78Style defaultValue = (Style)metadata.DefaultValue; 135(Style) null, // default value 143public Style Style 165StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache); 169protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle) 222internal Style ThemeStyle 239StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache); 905public Style FocusVisualStyle 907get { return (Style) GetValue(FocusVisualStyleProperty); } 2180private Style _styleCache; 2183private Style _themeStyleCache;
System\Windows\FrameworkElement.cs (23)
128Style defaultValue = (Style) metadata.DefaultValue; 154typeof(Style), 157(Style) null, // default value 164public Style Style 186StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache); 270internal Style ThemeStyle 286StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache); 320protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle) 1172Style style; 1174Style themeStyle; 2989Style selfStyle = null; 3818private static Style _defaultFocusVisualStyle = null; 3820internal static Style DefaultFocusVisualStyle 3826Style defaultFocusVisualStyle = new Style(); 3841typeof(Style), 3849public Style FocusVisualStyle 3851get { return (Style) GetValue(FocusVisualStyleProperty); } 6377private Style _themeStyleCache; 6384private Style _styleCache;
System\Windows\Generated\FrameworkContentElement.cs (2)
465Style selfStyle = null; 466Style selfThemeStyle = null;
System\Windows\Generated\FrameworkElement.cs (2)
481Style selfStyle = null; 482Style selfThemeStyle = null;
System\Windows\HierarchicalDataTemplate.cs (2)
109public Style ItemContainerStyle 239private Style _itemContainerStyle;
System\Windows\Input\KeyboardNavigation.cs (7)
503public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 517public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 757private Style _focusVisualStyle; 864Style fvs = fe.FocusVisualStyle; 870fvs = FrameworkElement.FindResourceInternal(fe, fce: null, SystemParameters.FocusVisualStyleKey) as Style; 891Style fvs = fce.FocusVisualStyle; 897fvs = FrameworkElement.FindResourceInternal(fe: null, fce, SystemParameters.FocusVisualStyleKey) as Style;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
716case 620: t = () => typeof(Style); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (20)
5755Type type = typeof(System.Windows.Style); 5757this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 5763bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Setters; }; 6464Type type = typeof(System.Windows.Style); 6466this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6475bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; }; 6476bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).TargetType; }; 6484Type type = typeof(System.Windows.Style); 6486this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6492bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Triggers; }; 6682Type type = typeof(System.Windows.Style); 6684this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6686typeof(System.Windows.Style), // type 6691bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; }; 6692bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).BasedOn; }; 6862Type type = typeof(System.Windows.Style); 6864this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6871bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; }; 6872bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Resources; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9673typeof(System.Windows.Style),
System\Windows\Markup\BamlRecordReader.cs (2)
4116Style style = (Style)stackData.ObjectData;
System\Windows\Markup\DependencyPropertyConverter.cs (1)
193XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
System\Windows\Markup\KnownTypes.cs (2)
2528case KnownElements.Style: return (o as System.Windows.Style).Setters; 6174case KnownElements.Style: t = typeof(System.Windows.Style); break;
System\Windows\Markup\RoutedEventConverter.cs (1)
90XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
System\Windows\Markup\WpfXamlLoader.cs (1)
402typeof(Style).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType))
System\Windows\Markup\XamlStyleSerializer.cs (1)
91Type styleTargetType = Style.DefaultTargetType;
System\Windows\Media\Animation\BeginStoryboard.cs (1)
178internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
61internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
System\Windows\Media\Animation\Storyboard.cs (1)
394if( nameScope is Style )
System\Windows\StaticResourceExtension.cs (4)
222XamlType styleXType = schemaContext.GetXamlType(typeof(Style)); 264if (ambientValue.Value is Style) 266var style = (Style)ambientValue.Value;
System\Windows\Style.cs (7)
72public Style(Type targetType, Style basedOn) 202public Style BasedOn 602Style latestBasedOn = this; 631private void ProcessSetters(Style style) 713private void ProcessSelfStyles(Style style) 739private void ProcessVisualTriggers(Style style) 965private Style _basedOn;
System\Windows\StyleHelper.cs (55)
63Style oldStyle, 64Style newStyle, 65ref Style styleCache) 102Style oldThemeStyle, 103Style newThemeStyle, 104ref Style themeStyleCache) 136Style style = null; 170internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) 177Style oldThemeStyle = null; 178Style newThemeStyle = null; 233if( styleLookup is Style ) 237newThemeStyle = (Style)styleLookup; 261newThemeStyle = styleMetadata.DefaultValue as Style; 311Style style = fe.Style; 312Style themeStyle = fe.ThemeStyle; 1339Style oldStyle, 1340Style newStyle, 1374Style newStyle, 1437Style oldStyle, 1674Style oldStyle, 2408Style selfStyle; 2409Style selfThemeStyle; 2506Style ownerStyle, 3031Style style, 3032Style themeStyle) 3046Style style) 3156Style oldStyle, 3157Style newStyle) 3237Style oldThemeStyle, 3238Style newThemeStyle, 3239Style style) 3454Style oldStyle, 3455Style newStyle) 3551private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style) 3604Style 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)
127typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 152typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 925else if (typeof(Style).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1177typeof(Style).IsAssignableFrom(type)
System\Windows\TreeWalkHelper.cs (6)
238Style selfStyle, 239Style selfThemeStyle, 313Style selfStyle, 314Style selfThemeStyle, 812Style themeStyle = fe.ThemeStyle; 879Style themeStyle = fce.ThemeStyle;
System\Windows\TriggerAction.cs (1)
45Style targetStyle,
PresentationUI (1)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1044_findToolBar.Style = _findToolBar.FindResource(toolBarStyleKey) as Style;
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
104Style keyTipStyle = KeyTipService.GetKeyTipStyle(keyTipElement);
Microsoft\Windows\Controls\KeyTipService.cs (4)
121public static Style GetKeyTipStyle(DependencyObject element) 124return (Style)element.GetValue(KeyTipStyleProperty); 127public static void SetKeyTipStyle(DependencyObject element, Style value) 135DependencyProperty.RegisterAttached("KeyTipStyle", typeof(Style), typeof(KeyTipService), new FrameworkPropertyMetadata(null));
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
452public Style ContextualTabGroupStyle 454get { return (Style)GetValue(ContextualTabGroupStyleProperty); } 459DependencyProperty.Register("ContextualTabGroupStyle", typeof(Style), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyContextualTabGroupPropertyChanged))); 616public Style TabHeaderStyle 618get { return (Style)GetValue(TabHeaderStyleProperty); } 624DependencyProperty.Register("TabHeaderStyle", typeof(Style), typeof(Ribbon), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyTabHeaderPropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (19)
171DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, null, OnCoerceCurrentFilterStyle)); 173private Style CurrentFilterStyle 175get { return (Style)GetValue(CurrentFilterStyleProperty); } 1837public Style FilterItemContainerStyle 1839get { return (Style)GetValue(FilterItemContainerStyleProperty); } 1847DependencyProperty.Register("FilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1852public Style AllFilterItemContainerStyle 1854get { return (Style)GetValue(AllFilterItemContainerStyleProperty); } 1862DependencyProperty.Register("AllFilterItemContainerStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(OnFilterItemContainerStyleChanged)); 1928public override Style SelectStyle(object item, DependencyObject container) 1952public Style FilterMenuButtonStyle 1954get { return (Style)GetValue(FilterMenuButtonStyleProperty); } 1962DependencyProperty.Register("FilterMenuButtonStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null)); 2478public Style CategoryStyle 2480get { return (Style)GetValue(CategoryStyleProperty); } 2488DependencyProperty.Register("CategoryStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnCategoryStyleChanged))); 2519public Style GalleryItemStyle 2521get { return (Style)GetValue(GalleryItemStyleProperty); } 2526DependencyProperty.Register("GalleryItemStyle", typeof(Style), typeof(RibbonGallery), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyGalleryItemTemplateOrStylePropertyChanged)));
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (3)
142public Style HeaderStyle 144get { return (Style)GetValue(HeaderStyleProperty); } 150DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(RibbonTab), new FrameworkPropertyMetadata(null, OnNotifyHeaderPropertyChanged, CoerceHeaderStyle));