static DynamicDataGrid()
 {
     ItemsSourceProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(null, ItemsSourceChanged));
     //DefaultStyleKeyProperty.OverrideMetadata(typeof(DynamicDataGrid), new FrameworkPropertyMetadata(typeof(DynamicDataGrid)));
 }
Exemple #2
0
 static DataGrid2()
 {
     //DataGrid сбрасывает сортировку зачем непонятно
     ItemsSourceProperty.OverrideMetadata(typeof(DataGrid2), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty));
 }
Exemple #3
0
 static PersistentComboBox()
 {
     ItemsSourceProperty.AddOwner(typeof(PersistentComboBox), new FrameworkPropertyMetadata(null, OnItemsSourceChanged, BeforeItemsSourceChanged));
 }
Exemple #4
0
 get => (IList)GetValue(ItemsSourceProperty); set => SetValue(ItemsSourceProperty, value);
Exemple #5
0
 static AnimatedListBox()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(typeof(AnimatedListBox)));
     ItemsSourceProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged));
 }
Exemple #6
0
 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));
 }
Exemple #9
0
 static ArtPanelList()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(typeof(ArtPanelList)));
     ItemsSourceProperty.OverrideMetadata(typeof(ArtPanelList), new FrameworkPropertyMetadata(null, new CoerceValueCallback(CoerceItemsSource)));
 }
Exemple #10
0
 static MyDataGrid()
 {
     ItemsSourceProperty.OverrideMetadata(typeof(MyDataGrid), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty));
 }
Exemple #11
0
		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));
 }
Exemple #17
0
 set => SetValue(ItemsSourceProperty, value);
 get => (List <Option>)GetValue(ItemsSourceProperty); set { SetValue(ItemsSourceProperty, value); }