ApiElementBase
Base class to expose properties and methods for AnnotationBase derived types and ChartModifierBase derived types
Inherits: ContentControl
Implements: INotifyPropertyChanged
Properties
public virtual bool IsAttached { get; set; }
value = apiElementBase.IsAttached
apiElementBase.IsAttached = value
Gets or sets whether this Element is attached to a parent UltrachartSurface
public IChartModifierSurface ModifierSurface { get; }
value = apiElementBase.ModifierSurface
Gets the IChartModifierSurface instance on the parent UltrachartSurface, which acts as a canvas to place UIElements
public virtual IUltrachartSurface ParentSurface { get; set; }
value = apiElementBase.ParentSurface
apiElementBase.ParentSurface = value
Gets or sets the parent UltrachartSurface to perform operations on
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
public virtual IServiceContainer Services { get; set; }
value = apiElementBase.Services
apiElementBase.Services = value
Gets or sets a IServiceContainer container
public IEnumerable<IAxis> XAxes { get; }
value = apiElementBase.XAxes
Returns the XAxes on the parent UltrachartSurface
public virtual IAxis XAxis { get; }
value = apiElementBase.XAxis
Gets the primary XAxis instance from the parent XAxes collection
public IEnumerable<IAxis> YAxes { get; }
value = apiElementBase.YAxes
Returns the YAxes on the parent UltrachartSurface
public virtual IAxis YAxis { get; }
value = apiElementBase.YAxis
Gets the primary YAxis instance from the parent YAxes collection
Methods
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
public IAxis GetXAxis(string axisName)
result = apiElementBase.GetXAxis(axisName)
Gets the XAxis IAxis instance on the parent UltrachartSurface at the specified AxisAlignment
public IAxis GetYAxis(string axisName)
result = apiElementBase.GetYAxis(axisName)
Gets the YAxis IAxis instance on the parent UltrachartSurface at the specified AxisAlignment
public abstract void OnAttached()
apiElementBase.OnAttached()
Called when the element is attached to the Chart Surface
public abstract void OnDetached()
apiElementBase.OnDetached()
Called immediately before the element is detached from the Chart Surface
protected virtual void OnInvalidateParentSurface()
apiElementBase.OnInvalidateParentSurface()
Raises the InvalidateUltrachartMessage which causes the parent UltrachartSurface to invalidate
protected void OnPropertyChanged(string propertyName)
apiElementBase.OnPropertyChanged(propertyName)
Raises the PropertyChanged event, as part of INotifyPropertyChanged implementation
- propertyName
- Name of the property.
Events
public event PropertyChangedEventHandler PropertyChanged
apiElementBase.PropertyChanged += handler
Occurs when a property changes in the INotifyPropertyChanged implementation