/// <summary> /// Initializes a new instance of CartesianChart class /// </summary> public CartesianChart() { var freq = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed; var updater = new Components.ChartUpdater(freq); ChartCoreModel = new CartesianChartCore(this, updater); SetValue(VisualElementsProperty, new VisualElementsCollection()); }
/// <summary> /// Initializes a new instance of CartesianChart class /// </summary> public CartesianChart() { var freq = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed; var updater = new Components.ChartUpdater(freq); ChartCoreModel = new CartesianChartCore(this, updater); SetCurrentValue(SeriesProperty, DesignerProperties.GetIsInDesignMode(this) ? GetDesignerModeCollection() : new SeriesCollection()); SetCurrentValue(VisualElementsProperty, new VisualElementsCollection()); }
/// <summary> /// Initializes a new instance of CartesianChart class /// </summary> public CartesianChart() { var freq = DisableAnimations ? TimeSpan.FromMilliseconds(10) : AnimationsSpeed; var updater = new Components.ChartUpdater(freq); ChartCoreModel = new CartesianChartCore(this, updater); SetValue(SeriesProperty, Windows.ApplicationModel.DesignMode.DesignModeEnabled ? GetDesignerModeCollection() : new SeriesCollection()); this.SetIfNotSet(VisualElementsProperty, new VisualElementsCollection()); }