79 references to StyleProperty
PresentationFramework (66)
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); 200DataGridHelper.TransferProperty(this, StyleProperty); 253else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 255DataGridHelper.TransferProperty(this, StyleProperty); 298StyleProperty,
System\Windows\Controls\DatePicker.cs (1)
1084_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
System\Windows\Controls\FlowDocumentReader.cs (3)
1164_pageViewer.SetResourceReference(StyleProperty, PageViewStyleKey); 1174_twoPageViewer.SetResourceReference(StyleProperty, TwoPageViewStyleKey); 1184_scrollViewer.SetResourceReference(StyleProperty, ScrollViewStyleKey);
System\Windows\Controls\GridViewColumnHeader.cs (2)
66StyleProperty.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged))); 585if (dp == GridViewColumnHeader.StyleProperty)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1745GridViewColumnHeader.StyleProperty,
System\Windows\Controls\Image.cs (1)
381StyleProperty.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
System\Windows\Controls\InkCanvas.cs (1)
129StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
System\Windows\Controls\ItemsControl.cs (3)
3486container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3517container.ClearValue(FrameworkElement.StyleProperty); 3527container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\MediaElement.cs (1)
74StyleProperty.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
System\Windows\Controls\MenuItem.cs (2)
1338BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 1340separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
969dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 995monthCell.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); 425else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 427DataGridHelper.TransferProperty(this, StyleProperty); 693StyleProperty,
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)
489BaseValueSourceInternal vs = fe.GetValueSource(StyleProperty, null, out hasModifiers); 492fe.SetResourceReference(StyleProperty, resourceKey);
System\windows\Documents\TextEditorContextMenu.cs (1)
425SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (1)
120FrameworkElement.StyleProperty.AddOwner(
System\Windows\FrameworkElement.cs (8)
116PropertyMetadata metadata = StyleProperty.GetMetadata(DependencyObjectType); 120OnStyleChanged(this, new DependencyPropertyChangedEventArgs(StyleProperty, metadata, null, defaultValue)); 156set { SetValue(StyleProperty, value); } 167&& ReadLocalValue(StyleProperty) != DependencyProperty.UnsetValue; 898FrameworkElement.StyleProperty, // dp 1808if (dp == StyleProperty) 1868if (dp != StyleProperty) 2089if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Generated\FrameworkElement.cs (1)
618InvalidateProperty(StyleProperty);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2629DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
System\Windows\Markup\KnownTypes.cs (1)
1790return System.Windows.FrameworkElement.StyleProperty;
System\Windows\Setter.cs (1)
106if (dp == FrameworkElement.StyleProperty)
System\Windows\StyleHelper.cs (7)
250FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 452if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 454throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 3099return (dp != FrameworkElement.StyleProperty); 3111return (dp != FrameworkElement.StyleProperty && 3126return (dp != FrameworkElement.StyleProperty && 4236if (dp != FrameworkElement.StyleProperty)
System\Windows\ThemeManager.cs (1)
288window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (2)
580(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 761(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)
550ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 552separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
84_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2046TransferProperty(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); 551StyleProperty,