/// <summary> /// Initialises static members of the <see cref="FlipControl"/> class. /// </summary> static FlipControl() { ItemsSourceProperty.OverrideMetadata( typeof(FlipControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnItemsSourceChanged))); SelectedIndexProperty.OverrideMetadata( typeof(FlipControl), new FrameworkPropertyMetadata(new PropertyChangedCallback(OnSelectedIndexChanged))); }
/// <summary> /// Initializes static members of the <see cref="ExtendedDiagramOrgChartBehavior"/> class. /// </summary> static ExtendedDiagramOrgChartBehavior() { ItemsSourceProperty.OverrideMetadata(typeof(ExtendedDiagramOrgChartBehavior), new FrameworkPropertyMetadata(null, (d, e) => ((ExtendedDiagramOrgChartBehavior)d).OnItemsSourceChanged(e.OldValue, e.NewValue))); }
static MyItemsControl() { ItemsSourceProperty.OverrideMetadata( typeof(MyItemsControl), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged)); }
static DynamicDataGrid() { ItemsSourceProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(null, ItemsSourceChanged)); //DefaultStyleKeyProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(typeof(DynamicDataGrid))); }
static ConstraintList() { ItemsSourceProperty.OverrideMetadata(typeof(ConstraintList), new FrameworkPropertyMetadata(null, null, new CoerceValueCallback(CoerceItemsSource))); }
static AnimatedListBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(typeof(AnimatedListBox))); ItemsSourceProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged)); }
static DataGrid2() { //DataGrid сбрасывает сортировку зачем непонятно ItemsSourceProperty.OverrideMetadata(typeof(DataGrid2), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty)); }
static ArtPanelList() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(typeof(ArtPanelList))); ItemsSourceProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceItemsSource))); }
static ScrollViewerDetectEnd() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(typeof(ScrollViewerDetectEnd))); ItemsSourceProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(null)); ItemsPanelProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(null)); }
static MyComboBox() { ItemsSourceProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata((IEnumerable)null, new PropertyChangedCallback(OnItemsSourceChanged))); }
static MyDataGrid() { ItemsSourceProperty.OverrideMetadata(typeof(MyDataGrid), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty)); }
static MultiSelectTreeView() { ItemsSourceProperty.OverrideMetadata(typeof(MultiSelectTreeView), new FrameworkPropertyMetadata(null, ItemsSourceChanged, ItemsSourceCoerce)); ItemTemplateSelectorProperty.OverrideMetadata(typeof(MultiSelectTreeView), new FrameworkPropertyMetadata(new PropertyDataTemplateSelector(), tsChanged)); DefaultStyleKeyProperty.OverrideMetadata(typeof(MultiSelectTreeView), new FrameworkPropertyMetadata(typeof(MultiSelectTreeView))); }
static VirtualTreeView() { DefaultStyleKeyProperty.OverrideMetadata(typeof(VirtualTreeView), new FrameworkPropertyMetadata(typeof(VirtualTreeView))); ItemsSourceProperty.OverrideMetadata(typeof(VirtualTreeView), new FrameworkPropertyMetadata(OnItemsSourceChanged)); }
/// <summary> /// Overrides inherited metadata for the <see cref="ItemsControl.ItemsSource"/> property. /// </summary> protected static void OverrideMetadataItemsSource() { ItemsSourceProperty.OverrideMetadata(typeof(ExtendedTreeViewBase), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.NotDataBindable, null, new CoerceValueCallback(CoerceItemsSource), true)); }