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\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\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\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;
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,