/// <summary> /// Initializes a new instance of <see cref="Axis"/> class with double <see cref="LabelProvider"/> /// and <see cref="TicksProvider"/>. /// </summary> public Axis() { DataTransform = new IdentityDataTransform(); Ticks = new double[0]; majorTicksPath = new Path(); minorTicksPath = new Path(); Children.Add(majorTicksPath); Children.Add(minorTicksPath); BindingOperations.SetBinding(majorTicksPath, Path.StrokeProperty, new Binding("Foreground") { Source = this, Mode = BindingMode.TwoWay }); BindingOperations.SetBinding(minorTicksPath, Path.StrokeProperty, new Binding("Foreground") { Source = this, Mode = BindingMode.TwoWay }); if (labelProvider == null) { this.labelProvider = new LabelProvider(); } if (ticksProvider == null) { this.ticksProvider = new TicksProvider(); } }
/// <summary> /// Initializes new instance of <see cref="PlotBase"/> class /// </summary> protected PlotBase() { XDataTransform = new IdentityDataTransform(); YDataTransform = new IdentityDataTransform(); masterField = this; Loaded += PlotBaseLoaded; Unloaded += PlotBaseUnloaded; }
/// <summary> /// Initializes new instance of <see cref="PlotAxis"/> class /// </summary> public PlotAxis() { XDataTransform = new IdentityDataTransform(); YDataTransform = new IdentityDataTransform(); Ticks = new double[0]; DefaultStyleKey = typeof(PlotAxis); Loaded += PlotAxisLoaded; Unloaded += PlotAxisUnloaded; }
/// <summary> /// Initializes new instance of <see cref="PlotAxis"/> class /// </summary> public PlotAxis() { XDataTransform = new IdentityDataTransform(); YDataTransform = new IdentityDataTransform(); Ticks = new double[0]; DefaultStyleKey = typeof(PlotAxis); Loaded += PlotAxisLoaded; Unloaded += PlotAxisUnloaded; Foreground = new SolidColorBrush(Colors.Black); }