internal XYAxisGridlinesPanel(XYAxisPresenter presenter) : base(presenter) { this._majorGridLinePool = new PanelElementPool <Line, Axis>((Panel)this, (Func <Line>)(() => this.CreateGridLine(true)), (Action <Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action <Line>)null); this._minorGridLinePool = new PanelElementPool <Line, Axis>((Panel)this, (Func <Line>)(() => this.CreateGridLine(false)), (Action <Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action <Line>)null); this._oppositeAxisLine = this.CreateAxisLine(); }
internal XYAxisGridlinesPanel(XYAxisPresenter presenter) : base(presenter) { this._majorGridLinePool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateGridLine(true)), (Action<Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action<Line>)null); this._minorGridLinePool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateGridLine(false)), (Action<Line, Axis>)((line, axis) => this.PrepareGridLine(line)), (Action<Line>)null); this._oppositeAxisLine = this.CreateAxisLine(); }
internal XYAxisTickMarksPanel(XYAxisPresenter presenter) : base(presenter) { this._majorTickMarkPool = new PanelElementPool<RotatableControl, Axis>((Panel)this, (Func<RotatableControl>)(() => this.CreateTickMark(true)), (Action<RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action<RotatableControl>)null) { ReservedTopElements = 1 }; this._minorTickMarkPool = new PanelElementPool<RotatableControl, Axis>((Panel)this, (Func<RotatableControl>)(() => this.CreateTickMark(false)), (Action<RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action<RotatableControl>)null) { ReservedTopElements = 1 }; this._axisLine = this.CreateAxisLine(); this._scrollBar = this.CreateScrollBar(); this._scrollBar.ValueChanged += new RoutedPropertyChangedEventHandler<double>(this.ScrollBar_ValueChanged); this._scrollBar.ViewportSizeChangeCompleted += new RoutedPropertyChangedEventHandler<double>(this.ScrollBar_ViewportSizeDragCompleted); this.Axis.ScaleChanged += new EventHandler(this.Axis_ScaleChanged); }
internal XYAxisTickMarksPanel(XYAxisPresenter presenter) : base(presenter) { this._majorTickMarkPool = new PanelElementPool <RotatableControl, Axis>((Panel)this, (Func <RotatableControl>)(() => this.CreateTickMark(true)), (Action <RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action <RotatableControl>)null) { ReservedTopElements = 1 }; this._minorTickMarkPool = new PanelElementPool <RotatableControl, Axis>((Panel)this, (Func <RotatableControl>)(() => this.CreateTickMark(false)), (Action <RotatableControl, Axis>)((item, axis) => this.PrepareTickMark(item)), (Action <RotatableControl>)null) { ReservedTopElements = 1 }; this._axisLine = this.CreateAxisLine(); this._scrollBar = this.CreateScrollBar(); this._scrollBar.ValueChanged += new RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged); this._scrollBar.ViewportSizeChangeCompleted += new RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ViewportSizeDragCompleted); this.Axis.ScaleChanged += new EventHandler(this.Axis_ScaleChanged); }
internal XYAxisTitle(XYAxisPresenter presenter) { this.Presenter = presenter; this.Presenter.PropertyChanged += new PropertyChangedEventHandler(this.OnPresenterPropertyChanged); this.SetBinding(ContentControl.ContentProperty, (BindingBase)new Binding("Title") { Source = (object)this.Axis }); this.SetBinding(FrameworkElement.StyleProperty, (BindingBase)new Binding("TitleStyle") { Source = (object)this.Axis }); this.SetBinding(UIElement.VisibilityProperty, (BindingBase)new Binding("ShowTitles") { Source = (object)this.Axis, Converter = (IValueConverter)new BooleanToVisibilityConverter() }); }
internal XYAxisTitle(XYAxisPresenter presenter) { this.Presenter = presenter; this.Presenter.PropertyChanged += new PropertyChangedEventHandler(this.OnPresenterPropertyChanged); this.SetBinding(ContentControl.ContentProperty, (BindingBase) new Binding("Title") { Source = (object)this.Axis }); this.SetBinding(FrameworkElement.StyleProperty, (BindingBase) new Binding("TitleStyle") { Source = (object)this.Axis }); this.SetBinding(UIElement.VisibilityProperty, (BindingBase) new Binding("ShowTitles") { Source = (object)this.Axis, Converter = (IValueConverter) new BooleanToVisibilityConverter() }); }
internal XYAxisElementsPanel(XYAxisPresenter presenter) : base(presenter) { }
internal XYAxisBasePanel(XYAxisPresenter presenter) { this.UseLayoutRounding = true; this.Presenter = presenter; this.Axis = this.Presenter.Axis; }
internal XYAxisElementsPanel(XYAxisPresenter presenter) : base(presenter) { }
internal XYLabelsPanel(XYAxisPresenter presenter) : base(presenter) { this._axisLabelsPool = new PanelElementPool<AxisLabelControl, Axis>((Panel)this, (Func<AxisLabelControl>)(() => this.CreateLabel()), (Action<AxisLabelControl, Axis>)((label, a) => this.ResetLabel(label)), (Action<AxisLabelControl>)null); this._axisLabelLinesPool = new PanelElementPool<Line, Axis>((Panel)this, (Func<Line>)(() => this.CreateLabelLine()), (Action<Line, Axis>)((line, axis) => this.PrepareLabelLine(line)), (Action<Line>)null); }
internal XYAxisBasePanel(XYAxisPresenter presenter) { this.UseLayoutRounding = true; this.Presenter = presenter; this.Axis = this.Presenter.Axis; }