MicroSeriesBase Class
Provides the base class for a micro series.
public abstract class MicroSeriesBase : Control, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, INotifyPropertyChanged
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.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
- System.Int32:
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.
public IEnumerable ItemsSource { get; set; }
Property Value
- System.Collections.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.
protected virtual Orientation LogicalOrientation { get; }
Property Value
- System.Windows.Controls.Orientation
Methods
NotifyPropertyChanged(String)
Notifies that a property has changed.
protected void NotifyPropertyChanged(string propertyName)
Parameter | Type | Description |
---|---|---|
propertyName | System.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 | System.Collections.IEnumerable | Old value of the ItemsSource property. |
newValue | System.Collections.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 | System.Object | The source of the event. |
e | System.Collections.Specialized.NotifyCollectionChangedEventArgs | The System.Collections.Specialized.NotifyCollectionChangedEventArgs instance containing the event data. |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | System.ComponentModel.PropertyChangedEventArgs | The System.ComponentModel.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.
public event PropertyChangedEventHandler PropertyChanged
Event Type
- System.ComponentModel.PropertyChangedEventHandler
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
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()