80 references to StyleProperty
PresentationFramework (67)
MS\Internal\Documents\DocumentGridPage.cs (2)
228
_documentContainer.SetCurrentValue(
StyleProperty
, TryFindResource(key));
232
_documentContainer.SetCurrentValue(
StyleProperty
, TryFindResource(typeof(ContentControl)));
MS\Internal\Documents\DocumentViewerHelper.cs (1)
51
findToolBar.SetResourceReference(Control.
StyleProperty
, FindToolBarStyleKey);
System\Windows\Controls\DataGridCell.cs (6)
29
StyleProperty
.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle));
127
DataGridHelper.TransferProperty(this,
StyleProperty
);
196
DataGridHelper.TransferProperty(this,
StyleProperty
);
249
else if (e.Property == DataGrid.CellStyleProperty || e.Property == DataGridColumn.CellStyleProperty || e.Property ==
StyleProperty
)
251
DataGridHelper.TransferProperty(this,
StyleProperty
);
294
StyleProperty
,
System\Windows\Controls\DatePicker.cs (1)
1080
_calendar.SetBinding(Calendar.
StyleProperty
, GetDatePickerBinding(DatePicker.CalendarStyleProperty));
System\Windows\Controls\FlowDocumentReader.cs (3)
1153
_pageViewer.SetResourceReference(
StyleProperty
, PageViewStyleKey);
1163
_twoPageViewer.SetResourceReference(
StyleProperty
, TwoPageViewStyleKey);
1173
_scrollViewer.SetResourceReference(
StyleProperty
, ScrollViewStyleKey);
System\Windows\Controls\GridViewColumnHeader.cs (2)
65
StyleProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(new PropertyChangedCallback(PropertyChanged)));
578
if (dp == GridViewColumnHeader.
StyleProperty
)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1743
GridViewColumnHeader.
StyleProperty
,
System\Windows\Controls\Image.cs (1)
380
StyleProperty
.OverrideMetadata(typeof(Image), new FrameworkPropertyMetadata(style));
System\Windows\Controls\InkCanvas.cs (1)
136
StyleProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(defaultStyle));
System\Windows\Controls\ItemsControl.cs (3)
3455
container.ReadLocalValue(FrameworkElement.
StyleProperty
) != DependencyProperty.UnsetValue)
3486
container.ClearValue(FrameworkElement.
StyleProperty
);
3496
container.ClearValue(FrameworkElement.
StyleProperty
);
System\Windows\Controls\MediaElement.cs (1)
73
StyleProperty
.OverrideMetadata(typeof(MediaElement), new FrameworkPropertyMetadata(style));
System\Windows\Controls\MenuItem.cs (2)
1334
BaseValueSourceInternal vs = separator.GetValueSource(
StyleProperty
, null, out hasModifiers);
1336
separator.SetResourceReference(
StyleProperty
, SeparatorStyleKey);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
960
dayCell.SetBinding(CalendarDayButton.
StyleProperty
, GetOwnerBinding("CalendarDayButtonStyle"));
987
monthCell.SetBinding(CalendarButton.
StyleProperty
, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (5)
32
StyleProperty
.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(null, OnNotifyPropertyChanged, OnCoerceStyle));
111
DataGridHelper.TransferProperty(this,
StyleProperty
);
415
else if (e.Property == DataGrid.ColumnHeaderStyleProperty || e.Property == DataGridColumn.HeaderStyleProperty || e.Property ==
StyleProperty
)
417
DataGridHelper.TransferProperty(this,
StyleProperty
);
680
StyleProperty
,
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
77
DataGridHelper.TransferProperty(fillerColumnHeader, DataGridColumnHeader.
StyleProperty
);
System\Windows\Controls\Primitives\DataGridRowHeader.cs (5)
122
StyleProperty
.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle));
231
DataGridHelper.TransferProperty(this,
StyleProperty
);
262
else if (e.Property == DataGrid.RowHeaderStyleProperty || e.Property == DataGridRow.HeaderStyleProperty || e.Property ==
StyleProperty
)
264
DataGridHelper.TransferProperty(this,
StyleProperty
);
373
StyleProperty
,
System\Windows\Controls\Primitives\StatusBar.cs (2)
142
BaseValueSourceInternal vs = separator.GetValueSource(
StyleProperty
, null, out hasModifiers);
144
separator.SetResourceReference(
StyleProperty
, SeparatorStyleKey);
System\Windows\Controls\ToolBar.cs (2)
482
BaseValueSourceInternal vs = fe.GetValueSource(
StyleProperty
, null, out hasModifiers);
485
fe.SetResourceReference(
StyleProperty
, resourceKey);
System\windows\Documents\TextEditorContextMenu.cs (1)
424
SetResourceReference(
StyleProperty
, typeof(ContextMenu));
System\Windows\FrameworkContentElement.cs (1)
110
FrameworkElement.
StyleProperty
.AddOwner(
System\Windows\FrameworkElement.cs (8)
108
PropertyMetadata metadata =
StyleProperty
.GetMetadata(DependencyObjectType);
112
OnStyleChanged(this, new DependencyPropertyChangedEventArgs(
StyleProperty
, metadata, null, defaultValue));
148
set { SetValue(
StyleProperty
, value); }
159
&& ReadLocalValue(
StyleProperty
) != DependencyProperty.UnsetValue;
887
FrameworkElement.
StyleProperty
, // dp
1797
if (dp ==
StyleProperty
)
1857
if (dp !=
StyleProperty
)
2080
if (dp !=
StyleProperty
&& dp != Control.TemplateProperty && dp != DefaultStyleKeyProperty)
System\Windows\Generated\FrameworkElement.cs (1)
615
InvalidateProperty(
StyleProperty
);
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2710
DependencyProperty dp = System.Windows.FrameworkElement.
StyleProperty
;
System\Windows\Markup\KnownTypes.cs (1)
1783
return System.Windows.FrameworkElement.
StyleProperty
;
System\Windows\Setter.cs (1)
96
if (dp == FrameworkElement.
StyleProperty
)
System\Windows\StyleHelper.cs (7)
241
FrameworkElement.
StyleProperty
.GetMetadata(themeStyleTypeKey);
439
if (StyleHelper.IsSetOnContainer(FrameworkElement.
StyleProperty
, ref containerDependents, true))
441
throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.
StyleProperty
.Name));
3090
return (dp != FrameworkElement.
StyleProperty
);
3102
return (dp != FrameworkElement.
StyleProperty
&&
3117
return (dp != FrameworkElement.
StyleProperty
&&
4231
if (dp != FrameworkElement.
StyleProperty
)
System\Windows\ThemeManager.cs (2)
293
window.SetResourceReference(FrameworkElement.
StyleProperty
, typeof(NavigationWindow));
297
window.SetResourceReference(FrameworkElement.
StyleProperty
, typeof(Window));
System\Windows\TreeWalkHelper.cs (2)
576
(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.
StyleProperty
.GetMetadata(fe.DependencyObjectType).DefaultValue))
757
(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.
StyleProperty
.GetMetadata(fe.DependencyObjectType).DefaultValue))
System\Windows\TriggerBase.cs (1)
175
if (dp == FrameworkElement.
StyleProperty
)
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (2)
563
ValueSource vs = DependencyPropertyHelper.GetValueSource(separator,
StyleProperty
);
565
separator.SetResourceReference(
StyleProperty
, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
83
_currentFilterItem.SetBinding(RibbonMenuItem.
StyleProperty
, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
2025
TransferProperty(original, clone, FrameworkElement.
StyleProperty
, TransferMode.AlwaysTransfer);
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
578
ValueSource vs = DependencyPropertyHelper.GetValueSource(separator,
StyleProperty
);
580
separator.SetResourceReference(
StyleProperty
, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
553
ValueSource vs = DependencyPropertyHelper.GetValueSource(separator,
StyleProperty
);
555
separator.SetResourceReference(
StyleProperty
, MenuItem.SeparatorStyleKey);
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (5)
39
StyleProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnNotifyPropertyChanged, CoerceStyle));
409
PropertyHelper.TransferProperty(this,
StyleProperty
);
418
if (e.Property ==
StyleProperty
|| e.Property == RibbonTab.HeaderStyleProperty || e.Property == Ribbon.TabHeaderStyleProperty)
420
PropertyHelper.TransferProperty(this,
StyleProperty
);
547
StyleProperty
,