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