static DynamicDataGrid() { ItemsSourceProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(null, ItemsSourceChanged)); //DefaultStyleKeyProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(typeof(DynamicDataGrid))); }
static DataGrid2() { //DataGrid сбрасывает сортировку зачем непонятно ItemsSourceProperty.OverrideMetadata(typeof(DataGrid2), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty)); }
static PersistentComboBox() { ItemsSourceProperty.AddOwner(typeof(PersistentComboBox), new FrameworkPropertyMetadata(null, OnItemsSourceChanged, BeforeItemsSourceChanged)); }
get => (IList)GetValue(ItemsSourceProperty); set => SetValue(ItemsSourceProperty, value);
static AnimatedListBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(typeof(AnimatedListBox))); ItemsSourceProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged)); }
get => (IEnumerable)GetValue(ItemsSourceProperty); set { SetValue(ItemsSourceProperty, value); }
get => (IEnumerable <SwitchButtonViewModel <T> >)GetValue(ItemsSourceProperty); set => SetValue(ItemsSourceProperty, value);
static MyItemsControl() { ItemsSourceProperty.OverrideMetadata( typeof(MyItemsControl), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged)); }
static ArtPanelList() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(typeof(ArtPanelList))); ItemsSourceProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceItemsSource))); }
static MyDataGrid() { ItemsSourceProperty.OverrideMetadata(typeof(MyDataGrid), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty)); }
static MyComboBox() { ItemsSourceProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata((IEnumerable)null, new PropertyChangedCallback(OnItemsSourceChanged))); }
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)); }
set => this.SetValue(ItemsSourceProperty, value);
static ScrollViewerDetectEnd() { DefaultStyleKeyProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(typeof(ScrollViewerDetectEnd))); ItemsSourceProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(null)); ItemsPanelProperty.OverrideMetadata(typeof(ScrollViewerDetectEnd), new FrameworkPropertyMetadata(null)); }
set => SetValue(ItemsSourceProperty, value);
get => (List <Option>)GetValue(ItemsSourceProperty); set { SetValue(ItemsSourceProperty, value); }