80 references to StyleProperty
PresentationFramework (67)
MS\Internal\Documents\DocumentGridPage.cs (2)
229_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(key)); 233_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(typeof(ContentControl)));
MS\Internal\Documents\DocumentViewerHelper.cs (1)
52findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey);
System\Windows\Controls\DataGridCell.cs (6)
30StyleProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 128DataGridHelper.TransferProperty(this, StyleProperty); 197DataGridHelper.TransferProperty(this, StyleProperty); 250else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 252DataGridHelper.TransferProperty(this, StyleProperty); 295StyleProperty,
System\Windows\Controls\DatePicker.cs (1)
1081_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
System\Windows\Controls\FlowDocumentReader.cs (3)
1154_pageViewer.SetResourceReference(StyleProperty, PageViewStyleKey); 1164_twoPageViewer.SetResourceReference(StyleProperty, TwoPageViewStyleKey); 1174_scrollViewer.SetResourceReference(StyleProperty, ScrollViewStyleKey);
System\Windows\Controls\GridViewColumnHeader.cs (2)
66StyleProperty.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged))); 579if (dp == GridViewColumnHeader.StyleProperty)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1744GridViewColumnHeader.StyleProperty,
System\Windows\Controls\Image.cs (1)
381StyleProperty.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
System\Windows\Controls\InkCanvas.cs (1)
137StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
System\Windows\Controls\ItemsControl.cs (3)
3456container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3487container.ClearValue(FrameworkElement.StyleProperty); 3497container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\MediaElement.cs (1)
74StyleProperty.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
System\Windows\Controls\MenuItem.cs (2)
1335BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 1337separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
961dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 988monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
33StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 112DataGridHelper.TransferProperty(this, StyleProperty); 416else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 418DataGridHelper.TransferProperty(this, StyleProperty); 681StyleProperty,
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
78DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
123StyleProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle)); 232DataGridHelper.TransferProperty(this, StyleProperty); 263else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 265DataGridHelper.TransferProperty(this, StyleProperty); 374StyleProperty,
System\Windows\Controls\Primitives\StatusBar.cs (2)
143BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 145separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\ToolBar.cs (2)
483BaseValueSourceInternal vs = fe.GetValueSource(StyleProperty, null, out hasModifiers); 486fe.SetResourceReference(StyleProperty, resourceKey);
System\windows\Documents\TextEditorContextMenu.cs (1)
425SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (1)
111FrameworkElement.StyleProperty.AddOwner(
System\Windows\FrameworkElement.cs (8)
109PropertyMetadata metadata = StyleProperty.GetMetadata(DependencyObjectType); 113OnStyleChanged(this, new DependencyPropertyChangedEventArgs(StyleProperty, metadata, null, defaultValue)); 149set { SetValue(StyleProperty, value); } 160&& ReadLocalValue(StyleProperty) != DependencyProperty.UnsetValue; 888FrameworkElement.StyleProperty, // dp 1798if (dp == StyleProperty) 1858if (dp != StyleProperty) 2081if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Generated\FrameworkElement.cs (1)
616InvalidateProperty(StyleProperty);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2711DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
System\Windows\Markup\KnownTypes.cs (1)
1784return System.Windows.FrameworkElement.StyleProperty;
System\Windows\Setter.cs (1)
97if (dp == FrameworkElement.StyleProperty)
System\Windows\StyleHelper.cs (7)
242FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 440if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 442throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 3091return (dp != FrameworkElement.StyleProperty); 3103return (dp != FrameworkElement.StyleProperty && 3118return (dp != FrameworkElement.StyleProperty && 4232if (dp != FrameworkElement.StyleProperty)
System\Windows\ThemeManager.cs (2)
290window.SetResourceReference(FrameworkElement.StyleProperty, typeof(NavigationWindow)); 294window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (2)
577(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 758(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue))
System\Windows\TriggerBase.cs (1)
176if (dp == FrameworkElement.StyleProperty)
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
564ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 566separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
84_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2026TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
579ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 581separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
554ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 556separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
40StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceStyle)); 410PropertyHelper.TransferProperty(this, StyleProperty); 419if (e.Property == StyleProperty || e.Property == RibbonTab.HeaderStyleProperty || e.Property == Ribbon.TabHeaderStyleProperty) 421PropertyHelper.TransferProperty(this, StyleProperty); 548StyleProperty,