/// <summary> /// Occurs when the presenter has been successfully detached from its owning <see cref="RadChartBase" /> instance. /// </summary> protected override void OnDetached(RadChartBase oldChart) { base.OnDetached(oldChart); if (oldChart != null) { RadPolarChart chart = oldChart as RadPolarChart; this.AxisModel.DetachAxis(chart.PolarAxis.model); this.AxisModel.DetachAxis(chart.RadialAxis.model); } // TODO: Raise exception as needed. }
private static void OnRadialAxisChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { RadPolarChart chart = target as RadPolarChart; RadialAxis oldAxis = args.OldValue as RadialAxis; RadialAxis newAxis = args.NewValue as RadialAxis; chart.radialAxisCache = newAxis; if (chart.radialAxisCache != null) { chart.radialAxisCache.type = AxisType.Second; } chart.OnAxisChanged(oldAxis, newAxis); }
/// <summary> /// Occurs when the presenter has been successfully attached to its owning <see cref="RadChartBase" /> instance. /// </summary> protected override void OnAttached() { base.OnAttached(); RadPolarChart chart = this.chart as RadPolarChart; if (chart.PolarAxis != null) { this.AxisModel.AttachAxis(chart.PolarAxis.model, AxisType.First); } if (chart.RadialAxis != null) { this.AxisModel.AttachAxis(chart.RadialAxis.model, AxisType.Second); } }
private static void OnStartAngleChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { RadPolarChart chart = target as RadPolarChart; (chart.chartArea as PolarChartAreaModel).StartAngle = (double)args.NewValue; }