示例#1
0
 /// <summary>
 /// Initializes static members of the <see cref="CategoryAxis"/> class.
 /// </summary>
 static CategoryAxis()
 {
     PositionProperty.OverrideMetadata(typeof(CategoryAxis), new PropertyMetadata(Axes.AxisPosition.Bottom, DataChanged));
     MinimumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new PropertyMetadata(0.0, DataChanged));
     MaximumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new PropertyMetadata(0.0, DataChanged));
     MajorStepProperty.OverrideMetadata(typeof(CategoryAxis), new PropertyMetadata(1.0, DataChanged));
 }
示例#2
0
 /// <summary>
 /// Initializes static members of the <see cref="CategoryAxis" /> class.
 /// </summary>
 static CategoryAxis()
 {
     PositionProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata <Axes.AxisPosition>(Axes.AxisPosition.Bottom));
     MinimumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata <double>(0.0));
     MaximumPaddingProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata <double>(0.0));
     MajorStepProperty.OverrideMetadata(typeof(CategoryAxis), new StyledPropertyMetadata <double>(1.0));
     IsTickCenteredProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     ItemsProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     LabelFieldProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     LabelsProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     PositionProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     MinimumPaddingProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     MaximumPaddingProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
     MajorStepProperty.Changed.AddClassHandler <CategoryAxis>(DataChanged);
 }