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