80 references to StyleProperty
PresentationFramework (67)
MS\Internal\Documents\DocumentGridPage.cs (2)
228_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(key)); 232_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(typeof(ContentControl)));
MS\Internal\Documents\DocumentViewerHelper.cs (1)
51findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey);
System\Windows\Controls\DataGridCell.cs (6)
29StyleProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 127DataGridHelper.TransferProperty(this, StyleProperty); 196DataGridHelper.TransferProperty(this, StyleProperty); 249else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 251DataGridHelper.TransferProperty(this, StyleProperty); 294StyleProperty,
System\Windows\Controls\DatePicker.cs (1)
1080_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
System\Windows\Controls\FlowDocumentReader.cs (3)
1153_pageViewer.SetResourceReference(StyleProperty, PageViewStyleKey); 1163_twoPageViewer.SetResourceReference(StyleProperty, TwoPageViewStyleKey); 1173_scrollViewer.SetResourceReference(StyleProperty, ScrollViewStyleKey);
System\Windows\Controls\GridViewColumnHeader.cs (2)
65StyleProperty.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged))); 578if (dp == GridViewColumnHeader.StyleProperty)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1743GridViewColumnHeader.StyleProperty,
System\Windows\Controls\Image.cs (1)
380StyleProperty.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
System\Windows\Controls\InkCanvas.cs (1)
136StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
System\Windows\Controls\ItemsControl.cs (3)
3455container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3486container.ClearValue(FrameworkElement.StyleProperty); 3496container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\MediaElement.cs (1)
73StyleProperty.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
System\Windows\Controls\MenuItem.cs (2)
1334BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 1336separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
960dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 987monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
32StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 111DataGridHelper.TransferProperty(this, StyleProperty); 415else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 417DataGridHelper.TransferProperty(this, StyleProperty); 680StyleProperty,
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
77DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
122StyleProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle)); 231DataGridHelper.TransferProperty(this, StyleProperty); 262else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 264DataGridHelper.TransferProperty(this, StyleProperty); 373StyleProperty,
System\Windows\Controls\Primitives\StatusBar.cs (2)
142BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 144separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\ToolBar.cs (2)
482BaseValueSourceInternal vs = fe.GetValueSource(StyleProperty, null, out hasModifiers); 485fe.SetResourceReference(StyleProperty, resourceKey);
System\windows\Documents\TextEditorContextMenu.cs (1)
424SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (1)
110FrameworkElement.StyleProperty.AddOwner(
System\Windows\FrameworkElement.cs (8)
108PropertyMetadata metadata = StyleProperty.GetMetadata(DependencyObjectType); 112OnStyleChanged(this, new DependencyPropertyChangedEventArgs(StyleProperty, metadata, null, defaultValue)); 148set { SetValue(StyleProperty, value); } 159&& ReadLocalValue(StyleProperty) != DependencyProperty.UnsetValue; 887FrameworkElement.StyleProperty, // dp 1797if (dp == StyleProperty) 1857if (dp != StyleProperty) 2080if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Generated\FrameworkElement.cs (1)
615InvalidateProperty(StyleProperty);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2710DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
System\Windows\Markup\KnownTypes.cs (1)
1783return System.Windows.FrameworkElement.StyleProperty;
System\Windows\Setter.cs (1)
96if (dp == FrameworkElement.StyleProperty)
System\Windows\StyleHelper.cs (7)
241FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 439if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 441throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 3090return (dp != FrameworkElement.StyleProperty); 3102return (dp != FrameworkElement.StyleProperty && 3117return (dp != FrameworkElement.StyleProperty && 4231if (dp != FrameworkElement.StyleProperty)
System\Windows\ThemeManager.cs (2)
293window.SetResourceReference(FrameworkElement.StyleProperty, typeof(NavigationWindow)); 297window.SetResourceReference(FrameworkElement.StyleProperty, typeof(Window));
System\Windows\TreeWalkHelper.cs (2)
576(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 757(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue))
System\Windows\TriggerBase.cs (1)
175if (dp == FrameworkElement.StyleProperty)
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
563ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 565separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
83_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2025TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
578ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 580separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
553ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 555separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
39StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceStyle)); 409PropertyHelper.TransferProperty(this, StyleProperty); 418if (e.Property == StyleProperty || e.Property == RibbonTab.HeaderStyleProperty || e.Property == Ribbon.TabHeaderStyleProperty) 420PropertyHelper.TransferProperty(this, StyleProperty); 547StyleProperty,