114 references to DefaultStyleKeyProperty
PresentationFramework (81)
System\Windows\Controls\Button.cs (1)
24
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Button), new FrameworkPropertyMetadata(typeof(Button)));
System\Windows\Controls\Calendar.cs (1)
79
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Calendar), new FrameworkPropertyMetadata(typeof(Calendar)));
System\Windows\Controls\CheckBox.cs (1)
32
DefaultStyleKeyProperty
.OverrideMetadata(typeof(CheckBox), new FrameworkPropertyMetadata(typeof(CheckBox)));
System\Windows\Controls\ComboBox.cs (1)
43
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ComboBox), new FrameworkPropertyMetadata(typeof(ComboBox)));
System\Windows\Controls\ComboBoxItem.cs (1)
42
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ComboBoxItem), new FrameworkPropertyMetadata(typeof(ComboBoxItem)));
System\Windows\Controls\ContentControl.cs (1)
42
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ContentControl), new FrameworkPropertyMetadata(typeof(ContentControl)));
System\Windows\Controls\ContextMenu.cs (1)
38
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ContextMenu), new FrameworkPropertyMetadata(typeof(ContextMenu)));
System\Windows\Controls\DataGrid.cs (1)
40
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(DataGrid)));
System\Windows\Controls\DataGridCell.cs (1)
29
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridCell), new FrameworkPropertyMetadata(typeof(DataGridCell)));
System\Windows\Controls\DataGridColumnDropSeparator.cs (1)
19
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
21
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
32
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TextBlockComboBox), new FrameworkPropertyMetadata(DataGridComboBoxColumn.TextBlockComboBoxStyleKey));
System\Windows\Controls\DataGridRow.cs (1)
98
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridRow), new FrameworkPropertyMetadata(typeof(DataGridRow)));
System\Windows\Controls\DatePicker.cs (1)
85
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(typeof(DatePicker)));
System\Windows\Controls\DocumentViewer.cs (1)
2024
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DocumentViewer), new FrameworkPropertyMetadata(typeof(DocumentViewer)));
System\Windows\Controls\Expander.cs (1)
55
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Expander), new FrameworkPropertyMetadata(typeof(Expander)));
System\Windows\Controls\FlowDocumentReader.cs (1)
46
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
53
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\Controls\Frame.cs (1)
109
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Frame), new FrameworkPropertyMetadata(typeof(Frame)));
System\Windows\Controls\GridSplitter.cs (1)
88
DefaultStyleKeyProperty
.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(typeof(GridSplitter)));
System\Windows\Controls\GridViewColumnHeader.cs (1)
60
DefaultStyleKeyProperty
.OverrideMetadata(typeof(GridViewColumnHeader), new FrameworkPropertyMetadata(typeof(GridViewColumnHeader)));
System\Windows\Controls\GroupBox.cs (1)
26
DefaultStyleKeyProperty
.OverrideMetadata(typeof(GroupBox), new FrameworkPropertyMetadata(typeof(GroupBox)));
System\Windows\Controls\GroupItem.cs (1)
25
DefaultStyleKeyProperty
.OverrideMetadata(typeof(GroupItem), new FrameworkPropertyMetadata(typeof(GroupItem)));
System\Windows\Controls\HeaderedContentControl.cs (1)
31
DefaultStyleKeyProperty
.OverrideMetadata(typeof(HeaderedContentControl), new FrameworkPropertyMetadata(typeof(HeaderedContentControl)));
System\Windows\Controls\InkCanvas.cs (1)
130
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(InkCanvas)));
System\Windows\Controls\ItemsControl.cs (1)
55
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ItemsControl), new FrameworkPropertyMetadata(typeof(ItemsControl)));
System\Windows\Controls\Label.cs (1)
47
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Label), new FrameworkPropertyMetadata(typeof(Label)));
System\Windows\Controls\ListBox.cs (1)
59
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ListBox), new FrameworkPropertyMetadata(typeof(ListBox)));
System\Windows\Controls\ListBoxItem.cs (1)
44
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ListBoxItem), new FrameworkPropertyMetadata(typeof(ListBoxItem)));
System\Windows\Controls\ListView.cs (1)
256
ClearValue(
DefaultStyleKeyProperty
);
System\Windows\Controls\ListViewItem.cs (1)
27
ClearValue(
DefaultStyleKeyProperty
);
System\Windows\Controls\Menu.cs (1)
46
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Menu), new FrameworkPropertyMetadata(typeof(Menu)));
System\Windows\Controls\MenuItem.cs (1)
178
DefaultStyleKeyProperty
.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(typeof(MenuItem)));
System\Windows\Controls\Page.cs (1)
52
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Page), new FrameworkPropertyMetadata(typeof(Page)));
System\Windows\Controls\PasswordBox.cs (1)
50
DefaultStyleKeyProperty
.OverrideMetadata(typeof(PasswordBox), new FrameworkPropertyMetadata(typeof(PasswordBox)));
System\Windows\Controls\Primitives\CalendarButton.cs (1)
20
DefaultStyleKeyProperty
.OverrideMetadata(typeof(CalendarButton), new FrameworkPropertyMetadata(typeof(CalendarButton)));
System\Windows\Controls\Primitives\CalendarDayButton.cs (1)
29
DefaultStyleKeyProperty
.OverrideMetadata(typeof(CalendarDayButton), new FrameworkPropertyMetadata(typeof(CalendarDayButton)));
System\Windows\Controls\Primitives\CalendarItem.cs (1)
59
DefaultStyleKeyProperty
.OverrideMetadata(typeof(CalendarItem), new FrameworkPropertyMetadata(typeof(CalendarItem)));
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
33
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridCellsPresenter), new FrameworkPropertyMetadata(typeof(DataGridCellsPresenter)));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
27
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridColumnHeader), new FrameworkPropertyMetadata(typeof(DataGridColumnHeader)));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
35
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
17
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridDetailsPresenter), new FrameworkPropertyMetadata(typeof(DataGridDetailsPresenter)));
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
118
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(typeof(DataGridRowHeader)));
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
36
DefaultStyleKeyProperty
.OverrideMetadata(typeof(DatePickerTextBox), new FrameworkPropertyMetadata(typeof(DatePickerTextBox)));
System\Windows\Controls\Primitives\RepeatButton.cs (1)
24
DefaultStyleKeyProperty
.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton)));
System\Windows\Controls\Primitives\ResizeGrip.cs (1)
35
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ResizeGrip), new FrameworkPropertyMetadata(typeof(ResizeGrip)));
System\Windows\Controls\Primitives\ScrollBar.cs (1)
670
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ScrollBar), new FrameworkPropertyMetadata(typeof(ScrollBar)));
System\Windows\Controls\Primitives\StatusBar.cs (1)
33
DefaultStyleKeyProperty
.OverrideMetadata(typeof(StatusBar), new FrameworkPropertyMetadata(typeof(StatusBar)));
System\Windows\Controls\Primitives\StatusBarItem.cs (1)
23
DefaultStyleKeyProperty
.OverrideMetadata(typeof(StatusBarItem), new FrameworkPropertyMetadata(typeof(StatusBarItem)));
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
50
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TextBoxBase), new FrameworkPropertyMetadata(typeof(TextBoxBase)));
System\Windows\Controls\Primitives\Thumb.cs (1)
40
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Thumb), new FrameworkPropertyMetadata(typeof(Thumb)));
System\Windows\Controls\Primitives\ToggleButton.cs (1)
28
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ToggleButton), new FrameworkPropertyMetadata(typeof(ToggleButton)));
System\Windows\Controls\ProgressBar.cs (1)
37
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ProgressBar), new FrameworkPropertyMetadata(typeof(ProgressBar)));
System\Windows\Controls\RadioButton.cs (1)
27
DefaultStyleKeyProperty
.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(typeof(RadioButton)));
System\Windows\Controls\RichTextBox.cs (1)
43
DefaultStyleKeyProperty
.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(typeof(RichTextBox)));
System\Windows\Controls\ScrollViewer.cs (1)
2908
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ScrollViewer), new FrameworkPropertyMetadata(typeof(ScrollViewer)));
System\Windows\Controls\Separator.cs (1)
21
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Separator), new FrameworkPropertyMetadata(typeof(Separator)));
System\Windows\Controls\SinglePageViewer.cs (1)
49
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\Controls\Slider.cs (1)
68
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Slider), new FrameworkPropertyMetadata(typeof(Slider)));
System\Windows\Controls\StickyNote.cs (1)
109
DefaultStyleKeyProperty
.OverrideMetadata(owner, new FrameworkPropertyMetadata(
System\Windows\Controls\TabControl.cs (1)
35
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TabControl), new FrameworkPropertyMetadata(typeof(TabControl)));
System\Windows\Controls\TabItem.cs (1)
50
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TabItem), new FrameworkPropertyMetadata(typeof(TabItem)));
System\Windows\Controls\TextBlock.cs (1)
322
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TextBlock), new FrameworkPropertyMetadata(typeof(TextBlock)));
System\Windows\Controls\TextBox.cs (1)
46
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TextBox), new FrameworkPropertyMetadata(typeof(TextBox)));
System\Windows\Controls\ToolBar.cs (1)
62
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ToolBar), new FrameworkPropertyMetadata(typeof(ToolBar)));
System\Windows\Controls\ToolBarTray.cs (1)
41
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ToolBarTray), new FrameworkPropertyMetadata(typeof(ToolBarTray)));
System\Windows\Controls\ToolTip.cs (1)
25
DefaultStyleKeyProperty
.OverrideMetadata(typeof(ToolTip), new FrameworkPropertyMetadata(typeof(ToolTip)));
System\Windows\Controls\TreeView.cs (1)
30
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TreeView), new FrameworkPropertyMetadata(typeof(TreeView)));
System\Windows\Controls\TreeViewItem.cs (1)
31
DefaultStyleKeyProperty
.OverrideMetadata(typeof(TreeViewItem), new FrameworkPropertyMetadata(typeof(TreeViewItem)));
System\Windows\Controls\UserControl.cs (1)
20
DefaultStyleKeyProperty
.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(typeof(UserControl)));
System\Windows\FrameworkContentElement.cs (1)
185
FrameworkElement.
DefaultStyleKeyProperty
.AddOwner(
System\Windows\FrameworkElement.cs (3)
245
get { return GetValue(
DefaultStyleKeyProperty
); }
246
set { SetValue(
DefaultStyleKeyProperty
, value); }
2089
if (dp != StyleProperty && dp != Control.TemplateProperty && dp !=
DefaultStyleKeyProperty
)
System\Windows\Navigation\NavigationWindow.cs (1)
142
DefaultStyleKeyProperty
.OverrideMetadata(
System\Windows\StyleHelper.cs (5)
134
if(ShouldGetValueFromStyle ( FrameworkElement.
DefaultStyleKeyProperty
) )
459
if (StyleHelper.IsSetOnContainer(FrameworkElement.
DefaultStyleKeyProperty
, ref containerDependents, true))
461
throw new InvalidOperationException(SR.Format(SR.CannotHavePropertyInTemplate, FrameworkElement.
DefaultStyleKeyProperty
.Name));
3112
dp != FrameworkElement.
DefaultStyleKeyProperty
&&
3127
dp != FrameworkElement.
DefaultStyleKeyProperty
&&
System\Windows\Window.cs (1)
72
DefaultStyleKeyProperty
.OverrideMetadata(typeof(Window), new FrameworkPropertyMetadata(typeof(Window)));
System.Windows.Controls.Ribbon (33)
Microsoft\Windows\Controls\KeyTipControl.cs (1)
20
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
94
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
80
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
38
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
36
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
44
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
44
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
49
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
46
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
51
DefaultStyleKeyProperty
.OverrideMetadata(typeof(RibbonContextualTabGroup), new FrameworkPropertyMetadata(typeof(RibbonContextualTabGroup)));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (1)
32
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
48
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
36
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (1)
37
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
60
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
50
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (1)
41
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
60
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (1)
52
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
56
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
102
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
44
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonSeparator.cs (1)
37
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (1)
42
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
34
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
44
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
37
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonTabHeaderItemsControl.cs (1)
34
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(typeof(RibbonTabHeaderItemsControl)));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
45
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
45
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
39
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (1)
43
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (1)
50
DefaultStyleKeyProperty
.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new ComponentResourceKey(typeof(Ribbon), "RibbonWindowStyle")));