64 references to StyleProperty
PresentationFramework (64)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
646SetResourceReference(StyleProperty, SystemParameters.NavigationChromeDownLevelStyleKey); 656SetResourceReference(StyleProperty, SystemParameters.NavigationChromeStyleKey);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
64findToolBar.SetResourceReference(Control.StyleProperty, FindToolBarStyleKey);
src\Framework\System\Windows\Controls\DataGridCell.cs (6)
35StyleProperty.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 130DataGridHelper.TransferProperty(this, StyleProperty); 202DataGridHelper.TransferProperty(this, StyleProperty); 255else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property == StyleProperty) 257DataGridHelper.TransferProperty(this, StyleProperty); 300StyleProperty,
src\Framework\System\Windows\Controls\DatePicker.cs (1)
1077_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (3)
1175_pageViewer.SetResourceReference(StyleProperty, PageViewStyleKey); 1185_twoPageViewer.SetResourceReference(StyleProperty, TwoPageViewStyleKey); 1195_scrollViewer.SetResourceReference(StyleProperty, ScrollViewStyleKey);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
73StyleProperty.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged))); 579if (dp == GridViewColumnHeader.StyleProperty)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1751GridViewColumnHeader.StyleProperty,
src\Framework\System\Windows\Controls\Image.cs (1)
394StyleProperty.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
152StyleProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
src\Framework\System\Windows\Controls\ItemsControl.cs (3)
3426container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.UnsetValue) 3457container.ClearValue(FrameworkElement.StyleProperty); 3467container.ClearValue(FrameworkElement.StyleProperty);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
86StyleProperty.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
src\Framework\System\Windows\Controls\MenuItem.cs (2)
1334BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 1336separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
976dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 1002monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
39StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle)); 118DataGridHelper.TransferProperty(this, StyleProperty); 431else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property == StyleProperty) 433DataGridHelper.TransferProperty(this, StyleProperty); 699StyleProperty,
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
83DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.StyleProperty);
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
129StyleProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle)); 238DataGridHelper.TransferProperty(this, StyleProperty); 269else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property == StyleProperty) 271DataGridHelper.TransferProperty(this, StyleProperty); 380StyleProperty,
src\Framework\System\Windows\Controls\Primitives\StatusBar.cs (2)
147BaseValueSourceInternal vs = separator.GetValueSource(StyleProperty, null, out hasModifiers); 149separator.SetResourceReference(StyleProperty, SeparatorStyleKey);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
508BaseValueSourceInternal vs = fe.GetValueSource(StyleProperty, null, out hasModifiers); 511fe.SetResourceReference(StyleProperty, resourceKey);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
129FrameworkElement.StyleProperty.AddOwner(
src\Framework\System\Windows\FrameworkElement.cs (8)
124PropertyMetadata metadata = StyleProperty.GetMetadata(DependencyObjectType); 128OnStyleChanged(this, new DependencyPropertyChangedEventArgs(StyleProperty, metadata, null, defaultValue)); 164set { SetValue(StyleProperty, value); } 175&& ReadLocalValue(StyleProperty) != DependencyProperty.UnsetValue; 908FrameworkElement.StyleProperty, // dp 1818if (dp == StyleProperty) 1878if (dp != StyleProperty) 2099if (dp != StyleProperty && dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
src\Framework\System\Windows\Generated\FrameworkElement.cs (1)
635InvalidateProperty(StyleProperty);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2623DependencyProperty dp = System.Windows.FrameworkElement.StyleProperty;
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1791return System.Windows.FrameworkElement.StyleProperty;
src\Framework\System\Windows\Setter.cs (1)
109if (dp == FrameworkElement.StyleProperty)
src\Framework\System\Windows\StyleHelper.cs (7)
256FrameworkElement.StyleProperty.GetMetadata(themeStyleTypeKey); 458if (StyleHelper.IsSetOnContainer(FrameworkElement.StyleProperty, ref containerDependents, true)) 460throw new InvalidOperationException(SR.Get(SRID.CannotHavePropertyInTemplate, FrameworkElement.StyleProperty.Name)); 3104return (dp != FrameworkElement.StyleProperty); 3116return (dp != FrameworkElement.StyleProperty && 3131return (dp != FrameworkElement.StyleProperty && 4241if (dp != FrameworkElement.StyleProperty)
src\Framework\System\Windows\TreeWalkHelper.cs (2)
579(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue)) 760(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).DefaultValue))
src\Framework\System\Windows\TriggerBase.cs (1)
178if (dp == FrameworkElement.StyleProperty)