System\Windows\Controls\DataGrid.cs (18)
884public Style RowStyle
886get { return (Style)GetValue(RowStyleProperty); }
894DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
1372public Style CellStyle
1374get { return (Style)GetValue(CellStyleProperty); }
1382DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1387public Style ColumnHeaderStyle
1389get { return (Style)GetValue(ColumnHeaderStyleProperty); }
1397DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1402public Style RowHeaderStyle
1404get { return (Style)GetValue(RowHeaderStyleProperty); }
1412DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
8100DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8105public Style DragIndicatorStyle
8107get { return (Style)GetValue(DragIndicatorStyleProperty); }
8115DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null));
8120public Style DropLocationIndicatorStyle
8122get { return (Style)GetValue(DropLocationIndicatorStyleProperty); }
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));
1324DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle));
1329public Style DragIndicatorStyle
1331get { return (Style)GetValue(DragIndicatorStyleProperty); }
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);
883public Style FocusVisualStyle
885get { return (Style) GetValue(FocusVisualStyleProperty); }
2154private Style _styleCache;
2157private 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)
1158Style style;
1160Style themeStyle;
2977Style selfStyle = null;
3805private static Style _defaultFocusVisualStyle = null;
3807internal static Style DefaultFocusVisualStyle
3813Style defaultFocusVisualStyle = new Style();
3828typeof(Style),
3836public Style FocusVisualStyle
3838get { return (Style) GetValue(FocusVisualStyleProperty); }
6366private Style _themeStyleCache;
6373private Style _styleCache;
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\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;
298Style style = fe.Style;
299Style themeStyle = fe.ThemeStyle;
1331Style oldStyle,
1332Style newStyle,
1366Style newStyle,
1429Style oldStyle,
1666Style oldStyle,
2397Style selfStyle;
2398Style selfThemeStyle;
2495Style ownerStyle,
3017Style style,
3018Style themeStyle)
3032Style style)
3142Style oldStyle,
3143Style newStyle)
3223Style oldThemeStyle,
3224Style newThemeStyle,
3225Style style)
3440Style oldStyle,
3441Style newStyle)
3537private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style)
3590Style oldStyle, Style newStyle)
3864Style style = fo.Style;
3951Style themeStyle = fo.ThemeStyle;
4291Style ownerStyle,
4365Style ownerStyle,
4426Style style, FrameworkTemplate frameworkTemplate,
4464Style style, FrameworkTemplate frameworkTemplate )
4499FrameworkContentElement fce, Style style, UncommonField<HybridDictionary[]> dataField )
4554Style style, FrameworkTemplate ft, UncommonField<HybridDictionary[]> dataField )
4642Style style, FrameworkTemplate frameworkTemplate)
4672Style style, FrameworkTemplate frameworkTemplate )
4748Style style, FrameworkTemplate frameworkTemplate)
4816Style style, FrameworkTemplate frameworkTemplate)
4834int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate,
4879Style style, FrameworkTemplate frameworkTemplate,
4901int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate,
4974Style style, FrameworkTemplate frameworkTemplate,
5131Style style = (fe != null) ? fe.Style : fce.Style;
5211Style style = (fe != null) ? fe.ThemeStyle : fce.ThemeStyle;
5235Style style,