src\Framework\System\Windows\Controls\DataGrid.cs (18)
891public Style RowStyle
893get { return (Style)GetValue(RowStyleProperty); }
901DependencyProperty.Register("RowStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnRowStyleChanged)));
1385public Style CellStyle
1387get { return (Style)GetValue(CellStyleProperty); }
1395DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndCellPropertyChanged)));
1400public Style ColumnHeaderStyle
1402get { return (Style)GetValue(ColumnHeaderStyleProperty); }
1410DependencyProperty.Register("ColumnHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyColumnAndColumnHeaderPropertyChanged)));
1415public Style RowHeaderStyle
1417get { return (Style)GetValue(RowHeaderStyleProperty); }
1425DependencyProperty.Register("RowHeaderStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(OnNotifyRowAndRowHeaderPropertyChanged)));
8152DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged));
8157public Style DragIndicatorStyle
8159get { return (Style)GetValue(DragIndicatorStyleProperty); }
8167DependencyProperty.Register("DropLocationIndicatorStyle", typeof(Style), typeof(DataGrid), new FrameworkPropertyMetadata(null));
8172public Style DropLocationIndicatorStyle
8174get { return (Style)GetValue(DropLocationIndicatorStyleProperty); }
src\Framework\System\Windows\Controls\DataGridColumn.cs (9)
43public Style HeaderStyle
45get { return (Style)GetValue(HeaderStyleProperty); }
53DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle));
118public Style CellStyle
120get { return (Style)GetValue(CellStyleProperty); }
128DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle));
1341DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new FrameworkPropertyMetadata(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle));
1346public Style DragIndicatorStyle
1348get { return (Style)GetValue(DragIndicatorStyleProperty); }
src\Framework\System\Windows\FrameworkContentElement.cs (15)
75Style defaultValue = (Style)metadata.DefaultValue;
132(Style) null, // default value
140public Style Style
162StyleHelper.UpdateStyleCache(null, fce, (Style) e.OldValue, (Style) e.NewValue, ref fce._styleCache);
166protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle)
219internal Style ThemeStyle
236StyleHelper.UpdateThemeStyleCache(null, fce, (Style) oldValue, (Style) newValue, ref fce._themeStyleCache);
911public Style FocusVisualStyle
913get { return (Style) GetValue(FocusVisualStyleProperty); }
2191private Style _styleCache;
2194private Style _themeStyleCache;
src\Framework\System\Windows\FrameworkElement.cs (23)
125Style defaultValue = (Style) metadata.DefaultValue;
151typeof(Style),
154(Style) null, // default value
161public Style Style
183StyleHelper.UpdateStyleCache(fe, null, (Style) e.OldValue, (Style) e.NewValue, ref fe._styleCache);
267internal Style ThemeStyle
283StyleHelper.UpdateThemeStyleCache(fe, null, (Style) oldValue, (Style) newValue, ref fe._themeStyleCache);
317protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle)
1178Style style;
1180Style themeStyle;
2994Style selfStyle = null;
3824private static Style _defaultFocusVisualStyle = null;
3826internal static Style DefaultFocusVisualStyle
3832Style defaultFocusVisualStyle = new Style();
3847typeof(Style),
3855public Style FocusVisualStyle
3857get { return (Style) GetValue(FocusVisualStyleProperty); }
6390private Style _themeStyleCache;
6397private Style _styleCache;
src\Framework\System\Windows\StyleHelper.cs (51)
56Style oldStyle,
57Style newStyle,
58ref Style styleCache)
95Style oldThemeStyle,
96Style newThemeStyle,
97ref Style themeStyleCache)
129Style style = null;
163internal static Style GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
170Style selfStyle = null;
171Style oldThemeStyle = null;
172Style newThemeStyle = null;
233if( styleLookup is Style )
237newThemeStyle = (Style)styleLookup;
261newThemeStyle = styleMetadata.DefaultValue as Style;
1339Style oldStyle,
1340Style newStyle,
1374Style newStyle,
1437Style oldStyle,
1674Style oldStyle,
2408Style selfStyle;
2409Style selfThemeStyle;
2506Style ownerStyle,
3155Style oldStyle,
3156Style newStyle)
3236Style oldThemeStyle,
3237Style newThemeStyle,
3238Style style)
3453Style oldStyle,
3454Style newStyle)
3550private static List<ResourceDictionary> GetResourceDictionariesFromStyle(Style style)
3603Style oldStyle, Style newStyle)
3873Style style = fo.Style;
3960Style themeStyle = fo.ThemeStyle;
4300Style 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,