80 references to StyleProperty
PresentationFramework (67)
MS\Internal\Documents\DocumentGridPage.cs (2)
242_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(key)); 246_documentContainer.SetCurrentValue(StyleProperty, TryFindResource(typeof(ContentControl)));
MS\Internal\Documents\DocumentViewerHelper.cs (1)
54findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey);
System\Windows\Controls\DataGridCell.cs (6)
37StyleProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 135DataGridHelper.TransferProperty(this, StyleProperty); 207DataGridHelper.TransferProperty(this, StyleProperty); 260else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 262DataGridHelper.TransferProperty(this, StyleProperty); 305StyleProperty,
System\Windows\Controls\DatePicker.cs (1)
1088_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
System\Windows\Controls\FlowDocumentReader.cs (3)
1169_pageViewer.SetResourceReference(StyleProperty, PageViewStyleKey); 1179_twoPageViewer.SetResourceReference(StyleProperty, TwoPageViewStyleKey); 1189_scrollViewer.SetResourceReference(StyleProperty, ScrollViewStyleKey);
System\Windows\Controls\GridViewColumnHeader.cs (2)
70StyleProperty.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged))); 589if (dp == GridViewColumnHeader.StyleProperty)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1748GridViewColumnHeader.StyleProperty,
System\Windows\Controls\Image.cs (1)
389StyleProperty.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
System\Windows\Controls\InkCanvas.cs (1)
141StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
System\Windows\Controls\ItemsControl.cs (3)
3495container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3526container.ClearValue(FrameworkElement.StyleProperty); 3536container.ClearValue(FrameworkElement.StyleProperty);
System\Windows\Controls\MediaElement.cs (1)
81StyleProperty.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
System\Windows\Controls\MenuItem.cs (2)
1348BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 1350separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
974dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 1000monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
38StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 117DataGridHelper.TransferProperty(this, StyleProperty); 430else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 432DataGridHelper.TransferProperty(this, StyleProperty); 698StyleProperty,
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
83DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
128StyleProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle)); 237DataGridHelper.TransferProperty(this, StyleProperty); 268else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 270DataGridHelper.TransferProperty(this, StyleProperty); 379StyleProperty,
System\Windows\Controls\Primitives\StatusBar.cs (2)
146BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 148separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
System\Windows\Controls\ToolBar.cs (2)
498BaseValueSourceInternal vs = fe.GetValueSource(StyleProperty, null, out hasModifiers); 501fe.SetResourceReference(StyleProperty, resourceKey);
System\windows\Documents\TextEditorContextMenu.cs (1)
427SetResourceReference(StyleProperty, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (1)
132FrameworkElement.StyleProperty.AddOwner(
System\Windows\FrameworkElement.cs (8)
127PropertyMetadata metadata = StyleProperty.GetMetadata(DependencyObjectType); 131OnStyleChanged(this, new DependencyPropertyChangedEventArgs(StyleProperty, metadata, null, defaultValue)); 167set { SetValue(StyleProperty, value); } 178&& ReadLocalValue(StyleProperty) != DependencyProperty.UnsetValue; 902FrameworkElement.StyleProperty, // dp 1812if (dp == StyleProperty) 1872if (dp != StyleProperty) 2093if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Generated\FrameworkElement.cs (1)
624InvalidateProperty(StyleProperty);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2631DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
System\Windows\Markup\KnownTypes.cs (1)
1790return System.Windows.FrameworkElement.StyleProperty;
System\Windows\Setter.cs (1)
108if (dp == FrameworkElement.StyleProperty)
System\Windows\StyleHelper.cs (7)
256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 460throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 3105return (dp != FrameworkElement.StyleProperty); 3117return (dp != FrameworkElement.StyleProperty && 3132return (dp != FrameworkElement.StyleProperty && 4242if (dp != FrameworkElement.StyleProperty)
System\Windows\TreeWalkHelper.cs (2)
573(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 754(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue))
System\Windows\TriggerBase.cs (1)
181if (dp == FrameworkElement.StyleProperty)
System\Windows\Window.cs (2)
3588SetResourceReference(StyleProperty, typeof(Window)); 3592SetResourceReference(StyleProperty, "BackdropDisabledWindowStyle");
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
552ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 554separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
86_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2051TransferProperty(original, clone, FrameworkElement.StyleProperty, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
582ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 584separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
557ValueSource vs = DependencyPropertyHelper.GetValueSource(separator, StyleProperty); 559separator.SetResourceReference(StyleProperty, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
42StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceStyle)); 412PropertyHelper.TransferProperty(this, StyleProperty); 421if (e.Property == StyleProperty || e.Property == RibbonTab.HeaderStyleProperty || e.Property == Ribbon.TabHeaderStyleProperty) 423PropertyHelper.TransferProperty(this, StyleProperty); 553StyleProperty,