Table of Contents

Class Chart

Namespace
Tudormobile.Wpf.Controls
Assembly
Tudormobile.WpfControls.dll

Represents a control that displays a chart with a configurable title.

public class Chart : Control, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Inheritance
Chart
Implements
Derived
Inherited Members

Remarks

The Chart control can be used to visualize data in various formats. The Title property supports data binding, styling, and animation through its dependency property implementation.

Properties

Series

Gets or sets the data series to be displayed in the pie chart.

public ChartSeries Series { get; set; }

Property Value

ChartSeries

Tint

Gets or sets the brush used to apply a color tint to the control's content.

public ColorPalette.ColorGroup Tint { get; set; }

Property Value

ColorPalette.ColorGroup

TintBrush

Gets a brush that applies the current tint color.

public Brush TintBrush { get; }

Property Value

Brush

Remarks

The returned brush is created with the current value of the Tint property. Each access returns a new SolidColorBrush instance.

TintBrushes

Collection of brushes from the current color palette.

protected Brush[] TintBrushes { get; }

Property Value

Brush[]

Title

Gets or sets the title of the chart.

public string Title { get; set; }

Property Value

string

Methods

OnDataPointsChanged(object?, NotifyCollectionChangedEventArgs)

Handles the event that occurs when the collection of data points changes.

protected virtual void OnDataPointsChanged(object? sender, NotifyCollectionChangedEventArgs e)

Parameters

sender object

The source of the event, typically the collection whose contents have changed. This value can be null.

e NotifyCollectionChangedEventArgs

An object that contains information about the collection change event.

OnSeriesChanged(DependencyPropertyChangedEventArgs)

The data series dependency property has changed.

protected virtual void OnSeriesChanged(DependencyPropertyChangedEventArgs args)

Parameters

args DependencyPropertyChangedEventArgs

An object that contains the event data for the dependency property change.

Remarks

Override this method to perform custom actions when the data series changes. You do not need to call the base implementation.