AnnotationLabel
Defines an AnnotationLabel which may be used in HorizontalLineAnnotation and VerticalLineAnnotation instances
Inherits: Control
Constructors
public AnnotationLabel()
annotationLabel = AnnotationLabel()
Initializes a new instance of the AnnotationLabel class.
Properties
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value
Gets or sets a Style to apply to the Axis Label
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
Gets or sets whether the text in the label is editable
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
Gets or sets the CornerRadius of the Label element
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
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value
Gets or sets the LabelPlacement
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value
Gets or sets a Style to apply to the label
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value
Gets or sets the parent LineAnnotationWithLabelsBase that this label is attached to
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value
Gets or sets the angle, in degrees, of clockwise rotation
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value
Gets or sets the Text of the label
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
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
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
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
Defines the AxisLabel DependnecyProperty
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
Defines the CanEditText DependnecyProperty
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
Defines the CornerRadius DependnecyProperty
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
Defines the LabelPlacement DependnecyProperty
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
Defines the LabelStyle DependnecyProperty
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
Defines the RotationAngle DependnecyProperty
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
Defines the TextFormatting DependnecyProperty
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
Defines the Text DependnecyProperty