System\Windows\Controls\DataGrid.cs (18)
883public Style RowStyle
885get { return (Style)GetValue(RowStyleProperty); }
893DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
1371public Style CellStyle
1373get { return (Style)GetValue(CellStyleProperty); }
1381DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1386public Style ColumnHeaderStyle
1388get { return (Style)GetValue(ColumnHeaderStyleProperty); }
1396DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1401public Style RowHeaderStyle
1403get { return (Style)GetValue(RowHeaderStyleProperty); }
1411DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
8099DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8104public Style DragIndicatorStyle
8106get { return (Style)GetValue(DragIndicatorStyleProperty); }
8114DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null));
8119public Style DropLocationIndicatorStyle
8121get { return (Style)GetValue(DropLocationIndicatorStyleProperty); }
System\Windows\Controls\DataGridColumn.cs (9)
38public Style HeaderStyle
40get { return (Style)GetValue(HeaderStyleProperty); }
48DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle));
113public Style CellStyle
115get { return (Style)GetValue(CellStyleProperty); }
123DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle));
1323DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle));
1328public Style DragIndicatorStyle
1330get { return (Style)GetValue(DragIndicatorStyleProperty); }
System\Windows\FrameworkContentElement.cs (15)
56Style defaultValue = (Style)metadata.DefaultValue;
113(Style) null, // default value
121public Style Style
143StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache);
147protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle)
200internal Style ThemeStyle
217StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache);
882public Style FocusVisualStyle
884get { return (Style) GetValue(FocusVisualStyleProperty); }
2153private Style _styleCache;
2156private Style _themeStyleCache;
System\Windows\FrameworkElement.cs (23)
109Style defaultValue = (Style) metadata.DefaultValue;
135typeof(Style),
138(Style) null, // default value
145public Style Style
167StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache);
251internal Style ThemeStyle
267StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache);
301protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle)
1157Style style;
1159Style themeStyle;
2976Style selfStyle = null;
3804private static Style _defaultFocusVisualStyle = null;
3806internal static Style DefaultFocusVisualStyle
3812Style defaultFocusVisualStyle = new Style();
3827typeof(Style),
3835public Style FocusVisualStyle
3837get { return (Style) GetValue(FocusVisualStyleProperty); }
6365private Style _themeStyleCache;
6372private Style _styleCache;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (20)
6148Type type = typeof(System.Windows.Style);
6150this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
6157GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Setters; },
6937Type type = typeof(System.Windows.Style);
6939this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
6949SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; },
6950GetDelegate = delegate (object target) { return ((System.Windows.Style)target).TargetType; }
6959Type type = typeof(System.Windows.Style);
6961this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
6968GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Triggers; },
7179Type type = typeof(System.Windows.Style);
7181this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
7183typeof(System.Windows.Style), // type
7189SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; },
7190GetDelegate = delegate (object target) { return ((System.Windows.Style)target).BasedOn; }
7379Type type = typeof(System.Windows.Style);
7381this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType
7389SetDelegate = delegate (object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; },
7390GetDelegate = delegate (object target) { return ((System.Windows.Style)target).Resources; }
System\Windows\StyleHelper.cs (55)
50Style oldStyle,
51Style newStyle,
52ref Style styleCache)
89Style oldThemeStyle,
90Style newThemeStyle,
91ref Style themeStyleCache)
121Style style = null;
155internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
162Style oldThemeStyle = null;
163Style newThemeStyle = null;
218if( styleLookup is Style )
222newThemeStyle = (Style)styleLookup;
246newThemeStyle = styleMetadata.DefaultValue as Style;
297Style style = fe.Style;
298Style themeStyle = fe.ThemeStyle;
1330Style oldStyle,
1331Style newStyle,
1365Style newStyle,
1428Style oldStyle,
1665Style oldStyle,
2396Style selfStyle;
2397Style selfThemeStyle;
2494Style ownerStyle,
3016Style style,
3017Style themeStyle)
3031Style style)
3141Style oldStyle,
3142Style newStyle)
3222Style oldThemeStyle,
3223Style newThemeStyle,
3224Style style)
3439Style oldStyle,
3440Style newStyle)
3536private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style)
3589Style oldStyle, Style newStyle)
3863Style style = fo.Style;
3950Style themeStyle = fo.ThemeStyle;
4290Style ownerStyle,
4364Style ownerStyle,
4425Style style, FrameworkTemplate frameworkTemplate,
4463Style style, FrameworkTemplate frameworkTemplate )
4498FrameworkContentElement fce, Style style, UncommonField<HybridDictionary[]> dataField )
4553Style style, FrameworkTemplate ft, UncommonField<HybridDictionary[]> dataField )
4641Style style, FrameworkTemplate frameworkTemplate)
4671Style style, FrameworkTemplate frameworkTemplate )
4747Style style, FrameworkTemplate frameworkTemplate)
4815Style style, FrameworkTemplate frameworkTemplate)
4833int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate,
4878Style style, FrameworkTemplate frameworkTemplate,
4900int sourceChildIndex, Style style, FrameworkTemplate frameworkTemplate,
4973Style style, FrameworkTemplate frameworkTemplate,
5130Style style = (fe != null) ? fe.Style : fce.Style;
5210Style style = (fe != null) ? fe.ThemeStyle : fce.ThemeStyle;
5234Style style,