AnnotationLabel
Defines an AnnotationLabel which may be used in HorizontalLineAnnotation and VerticalLineAnnotation instances
继承自: Control
构造函数
AnnotationLabel()
Initializes a new instance of the AnnotationLabel class.
属性
AxisLabelStyle : Style
Gets or sets a Style to apply to the Axis Label
CanEditText : bool
Gets or sets whether the text in the label is editable
CornerRadius : CornerRadius
Gets or sets the CornerRadius of the Label element
IsAxisLabel : bool
Returns True if LabelPlacement == LabelPlacement.Axis or if ParentAnnotation.ResolveAutoPlacement() == LabelPlacement.Axis in case when LabelPlacement == LabelPlacement.Auto
LabelPlacement : LabelPlacement
Gets or sets the LabelPlacement
LabelStyle : Style
Gets or sets a Style to apply to the label
ParentAnnotation : LineAnnotationWithLabelsBase
Gets or sets the parent LineAnnotationWithLabelsBase that this label is attached to
RotationAngle : double
Gets or sets the angle, in degrees, of clockwise rotation
TextFormatting : string
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
方法
GetAndAssertTemplateChild``1(string)
Gets the TemplateChild by the specified name and casts to type , asserting that the result is not null
- childName
- Name of the templated part.
返回值: The template part instance
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.
字段
AxisLabelStyleProperty : DependencyProperty
Defines the AxisLabel DependnecyProperty
CanEditTextProperty : DependencyProperty
Defines the CanEditText DependnecyProperty
CornerRadiusProperty : DependencyProperty
Defines the CornerRadius DependnecyProperty
LabelPlacementProperty : DependencyProperty
Defines the LabelPlacement DependnecyProperty
LabelStyleProperty : DependencyProperty
Defines the LabelStyle DependnecyProperty
RotationAngleProperty : DependencyProperty
Defines the RotationAngle DependnecyProperty
TextFormattingProperty : DependencyProperty
Defines the TextFormatting DependnecyProperty
TextProperty : DependencyProperty
Defines the Text DependnecyProperty