AnnotationLabel
Define un AnnotationLabel que puede ser utilizado en HorizontalLineAnnotation y VerticalLineAnnotation
Hereda de: Control
Constructores
public AnnotationLabel()
annotationLabel = AnnotationLabel()
Inicia una nueva instancia de la clase AnnotationLabel.
Propiedades
public Style AxisLabelStyle { get; set; }
value = annotationLabel.AxisLabelStyle
annotationLabel.AxisLabelStyle = value
Obtiene o establece un estilo para aplicar al Eje Label
public bool CanEditText { get; set; }
value = annotationLabel.CanEditText
annotationLabel.CanEditText = value
Obtiene o establece si el texto en la etiqueta es editable
public CornerRadius CornerRadius { get; set; }
value = annotationLabel.CornerRadius
annotationLabel.CornerRadius = value
Obtiene o establece el CornerRadius del elemento Label
internal bool IsAxisLabel { get; }
value = annotationLabel.IsAxisLabel
Retorno Cierto si LabelPlacement == LabelPlacement.Axis o si ParentAnnotation.ResolveAutoPlacement () == LabelPlacement.Axis en caso de que LabelPlacement == LabelPlacement.Auto
public LabelPlacement LabelPlacement { get; set; }
value = annotationLabel.LabelPlacement
annotationLabel.LabelPlacement = value
Consigue o establece el LabelPlacement
public Style LabelStyle { get; set; }
value = annotationLabel.LabelStyle
annotationLabel.LabelStyle = value
Obtiene o establece un estilo para aplicar a la etiqueta
public LineAnnotationWithLabelsBase ParentAnnotation { get; set; }
value = annotationLabel.ParentAnnotation
annotationLabel.ParentAnnotation = value
Obtiene o establece el padre LineAnnotationWithLabelsBase que esta etiqueta está adjunta a
public double RotationAngle { get; set; }
value = annotationLabel.RotationAngle
annotationLabel.RotationAngle = value
Obtiene o establece el ángulo, en grados, de rotación en sentido de reloj
public string Text { get; set; }
value = annotationLabel.Text
annotationLabel.Text = value
Obtiene o establece el Texto de la etiqueta
public string TextFormatting { get; set; }
value = annotationLabel.TextFormatting
annotationLabel.TextFormatting = value
Consigue o establece el TextFormatting para usar en la etiqueta, cuando la propiedad Text está destinada a un valor de datos. Esto funciona de manera similar a la propiedad AxisBase@TextFormatting
Métodos
protected T GetAndAssertTemplateChild<T>(string childName)
result = annotationLabel.GetAndAssertTemplateChild(childName)
Consigue el TemplateChild por el nombre especificado y los moldes para escribir , afirmando que el resultado no es null
- childName
- Nombre de la parte plantilla.
Devuelve: La instancia de la parte de la plantilla
public override void OnApplyTemplate()
annotationLabel.OnApplyTemplate()
Cuando se sobrescribe en una clase derivada, se invoca cuando el código de aplicación o los procesos internos (como un pase de diseño de reconstrucción) llame a ApplyTemplate. En términos más simples, esto significa que el método se llama justo antes de que un elemento UI se muestre en una aplicación. Para más información, consulte Observaciones.
Campos
public static readonly DependencyProperty AxisLabelStyleProperty
value = AnnotationLabel.AxisLabelStyleProperty
Define el AxisLabel@DependnecyProperty@
public static readonly DependencyProperty CanEditTextProperty
value = AnnotationLabel.CanEditTextProperty
Define el CanEditText@DependnecyProperty@
public static readonly DependencyProperty CornerRadiusProperty
value = AnnotationLabel.CornerRadiusProperty
Define el CornerRadius@DependnecyProperty@
public static readonly DependencyProperty LabelPlacementProperty
value = AnnotationLabel.LabelPlacementProperty
Define el LabelPlacement@DependnecyProperty@
public static readonly DependencyProperty LabelStyleProperty
value = AnnotationLabel.LabelStyleProperty
Define el LabelStyle@DependnecyProperty@
public static readonly DependencyProperty RotationAngleProperty
value = AnnotationLabel.RotationAngleProperty
Define el RotationAngle@DependnecyProperty@
public static readonly DependencyProperty TextFormattingProperty
value = AnnotationLabel.TextFormattingProperty
Define el TextFormatting@DependnecyProperty@
public static readonly DependencyProperty TextProperty
value = AnnotationLabel.TextProperty
Define el texto DependnecyProperty