108 references to FrameworkPropertyMetadata
PresentationFramework (71)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
892
CanGoToNextPagePropertyKey.OverrideMetadata(typeof(ReaderTwoPageViewer), new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox, null, new CoerceValueCallback(CoerceCanGoToNextPage)));
System\Windows\Controls\ComboBox.cs (1)
473
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
System\Windows\Controls\DataGrid.cs (6)
44
VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(true, null, new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
49
AlternationCountProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(0, null, new CoerceValueCallback(OnCoerceAlternationCount)));
3457
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3507
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
7073
new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserSortColumnsPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSortColumns)));
7941
new
FrameworkPropertyMetadata
(0, new PropertyChangedCallback(OnFrozenColumnCountPropertyChanged), new CoerceValueCallback(OnCoerceFrozenColumnCount)),
System\Windows\Controls\DataGridCell.cs (2)
30
StyleProperty.OverrideMetadata(typeof(DataGridCell), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStyle));
522
DependencyProperty.RegisterReadOnly("IsReadOnly", typeof(bool), typeof(DataGridCell), new
FrameworkPropertyMetadata
(false, OnNotifyIsReadOnlyChanged, OnCoerceIsReadOnly));
System\Windows\Controls\DataGridColumn.cs (13)
49
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle));
124
DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle));
150
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(false, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly));
192
new
FrameworkPropertyMetadata
(DataGridLength.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth)));
301
new
FrameworkPropertyMetadata
(20d, new PropertyChangedCallback(OnMinWidthPropertyChanged), new CoerceValueCallback(OnCoerceMinWidth)),
340
new
FrameworkPropertyMetadata
(double.PositiveInfinity, new PropertyChangedCallback(OnMaxWidthPropertyChanged), new CoerceValueCallback(OnCoerceMaxWidth)),
477
DependencyProperty.RegisterReadOnly("ActualWidth", typeof(double), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(0.0, null, new CoerceValueCallback(OnCoerceActualWidth)));
966
new
FrameworkPropertyMetadata
(-1, new PropertyChangedCallback(DisplayIndexChanged), new CoerceValueCallback(OnCoerceDisplayIndex)));
1033
new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserSortPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSort)));
1245
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnNotifyFrozenPropertyChanged), new CoerceValueCallback(OnCoerceIsFrozen)));
1305
DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder)));
1331
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle));
1464
DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize)));
System\Windows\Controls\DataGridRow.cs (8)
101
BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
301
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
316
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
331
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
346
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
365
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
380
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
395
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new
FrameworkPropertyMetadata
(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
System\Windows\Controls\FlowDocumentReader.cs (2)
548
new
FrameworkPropertyMetadata
(
559
new
FrameworkPropertyMetadata
(
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
368
new
FrameworkPropertyMetadata
(
379
new
FrameworkPropertyMetadata
(
System\Windows\Controls\Frame.cs (2)
357
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
402
new
FrameworkPropertyMetadata
(
System\Windows\Controls\MenuItem.cs (1)
1101
new
FrameworkPropertyMetadata
(String.Empty,
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
42
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (8)
30
ContentTemplateProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceContentTemplate));
31
ContentTemplateSelectorProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceContentTemplateSelector));
32
ContentStringFormatProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStringFormat));
33
StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStyle));
147
new
FrameworkPropertyMetadata
(-1, new PropertyChangedCallback(OnDisplayIndexChanged), new CoerceValueCallback(OnCoerceDisplayIndex)));
712
new
FrameworkPropertyMetadata
(true, null, new CoerceValueCallback(OnCoerceCanUserSort)));
735
new
FrameworkPropertyMetadata
(null, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceSortDirection)));
868
new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(OnCoerceIsFrozen)));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
43
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
527
new
FrameworkPropertyMetadata
(false, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceIsRowSelected)));
System\Windows\Controls\Primitives\Popup.cs (4)
57
VisibilityProperty.OverrideMetadata(typeof(Popup), new
FrameworkPropertyMetadata
(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility)));
765
new
FrameworkPropertyMetadata
(PopupAnimation.None,
801
new
FrameworkPropertyMetadata
(
831
new
FrameworkPropertyMetadata
(
System\Windows\Controls\Primitives\RangeBase.cs (1)
123
new
FrameworkPropertyMetadata
(
System\Windows\Controls\SinglePageViewer.cs (2)
251
new
FrameworkPropertyMetadata
(
265
new
FrameworkPropertyMetadata
(
System\Windows\Controls\TabItem.cs (1)
173
new
FrameworkPropertyMetadata
(
System\Windows\Controls\TextBox.cs (1)
66
HorizontalScrollBarVisibilityProperty.OverrideMetadata(typeof(TextBox), new
FrameworkPropertyMetadata
(
System\Windows\Controls\ToolBar.cs (1)
102
new
FrameworkPropertyMetadata
(
System\Windows\Documents\FixedPage.cs (1)
549
new
FrameworkPropertyMetadata
(
System\Windows\Documents\Hyperlink.cs (1)
336
new
FrameworkPropertyMetadata
(
System\Windows\Window.cs (10)
64
VisibilityProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
78
RenderTransformProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
79
ClipToBoundsProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
785
new
FrameworkPropertyMetadata
(
961
new
FrameworkPropertyMetadata
(
1012
new
FrameworkPropertyMetadata
(
1150
new
FrameworkPropertyMetadata
(BooleanBoxes.TrueBox,
1415
new
FrameworkPropertyMetadata
(
1556
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
1590
new
FrameworkPropertyMetadata
(BooleanBoxes.TrueBox,
System.Windows.Controls.Ribbon (37)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
43
OrientationProperty.OverrideMetadata(typeof(RibbonGroupsPanel), new
FrameworkPropertyMetadata
(Orientation.Horizontal, null, new CoerceValueCallback(CoerceOrientation)));
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
316
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsMinimizedChanged), new CoerceValueCallback(CoerceIsMinimized)));
335
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(OnCoerceIsDropDownOpen)));
351
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsCollapsedChanged), new CoerceValueCallback(CoerceIsCollapsed)));
370
new
FrameworkPropertyMetadata
(null, null, new CoerceValueCallback(OnCoerceTitle)));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
82
RibbonControlService.IsInControlGroupPropertyKey.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
83
RibbonControlService.IsInQuickAccessToolBarPropertyKey.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
84
RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
86
RibbonMenuButton.CanUserResizeVerticallyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
87
RibbonMenuButton.CanUserResizeHorizontallyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
52
VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new
FrameworkPropertyMetadata
(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
33
ItemTemplateProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, CoerceItemTemplate));
34
ItemContainerStyleProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, CoerceItemContainerStyle));
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (3)
591
new
FrameworkPropertyMetadata
(null,
660
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnDefaultControlSizeDefinitionChanged), new CoerceValueCallback(CoerceDefaultControlSizeDefinition)));
770
new
FrameworkPropertyMetadata
(false, RibbonHelper.OnCanAddToQuickAccessToolBarDirectlyChanged, RibbonHelper.OnCoerceCanAddToQuickAccessToolBarDirectly));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
169
DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new
FrameworkPropertyMetadata
(null, null, OnCoerceCurrentFilterStyle));
230
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnCurrentFilterTemplateChanged), new CoerceValueCallback(OnCoerceCurrentFilterTemplate)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
51
ItemTemplateProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceItemTemplate)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
42
ContentProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnContentChanged), new CoerceValueCallback(CoerceContent)));
743
KeyTipService.KeyTipProperty.AddOwner(typeof(RibbonGalleryItem), new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
238
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsCollapsedChanged), new CoerceValueCallback(CoerceIsCollapsed)));
605
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(CoerceIsDropDownOpen)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
429
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(CoerceIsDropDownOpen)));
440
new
FrameworkPropertyMetadata
(double.NaN,
458
new
FrameworkPropertyMetadata
(false,
475
new
FrameworkPropertyMetadata
(false,
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
65
HeaderProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnHeaderChanged), new CoerceValueCallback(CoerceHeader)));
255
new
FrameworkPropertyMetadata
(false,
270
new
FrameworkPropertyMetadata
(false,
286
new
FrameworkPropertyMetadata
(double.NaN,
1763
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
47
VisibilityProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(Visibility.Visible, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
148
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(RibbonTab), new
FrameworkPropertyMetadata
(null, OnNotifyHeaderPropertyChanged, CoerceHeaderStyle));
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
66
DependencyProperty.RegisterReadOnly("IsRibbonTabSelected", typeof(bool), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsRibbonTabSelectedChanged), new CoerceValueCallback(OnCoerceIsRibbonTabSelected)));
81
DependencyProperty.RegisterReadOnly("ContextualTabGroup", typeof(RibbonContextualTabGroup), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(null, null, new CoerceValueCallback(CoerceContextualTabGroup)));
92
DependencyProperty.RegisterReadOnly("IsContextualTab", typeof(bool), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceIsContextualTab)));