108 references to FrameworkPropertyMetadata
PresentationFramework (71)
MS\Internal\Documents\IFlowDocumentViewer.cs (1)
895
CanGoToNextPagePropertyKey.OverrideMetadata(typeof(ReaderTwoPageViewer), new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox, null, new CoerceValueCallback(CoerceCanGoToNextPage)));
System\Windows\Controls\ComboBox.cs (1)
483
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
System\Windows\Controls\DataGrid.cs (6)
47
VirtualizingPanel.IsVirtualizingProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(true, null, new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
52
AlternationCountProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(0, null, new CoerceValueCallback(OnCoerceAlternationCount)));
3460
DependencyProperty.Register("CanUserAddRows", typeof(bool), typeof(DataGrid), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserAddRowsChanged), new CoerceValueCallback(OnCoerceCanUserAddRows)));
3510
DependencyProperty.Register("CanUserDeleteRows", typeof(bool), typeof(DataGrid), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserDeleteRowsChanged), new CoerceValueCallback(OnCoerceCanUserDeleteRows)));
7076
new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserSortColumnsPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSortColumns)));
7944
new
FrameworkPropertyMetadata
(0, new PropertyChangedCallback(OnFrozenColumnCountPropertyChanged), new CoerceValueCallback(OnCoerceFrozenColumnCount)),
System\Windows\Controls\DataGridCell.cs (2)
37
StyleProperty.OverrideMetadata(typeof(DataGridCell), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStyle));
529
DependencyProperty.RegisterReadOnly("IsReadOnly", typeof(bool), typeof(DataGridCell), new
FrameworkPropertyMetadata
(false, OnNotifyIsReadOnlyChanged, OnCoerceIsReadOnly));
System\Windows\Controls\DataGridColumn.cs (13)
52
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyColumnHeaderPropertyChanged, OnCoerceHeaderStyle));
127
DependencyProperty.Register("CellStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyCellPropertyChanged, OnCoerceCellStyle));
153
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(false, OnNotifyCellPropertyChanged, OnCoerceIsReadOnly));
195
new
FrameworkPropertyMetadata
(DataGridLength.Auto, new PropertyChangedCallback(OnWidthPropertyChanged), new CoerceValueCallback(OnCoerceWidth)));
304
new
FrameworkPropertyMetadata
(20d, new PropertyChangedCallback(OnMinWidthPropertyChanged), new CoerceValueCallback(OnCoerceMinWidth)),
343
new
FrameworkPropertyMetadata
(double.PositiveInfinity, new PropertyChangedCallback(OnMaxWidthPropertyChanged), new CoerceValueCallback(OnCoerceMaxWidth)),
480
DependencyProperty.RegisterReadOnly("ActualWidth", typeof(double), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(0.0, null, new CoerceValueCallback(OnCoerceActualWidth)));
969
new
FrameworkPropertyMetadata
(-1, new PropertyChangedCallback(DisplayIndexChanged), new CoerceValueCallback(OnCoerceDisplayIndex)));
1036
new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnCanUserSortPropertyChanged), new CoerceValueCallback(OnCoerceCanUserSort)));
1248
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnNotifyFrozenPropertyChanged), new CoerceValueCallback(OnCoerceIsFrozen)));
1308
DependencyProperty.Register("CanUserReorder", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnNotifyColumnPropertyChanged), new CoerceValueCallback(OnCoerceCanUserReorder)));
1334
DependencyProperty.Register("DragIndicatorStyle", typeof(Style), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(null, OnNotifyColumnPropertyChanged, OnCoerceDragIndicatorStyle));
1467
DependencyProperty.Register("CanUserResize", typeof(bool), typeof(DataGridColumn), new
FrameworkPropertyMetadata
(true, new PropertyChangedCallback(OnNotifyColumnHeaderPropertyChanged), new CoerceValueCallback(OnCoerceCanUserResize)));
System\Windows\Controls\DataGridRow.cs (8)
105
BackgroundProperty.OverrideMetadata(typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowPropertyChanged, OnCoerceBackground));
305
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderStyle));
320
DependencyProperty.Register("HeaderTemplate", typeof(DataTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplate));
335
DependencyProperty.Register("HeaderTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowAndRowHeaderPropertyChanged, OnCoerceHeaderTemplateSelector));
350
DependencyProperty.Register("ValidationErrorTemplate", typeof(ControlTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyRowPropertyChanged, OnCoerceValidationErrorTemplate));
369
DependencyProperty.Register("DetailsTemplate", typeof(DataTemplate), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplate));
384
DependencyProperty.Register("DetailsTemplateSelector", typeof(DataTemplateSelector), typeof(DataGridRow), new
FrameworkPropertyMetadata
(null, OnNotifyDetailsTemplatePropertyChanged, OnCoerceDetailsTemplateSelector));
399
DependencyProperty.Register("DetailsVisibility", typeof(Visibility), typeof(DataGridRow), new
FrameworkPropertyMetadata
(Visibility.Collapsed, OnNotifyDetailsVisibilityChanged, OnCoerceDetailsVisibility));
System\Windows\Controls\FlowDocumentReader.cs (2)
553
new
FrameworkPropertyMetadata
(
564
new
FrameworkPropertyMetadata
(
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
371
new
FrameworkPropertyMetadata
(
382
new
FrameworkPropertyMetadata
(
System\Windows\Controls\Frame.cs (2)
369
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
414
new
FrameworkPropertyMetadata
(
System\Windows\Controls\MenuItem.cs (1)
1111
new
FrameworkPropertyMetadata
(String.Empty,
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
47
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (8)
35
ContentTemplateProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceContentTemplate));
36
ContentTemplateSelectorProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceContentTemplateSelector));
37
ContentStringFormatProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStringFormat));
38
StyleProperty.OverrideMetadata(typeof(DataGridColumnHeader), new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, OnCoerceStyle));
152
new
FrameworkPropertyMetadata
(-1, new PropertyChangedCallback(OnDisplayIndexChanged), new CoerceValueCallback(OnCoerceDisplayIndex)));
717
new
FrameworkPropertyMetadata
(true, null, new CoerceValueCallback(OnCoerceCanUserSort)));
740
new
FrameworkPropertyMetadata
(null, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceSortDirection)));
873
new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(OnCoerceIsFrozen)));
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
48
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsVirtualizingPropertyChanged), new CoerceValueCallback(OnCoerceIsVirtualizingProperty)));
System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
532
new
FrameworkPropertyMetadata
(false, OnVisualStatePropertyChanged, new CoerceValueCallback(OnCoerceIsRowSelected)));
System\Windows\Controls\Primitives\Popup.cs (4)
64
VisibilityProperty.OverrideMetadata(typeof(Popup), new
FrameworkPropertyMetadata
(VisibilityBoxes.CollapsedBox, null, new CoerceValueCallback(CoerceVisibility)));
772
new
FrameworkPropertyMetadata
(PopupAnimation.None,
808
new
FrameworkPropertyMetadata
(
838
new
FrameworkPropertyMetadata
(
System\Windows\Controls\Primitives\RangeBase.cs (1)
135
new
FrameworkPropertyMetadata
(
System\Windows\Controls\SinglePageViewer.cs (2)
254
new
FrameworkPropertyMetadata
(
268
new
FrameworkPropertyMetadata
(
System\Windows\Controls\TabItem.cs (1)
179
new
FrameworkPropertyMetadata
(
System\Windows\Controls\TextBox.cs (1)
73
HorizontalScrollBarVisibilityProperty.OverrideMetadata(typeof(TextBox), new
FrameworkPropertyMetadata
(
System\Windows\Controls\ToolBar.cs (1)
111
new
FrameworkPropertyMetadata
(
System\Windows\Documents\FixedPage.cs (1)
557
new
FrameworkPropertyMetadata
(
System\Windows\Documents\Hyperlink.cs (1)
342
new
FrameworkPropertyMetadata
(
System\Windows\Window.cs (10)
77
VisibilityProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(Visibility.Collapsed, new PropertyChangedCallback(_OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
91
RenderTransformProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(Transform.Identity, new PropertyChangedCallback(_OnRenderTransformChanged), new CoerceValueCallback(CoerceRenderTransform)));
92
ClipToBoundsProperty.OverrideMetadata(typeof(Window), new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox, new PropertyChangedCallback(_OnClipToBoundsChanged), new CoerceValueCallback(CoerceClipToBounds)));
798
new
FrameworkPropertyMetadata
(
974
new
FrameworkPropertyMetadata
(
1025
new
FrameworkPropertyMetadata
(
1163
new
FrameworkPropertyMetadata
(BooleanBoxes.TrueBox,
1428
new
FrameworkPropertyMetadata
(
1569
new
FrameworkPropertyMetadata
(BooleanBoxes.FalseBox,
1603
new
FrameworkPropertyMetadata
(BooleanBoxes.TrueBox,
System.Windows.Controls.Ribbon (37)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (1)
48
OrientationProperty.OverrideMetadata(typeof(RibbonGroupsPanel), new
FrameworkPropertyMetadata
(Orientation.Horizontal, null, new CoerceValueCallback(CoerceOrientation)));
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
319
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsMinimizedChanged), new CoerceValueCallback(CoerceIsMinimized)));
338
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(OnCoerceIsDropDownOpen)));
354
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsCollapsedChanged), new CoerceValueCallback(CoerceIsCollapsed)));
373
new
FrameworkPropertyMetadata
(null, null, new CoerceValueCallback(OnCoerceTitle)));
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
84
RibbonControlService.IsInControlGroupPropertyKey.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
85
RibbonControlService.IsInQuickAccessToolBarPropertyKey.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
86
RibbonControlService.CanAddToQuickAccessToolBarDirectlyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
88
RibbonMenuButton.CanUserResizeVerticallyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
89
RibbonMenuButton.CanUserResizeHorizontallyProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceToFalse)));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (1)
54
VisibilityProperty.OverrideMetadata(typeof(RibbonContextualTabGroup), new
FrameworkPropertyMetadata
(Visibility.Collapsed, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroupItemsControl.cs (2)
35
ItemTemplateProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, CoerceItemTemplate));
36
ItemContainerStyleProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, OnNotifyPropertyChanged, CoerceItemContainerStyle));
Microsoft\Windows\Controls\Ribbon\RibbonControlService.cs (3)
598
new
FrameworkPropertyMetadata
(null,
667
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnDefaultControlSizeDefinitionChanged), new CoerceValueCallback(CoerceDefaultControlSizeDefinition)));
777
new
FrameworkPropertyMetadata
(false, RibbonHelper.OnCanAddToQuickAccessToolBarDirectlyChanged, RibbonHelper.OnCoerceCanAddToQuickAccessToolBarDirectly));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
171
DependencyProperty.Register("CurrentFilterStyle", typeof(Style), typeof(RibbonGallery), new
FrameworkPropertyMetadata
(null, null, OnCoerceCurrentFilterStyle));
232
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnCurrentFilterTemplateChanged), new CoerceValueCallback(OnCoerceCurrentFilterTemplate)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (1)
56
ItemTemplateProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnNotifyPropertyChanged), new CoerceValueCallback(CoerceItemTemplate)));
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
44
ContentProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnContentChanged), new CoerceValueCallback(CoerceContent)));
745
KeyTipService.KeyTipProperty.AddOwner(typeof(RibbonGalleryItem), new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
241
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsCollapsedChanged), new CoerceValueCallback(CoerceIsCollapsed)));
608
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(CoerceIsDropDownOpen)));
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
432
new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsDropDownOpenChanged), new CoerceValueCallback(CoerceIsDropDownOpen)));
443
new
FrameworkPropertyMetadata
(double.NaN,
461
new
FrameworkPropertyMetadata
(false,
478
new
FrameworkPropertyMetadata
(false,
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
68
HeaderProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnHeaderChanged), new CoerceValueCallback(CoerceHeader)));
258
new
FrameworkPropertyMetadata
(false,
273
new
FrameworkPropertyMetadata
(false,
289
new
FrameworkPropertyMetadata
(double.NaN,
1766
new
FrameworkPropertyMetadata
(null, new PropertyChangedCallback(OnKeyTipChanged), new CoerceValueCallback(CoerceKeyTip)));
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (2)
49
VisibilityProperty.OverrideMetadata(ownerType, new
FrameworkPropertyMetadata
(Visibility.Visible, new PropertyChangedCallback(OnVisibilityChanged), new CoerceValueCallback(CoerceVisibility)));
150
DependencyProperty.Register("HeaderStyle", typeof(Style), typeof(RibbonTab), new
FrameworkPropertyMetadata
(null, OnNotifyHeaderPropertyChanged, CoerceHeaderStyle));
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
68
DependencyProperty.RegisterReadOnly("IsRibbonTabSelected", typeof(bool), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(false, new PropertyChangedCallback(OnIsRibbonTabSelectedChanged), new CoerceValueCallback(OnCoerceIsRibbonTabSelected)));
83
DependencyProperty.RegisterReadOnly("ContextualTabGroup", typeof(RibbonContextualTabGroup), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(null, null, new CoerceValueCallback(CoerceContextualTabGroup)));
94
DependencyProperty.RegisterReadOnly("IsContextualTab", typeof(bool), typeof(RibbonTabHeader), new
FrameworkPropertyMetadata
(false, null, new CoerceValueCallback(CoerceIsContextualTab)));