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
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
TintBrush
Gets a brush that applies the current tint color.
public Brush TintBrush { get; }
Property Value
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
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
senderobjectThe source of the event, typically the collection whose contents have changed. This value can be null.
eNotifyCollectionChangedEventArgsAn 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
argsDependencyPropertyChangedEventArgsAn 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.