Class ChartPart<T>
- Namespace
- StockSharp.Xaml.Charting
- Assembly
- StockSharp.Xaml.Charting.dll
The base class that describes the part of the chart.
public abstract class ChartPart<T> : Equatable<T>, IChartPart<T>, INotifyPropertyChanging, INotifyPropertyChanged, IPersistable where T : ChartPart<T>
Type Parameters
T
The chart element type.
- Inheritance
-
ChartPart<T>
- Implements
-
IChartPart<T>IPersistable
- Derived
-
ChartElement<T>
- Extension Methods
Constructors
ChartPart()
Initialize ChartPart<T>.
protected ChartPart()
Properties
Id
Unique ID.
[Browsable(false)]
public Guid Id { get; }
Property Value
Methods
GetHashCode()
Get the hash code of the object ChartElement<T>.
public override int GetHashCode()
Returns
- int
A hash code.
Load(SettingsStorage)
Load settings.
public virtual void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
OnEquals(T)
Compare ChartElement<T> on the equivalence.
protected override bool OnEquals(T other)
Parameters
other
TAnother value with which to compare.
Returns
RaisePropertyChanged(string)
To call the event PropertyChanged.
protected void RaisePropertyChanged(string name)
Parameters
name
stringProperty name.
RaisePropertyChanging(string)
To call the event PropertyChanging.
protected void RaisePropertyChanging(string name)
Parameters
name
stringProperty name.
RaisePropertyValueChanging(string, object)
To call the event PropertyValueChanging.
protected void RaisePropertyValueChanging(string name, object value)
Parameters
Save(SettingsStorage)
Save settings.
public virtual void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings storage.
SetField<TField>(ref TField, TField, string)
Update field value and raise PropertyChanged event.
protected bool SetField<TField>(ref TField field, TField value, string name)
Parameters
field
TFieldField to update.
value
TFieldNew value.
name
stringName of the field to update.
Returns
Type Parameters
TField
The field type.
Events
PropertyChanged
The chart element properties value change event.
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChanging
The chart element properties value changing event.
public event PropertyChangingEventHandler PropertyChanging
Event Type
PropertyValueChanging
The chart element properties value change start event.
public event Action<object, string, object> PropertyValueChanging