In This Article

MicroSeriesBase Class

Provides the base class for a micro series.

public abstract class MicroSeriesBase : Control
Inheritance:
object Visual UIElement FrameworkElement Control object
Derived:
MicroXYSeriesBase

Constructors

MicroSeriesBase()

Initializes an instance of the class.

protected MicroSeriesBase()

Properties

Index

The index of this series in the associated chart.

public int Index { get; }

Property Value

int:

The default value is -1.

ItemsSource

A collection used to generate the data points of the MicroSeriesBase.

[TypeConverter(typeof(MicroSeriesItemsSourceConverter))]
public IEnumerable? ItemsSource { get; set; }

Property Value

IEnumerable

LogicalOrientation

The logical orientation of the series.

protected virtual Orientation LogicalOrientation { get; }

Property Value

Orientation

Methods

NotifyPropertyChanged(string)

Notifies that a property has changed.

[Obsolete("Use one of the new SetProperty or OnPropertyChanged methods instead of this deprecated NotifyPropertyChanged method.", false)]
protected void NotifyPropertyChanged(string propertyName)
Parameter Type Description
propertyName string

The name of the property that was changed.

OnItemsSourceChanged(IEnumerable?, IEnumerable?)

Occurs when the ItemsSource value is changed.

protected virtual void OnItemsSourceChanged(IEnumerable? oldValue, IEnumerable? newValue)
Parameter Type Description
oldValue IEnumerable

Old value of the ItemsSource property.

newValue IEnumerable

New value of the ItemsSource property.

OnItemsSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs)

Handles the CollectionChanged event of the ItemsSource collection.

protected virtual void OnItemsSourceCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
Parameter Type Description
sender object

The source of the event.

e NotifyCollectionChangedEventArgs

The event data.

OnPropertyChanged(PropertyChangedEventArgs)

Raises the PropertyChanged event.

protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameter Type Description
e PropertyChangedEventArgs

The event data.

OnPropertyChanged(string?)

Raises the PropertyChanged event.

protected void OnPropertyChanged(string? propertyName = null)
Parameter Type Description
propertyName string

(Optional) The name of the property that changed.

Refresh()

Updates the series based on the current state.

public abstract void Refresh()

SetProperty<T>(ref T, T, string?)

Called from a property setter to change the backing field's value and raise PropertyChanged notification events if the new value is not equal to the current value.

protected bool SetProperty<T>(ref T field, T newValue, string? propertyName = null)
Type Parameters:
T -

The type of the property that changed.

Parameter Type Description
field T

The backing field that holds the property's value, which may be updated.

newValue T

The new property value.

propertyName string

(Optional) The name of the property that changed.

Returns

bool:

true if the property was changed; otherwise, false.

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler

Fields

IndexProperty

Defines the Index property.

public static readonly DependencyProperty IndexProperty

ItemsSourceProperty

Defines the ItemsSource property.

public static readonly DependencyProperty ItemsSourceProperty

Extension Methods