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 a new instance of the MicroSeriesBase class.
protected MicroSeriesBase()
Properties
Index
Gets the index of this series in the associated chart. This is a dependency property.
public int Index { get; }
Property Value
- int:
The index of this series in the associated chart. The default value is
-1
.
ItemsSource
Gets or sets a collection used to generate the data points of the MicroSeriesBase. This is a dependency property.
[TypeConverter(typeof(MicroSeriesItemsSourceConverter))]
public IEnumerable ItemsSource { get; set; }
Property Value
- IEnumerable:
A collection used to generate the data points of the MicroSeriesBase. The default value is
null
.
LogicalOrientation
Gets the logical orientation of the series.
Methods
NotifyPropertyChanged(string)
Notifies that a property has changed.
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 NotifyCollectionChangedEventArgs instance containing the event data. |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | PropertyChangedEventArgs | The PropertyChangedEventArgs that contains the event data. |
Refresh()
Updates the series based on the current state.
public abstract void Refresh()
Events
PropertyChanged
Occurs when a property has been changed.
Fields
IndexProperty
Identifies the read-only Index dependency property. This field is read-only.
public static readonly DependencyProperty IndexProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property. This field is read-only.
public static readonly DependencyProperty ItemsSourceProperty