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\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\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)
1179Style style;
1181Style themeStyle;
2996Style selfStyle = null;
3825private static Style _defaultFocusVisualStyle = null;
3827internal static Style DefaultFocusVisualStyle
3833Style defaultFocusVisualStyle = new Style();
3848typeof(Style),
3856public Style FocusVisualStyle
3858get { return (Style) GetValue(FocusVisualStyleProperty); }
6384private Style _themeStyleCache;
6391private Style _styleCache;
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,