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