Table of Contents

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
IPersistable
Derived
Extension Methods

Constructors

ChartPart()

Initialize ChartPart<T>.

protected ChartPart()

Properties

Id

Unique ID.

[Browsable(false)]
public Guid Id { get; }

Property Value

Guid

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 SettingsStorage

Settings storage.

OnEquals(T)

Compare ChartElement<T> on the equivalence.

protected override bool OnEquals(T other)

Parameters

other T

Another value with which to compare.

Returns

bool

true, if the specified object is equal to the current object, otherwise, false.

RaisePropertyChanged(string)

To call the event PropertyChanged.

protected void RaisePropertyChanged(string name)

Parameters

name string

Property name.

RaisePropertyChanging(string)

To call the event PropertyChanging.

protected void RaisePropertyChanging(string name)

Parameters

name string

Property name.

RaisePropertyValueChanging(string, object)

To call the event PropertyValueChanging.

protected void RaisePropertyValueChanging(string name, object value)

Parameters

name string

Property name.

value object

New value of the property.

Save(SettingsStorage)

Save settings.

public virtual void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings 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 TField

Field to update.

value TField

New value.

name string

Name of the field to update.

Returns

bool

true if the field was updated. false otherwise.

Type Parameters

TField

The field type.

Events

PropertyChanged

The chart element properties value change event.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler

PropertyChanging

The chart element properties value changing event.

public event PropertyChangingEventHandler PropertyChanging

Event Type

PropertyChangingEventHandler

PropertyValueChanging

The chart element properties value change start event.

public event Action<object, string, object> PropertyValueChanging

Event Type

Action<object, string, object>