示例#1
0
 /// <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)));
 }
示例#2
0
 /// <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));
 }
示例#4
0
 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)));
 }
示例#6
0
 static AnimatedListBox()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(typeof(AnimatedListBox)));
     ItemsSourceProperty.OverrideMetadata(typeof(AnimatedListBox), new FrameworkPropertyMetadata(OnItemsSourcePropertyChanged));
 }
示例#7
0
 static DataGrid2()
 {
     //DataGrid сбрасывает сортировку зачем непонятно
     ItemsSourceProperty.OverrideMetadata(typeof(DataGrid2), new FrameworkPropertyMetadata(null, OnCoerceItemsSourceProperty));
 }
示例#8
0
 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));
 }
示例#10
0
		static MyComboBox()
		{
			ItemsSourceProperty.OverrideMetadata(typeof(MyComboBox),
				new FrameworkPropertyMetadata((IEnumerable)null, new PropertyChangedCallback(OnItemsSourceChanged)));
		}
示例#11
0
 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));
 }