20 instantiations of Style
PresentationFramework (12)
src\Framework\System\Windows\Controls\AccessText.cs (1)
557Style accessKeyStyle = new Style(typeof(Run));
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
38Style style = new Style(typeof(CheckBox)); 64Style style = new Style(typeof(CheckBox));
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
229Style style = new Style(typeof(ComboBox));
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (2)
40Style style = new Style(typeof(TextBlock)); 63Style style = new Style(typeof(TextBox));
src\Framework\System\Windows\Controls\Image.cs (1)
423Style style = new Style(typeof(Image), null);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
118Style defaultStyle = new Style(ownerType);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
114Style style = new Style(typeof(MediaElement), null);
src\Framework\System\Windows\FrameworkElement.cs (1)
3832Style defaultFocusVisualStyle = new Style();
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9671bamlType.DefaultConstructor = delegate() { return new System.Windows.Style(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1579case KnownElements.Style: o = new System.Windows.Style(); break;
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (4)
35(null == baseStyle ? new Style(typeof(TreeViewItem)) : new Style(typeof(TreeViewItem), baseStyle)); 106(null == baseStyle ? new Style(typeof(TreeViewItem)) : new Style(typeof(TreeViewItem), baseStyle));
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (4)
824Style style = null == baseStyle ? new Style(typeof(DataGridCell)) : new Style(typeof(DataGridCell), baseStyle); 850Style style = null == baseStyle ? new Style(typeof(DataGridRow)) : new Style(typeof(DataGridRow), baseStyle);
313 references to Style
PresentationFramework (279)
src\Framework\MS\Internal\FrameworkObject.cs (2)
195internal Style ThemeStyle 363internal Style Style
src\Framework\MS\Internal\Helper.cs (1)
346(style is Style || style is ResourceReferenceExpression))
src\Framework\System\Windows\Controls\AccessText.cs (3)
551private static Style AccessKeyStyle 557Style accessKeyStyle = new Style(typeof(Run)); 803private static Style _accessKeyStyle;
src\Framework\System\Windows\Controls\Calendar.cs (9)
123public Style CalendarButtonStyle 125get { return (Style)GetValue(CalendarButtonStyleProperty); } 135typeof(Style), 145public Style CalendarDayButtonStyle 147get { return (Style)GetValue(CalendarDayButtonStyleProperty); } 157typeof(Style), 167public Style CalendarItemStyle 169get { return (Style)GetValue(CalendarItemStyleProperty); } 179typeof(Style),
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\DataGridBoundColumn.cs (9)
125public Style ElementStyle 127get { return (Style)GetValue(ElementStyleProperty); } 137typeof(Style), 145public Style EditingElementStyle 147get { return (Style)GetValue(EditingElementStyleProperty); } 157typeof(Style), 166Style style = PickStyle(isEditing, defaultToElementStyle); 173private Style PickStyle(bool isEditing, bool defaultToElementStyle) 175Style style = isEditing ? EditingElementStyle : ElementStyle;
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (6)
32public static Style DefaultElementStyle 38Style style = new Style(typeof(CheckBox)); 58public static Style DefaultEditingElementStyle 64Style style = new Style(typeof(CheckBox)); 219private static Style _defaultElementStyle; 220private static Style _defaultEditingElementStyle;
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\Controls\DataGridComboBoxColumn.cs (12)
223public static Style DefaultElementStyle 229Style style = new Style(typeof(ComboBox)); 246public static Style DefaultEditingElementStyle 259public Style ElementStyle 261get { return (Style)GetValue(ElementStyleProperty); } 275public Style EditingElementStyle 277get { return (Style)GetValue(EditingElementStyleProperty); } 292Style style = PickStyle(isEditing, defaultToElementStyle); 304Style style = PickStyle(isEditing, defaultToElementStyle); 311private Style PickStyle(bool isEditing, bool defaultToElementStyle) 313Style style = isEditing ? EditingElementStyle : ElementStyle; 627private static Style _defaultElementStyle;
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (2)
150public static Style DefaultElementStyle 159public static Style DefaultEditingElementStyle
src\Framework\System\Windows\Controls\DataGridRow.cs (3)
296public Style HeaderStyle 298get { return (Style)GetValue(HeaderStyleProperty); } 306DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new FrameworkPropertyMetadata(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (6)
34public static Style DefaultElementStyle 40Style style = new Style(typeof(TextBlock)); 57public static Style DefaultEditingElementStyle 63Style style = new Style(typeof(TextBox)); 406private static Style _defaultElementStyle; 407private static Style _defaultEditingElementStyle;
src\Framework\System\Windows\Controls\DatePicker.cs (3)
130public Style CalendarStyle 132get { return (Style)GetValue(CalendarStyleProperty); } 142typeof(Style),
src\Framework\System\Windows\Controls\GridSplitter.cs (5)
229typeof(Style), 231new FrameworkPropertyMetadata((Style)null)); 236public Style PreviewStyle 238get { return (Style)GetValue(PreviewStyleProperty); } 396public PreviewAdorner(GridSplitter gridSplitter, Style previewStyle)
src\Framework\System\Windows\Controls\GridView.cs (3)
251typeof(Style), 258public Style ColumnHeaderContainerStyle 260get { return (Style)GetValue(ColumnHeaderContainerStyleProperty); }
src\Framework\System\Windows\Controls\GridViewColumn.cs (3)
138typeof(Style), 147public Style HeaderContainerStyle 149get { return (Style)GetValue(HeaderContainerStyleProperty); }
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
65public Style ColumnHeaderContainerStyle 67get { return (Style)GetValue(ColumnHeaderContainerStyleProperty); } 1472Style style = ColumnHeaderContainerStyle;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
184Style style = groupStyle.ContainerStyle;
src\Framework\System\Windows\Controls\GroupStyle.cs (2)
118public Style ContainerStyle 227Style _containerStyle;
src\Framework\System\Windows\Controls\Image.cs (3)
393Style style = CreateDefaultStyles(); 421private static Style CreateDefaultStyles() 423Style style = new Style(typeof(Image), null);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
118Style defaultStyle = new Style(ownerType);
src\Framework\System\Windows\Controls\ItemsControl.cs (10)
687typeof(Style), 690(Style) null, 698public Style ItemContainerStyle 700get { return (Style) GetValue(ItemContainerStyleProperty); } 711((ItemsControl) d).OnItemContainerStyleChanged((Style) e.OldValue, (Style) e.NewValue); 719protected virtual void OnItemContainerStyleChanged(Style oldItemContainerStyle, Style newItemContainerStyle) 1761Style itemContainerStyle = parentItemsControl.ItemContainerStyle; 3432Style style = ItemContainerStyle;
src\Framework\System\Windows\Controls\MediaElement.cs (3)
85Style style = CreateDefaultStyles(); 112private static Style CreateDefaultStyles() 114Style style = new Style(typeof(MediaElement), null);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
772Style style = null; 802Style style = null;
src\Framework\System\Windows\Controls\SoundPlayerAction.cs (1)
132Style targetStyle,
src\Framework\System\Windows\Controls\StyleSelector.cs (2)
38/// Override this method to return an app specific <seealso cref="Style"/>. 43public virtual Style SelectStyle(object item, DependencyObject container)
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\Generated\FrameworkContentElement.cs (2)
477Style selfStyle = null; 478Style selfThemeStyle = null;
src\Framework\System\Windows\Generated\FrameworkElement.cs (2)
492Style selfStyle = null; 493Style selfThemeStyle = null;
src\Framework\System\Windows\HierarchicalDataTemplate.cs (2)
110public Style ItemContainerStyle 240private Style _itemContainerStyle;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (7)
551public FocusVisualAdorner(UIElement adornedElement, Style focusVisualStyle) : base(adornedElement) 565public FocusVisualAdorner(ContentElement adornedElement, UIElement adornedElementParent, IContentHost contentHostParent, Style focusVisualStyle) 805private Style _focusVisualStyle; 918Style fvs = fe.FocusVisualStyle; 924fvs = SystemResources.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style; 945Style fvs = fce.FocusVisualStyle; 951fvs = SystemResources.FindResourceInternal(SystemParameters.FocusVisualStyleKey) as Style;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
712case 620: t = () => typeof(Style); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (20)
5713Type type = typeof(System.Windows.Style); 5715this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 5721bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Setters; }; 6422Type type = typeof(System.Windows.Style); 6424this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6433bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).TargetType = (System.Type)value; }; 6434bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).TargetType; }; 6442Type type = typeof(System.Windows.Style); 6444this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6450bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Triggers; }; 6640Type type = typeof(System.Windows.Style); 6642this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6644typeof(System.Windows.Style), // type 6649bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).BasedOn = (System.Windows.Style)value; }; 6650bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).BasedOn; }; 6820Type type = typeof(System.Windows.Style); 6822this.GetXamlType(typeof(System.Windows.Style)), // DeclaringType 6829bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Style)target).Resources = (System.Windows.ResourceDictionary)value; }; 6830bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Style)target).Resources; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
9669typeof(System.Windows.Style),
src\Framework\System\Windows\Markup\BamlRecordReader.cs (2)
4157Style style = (Style)stackData.ObjectData;
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
201XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
src\Framework\System\Windows\Markup\KnownTypes.cs (2)
2521case KnownElements.Style: return (o as System.Windows.Style).Setters; 6164case KnownElements.Style: t = typeof(System.Windows.Style); break;
src\Framework\System\Windows\Markup\RoutedEventConverter.cs (1)
87XamlType styleXType = schemaContext.GetXamlType(typeof(Style));
src\Framework\System\Windows\Markup\WpfXamlLoader.cs (1)
381typeof(Style).IsAssignableFrom(stack.CurrentFrame.Type.UnderlyingType))
src\Framework\System\Windows\Markup\XamlStyleSerializer.cs (1)
95Type styleTargetType = Style.DefaultTargetType;
src\Framework\System\Windows\Media\Animation\BeginStoryboard.cs (1)
177internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
src\Framework\System\Windows\Media\Animation\ControllableStoryboardAction.cs (1)
59internal sealed override void Invoke( FrameworkElement fe, FrameworkContentElement fce, Style targetStyle, FrameworkTemplate frameworkTemplate, Int64 layer )
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
393if( nameScope is Style )
src\Framework\System\Windows\StaticResourceExtension.cs (4)
227XamlType styleXType = schemaContext.GetXamlType(typeof(Style)); 269if (ambientValue.Value is Style) 271var style = (Style)ambientValue.Value;
src\Framework\System\Windows\Style.cs (7)
72public Style(Type targetType, Style basedOn) 205public Style BasedOn 608Style latestBasedOn = this; 637private void ProcessSetters(Style style) 719private void ProcessSelfStyles(Style style) 745private void ProcessVisualTriggers(Style style) 971private Style _basedOn;
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,
src\Framework\System\Windows\TemplateContent.cs (4)
124typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 149typeof(Style).IsAssignableFrom(CurrentFrame.Type.UnderlyingType))); 990else if (typeof(Style).IsAssignableFrom(xamlReader.Type.UnderlyingType)) 1242typeof(Style).IsAssignableFrom(type)
src\Framework\System\Windows\TreeWalkHelper.cs (6)
244Style selfStyle, 245Style selfThemeStyle, 319Style selfStyle, 320Style selfThemeStyle, 818Style themeStyle = fe.ThemeStyle; 885Style themeStyle = fce.ThemeStyle;
src\Framework\System\Windows\TriggerAction.cs (1)
44Style targetStyle,
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\Themes\DesignerStyleDictionary.xaml.cs (3)
30public static Style SequenceStyle 39var style = (Style)Instance[key];
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (1)
87return new MessageQueryComboBoxItem() { Style = (Style)this.FindResource("comboBoxStyle") };
System.Activities.Presentation (30)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxControl.cs (6)
48typeof(Style), 54typeof(Style), 157public Style ToolItemStyle 159get { return (Style)GetValue(ToolItemStyleProperty); } 164public Style CategoryItemStyle 166get { return (Style)GetValue(CategoryItemStyleProperty); }
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (8)
21Style styleForToolboxItem; 22Style styleForCategoryItem; 30Style GetStyleForToolboxItem(Style baseStyle) 101Style GetStyleForCategoryItem(Style baseStyle) 122public override Style SelectStyle(object item, DependencyObject container) 125Style result = base.SelectStyle(item, container);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (6)
92this.dataGrid.Style = (Style)this.FindResource("defaultDataGridStyle"); 454e.Row.Style = (Style)this.FindResource("defaultNewRowStyle"); 822Style baseStyle = this.dataGrid.CellStyle; 824Style style = null == baseStyle ? new Style(typeof(DataGridCell)) : new Style(typeof(DataGridCell), baseStyle); 848Style baseStyle = this.dataGrid.RowStyle; 850Style style = null == baseStyle ? new Style(typeof(DataGridRow)) : new Style(typeof(DataGridRow), baseStyle);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (7)
45DependencyProperty.Register("MenuItemStyle", typeof(Style), typeof(DesignerView), new UIPropertyMetadata(null)); 48DependencyProperty.Register("MenuSeparatorStyle", typeof(Style), typeof(DesignerView), new UIPropertyMetadata(null)); 346public Style MenuItemStyle 348get { return (Style)GetValue(MenuItemStyleProperty); } 352public Style MenuSeparatorStyle 354get { return (Style)GetValue(MenuSeparatorStyleProperty); } 1746public override Style SelectStyle(object item, DependencyObject container)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
276this.MenuItemStyle = (Style)this.FindResource("menuItemStyle"); 278this.MenuSeparatorStyle = (Style)this.FindResource("separatorStyle");
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
571this.expressionEditorInstance.HostControl.Style = (Style)FindResource("editorStyle");