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