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