ApiElementBase

StockSharp.Xaml.Charting.ChartModifiers

Base class to expose properties and methods for AnnotationBase derived types and ChartModifierBase derived types

Inherits: ContentControl

Implements: INotifyPropertyChanged

Properties

IsAttached
public virtual bool IsAttached { get; set; }
value = apiElementBase.IsAttached
apiElementBase.IsAttached = value

Gets or sets whether this Element is attached to a parent UltrachartSurface

ModifierSurface
public IChartModifierSurface ModifierSurface { get; }
value = apiElementBase.ModifierSurface

Gets the IChartModifierSurface instance on the parent UltrachartSurface, which acts as a canvas to place UIElements

ParentSurface
public virtual IUltrachartSurface ParentSurface { get; set; }
value = apiElementBase.ParentSurface
apiElementBase.ParentSurface = value

Gets or sets the parent UltrachartSurface to perform operations on

RootGrid
protected IMainGrid RootGrid { get; }
value = apiElementBase.RootGrid

Gets the IMainGrid which is the root component for the UltrachartSurface, containing the XAxis, YAxes, ModifierSurface, RenderSurface and GridLinesPanel

Services
public virtual IServiceContainer Services { get; set; }
value = apiElementBase.Services
apiElementBase.Services = value

Gets or sets a IServiceContainer container

XAxes
public IEnumerable<IAxis> XAxes { get; }
value = apiElementBase.XAxes

Returns the XAxes on the parent UltrachartSurface

XAxis
public virtual IAxis XAxis { get; }
value = apiElementBase.XAxis

Gets the primary XAxis instance from the parent XAxes collection

YAxes
public IEnumerable<IAxis> YAxes { get; }
value = apiElementBase.YAxes

Returns the YAxes on the parent UltrachartSurface

YAxis
public virtual IAxis YAxis { get; }
value = apiElementBase.YAxis

Gets the primary YAxis instance from the parent YAxes collection

Methods

GetAndAssertTemplateChild``1
protected T GetAndAssertTemplateChild<T>(string childName)
result = apiElementBase.GetAndAssertTemplateChild(childName)

Gets the TemplateChild by the specified name and casts to type , asserting that the result is not null

childName
Name of the templated part.

Returns: The template part instance

GetXAxis
public IAxis GetXAxis(string axisName)
result = apiElementBase.GetXAxis(axisName)

Gets the XAxis IAxis instance on the parent UltrachartSurface at the specified AxisAlignment

GetYAxis
public IAxis GetYAxis(string axisName)
result = apiElementBase.GetYAxis(axisName)

Gets the YAxis IAxis instance on the parent UltrachartSurface at the specified AxisAlignment

OnAttached
public abstract void OnAttached()
apiElementBase.OnAttached()

Called when the element is attached to the Chart Surface

OnDetached
public abstract void OnDetached()
apiElementBase.OnDetached()

Called immediately before the element is detached from the Chart Surface

OnInvalidateParentSurface
protected virtual void OnInvalidateParentSurface()
apiElementBase.OnInvalidateParentSurface()

Raises the InvalidateUltrachartMessage which causes the parent UltrachartSurface to invalidate

OnPropertyChanged
protected void OnPropertyChanged(string propertyName)
apiElementBase.OnPropertyChanged(propertyName)

Raises the PropertyChanged event, as part of INotifyPropertyChanged implementation

propertyName
Name of the property.

Events

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
apiElementBase.PropertyChanged += handler

Occurs when a property changes in the INotifyPropertyChanged implementation