AnnotationLabel

StockSharp.Xaml.Charting.Visuals.Annotations

Defines an AnnotationLabel which may be used in HorizontalLineAnnotation and VerticalLineAnnotation instances

Inherits: Control

Constructors

AnnotationLabel
public AnnotationLabel()
annotationLabel = AnnotationLabel()

Initializes a new instance of the AnnotationLabel class.

Properties

AxisLabelStyle
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value

Gets or sets a Style to apply to the Axis Label

CanEditText
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value

Gets or sets whether the text in the label is editable

CornerRadius
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value

Gets or sets the CornerRadius of the Label element

IsAxisLabel
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel

Returns True if LabelPlacement == LabelPlacement.Axis or if ParentAnnotation.ResolveAutoPlacement() == LabelPlacement.Axis in case when LabelPlacement == LabelPlacement.Auto

LabelPlacement
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value

Gets or sets the LabelPlacement

LabelStyle
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value

Gets or sets a Style to apply to the label

ParentAnnotation
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value

Gets or sets the parent LineAnnotationWithLabelsBase that this label is attached to

RotationAngle
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value

Gets or sets the angle, in degrees, of clockwise rotation

Text
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value

Gets or sets the Text of the label

TextFormatting
public string TextFormatting { get; set; }
value = annotationLabel.TextFormatting
annotationLabel.TextFormatting = value

Gets or sets the TextFormatting to use on the label, when the Text property is bound to a Data-Value. This works in a similar way to the AxisBase TextFormatting property

Methods

GetAndAssertTemplateChild``1
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.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

OnApplyTemplate
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.

Fields

AxisLabelStyleProperty
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty

Defines the AxisLabel DependnecyProperty

CanEditTextProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty

Defines the CanEditText DependnecyProperty

CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty

Defines the CornerRadius DependnecyProperty

LabelPlacementProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty

Defines the LabelPlacement DependnecyProperty

LabelStyleProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty

Defines the LabelStyle DependnecyProperty

RotationAngleProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty

Defines the RotationAngle DependnecyProperty

TextFormattingProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty

Defines the TextFormatting DependnecyProperty

TextProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty

Defines the Text DependnecyProperty