BoxAnnotation
StockSharp.Xaml.Charting.Visuals.Annotations
Defines a rectangle or box annotation, which may be placed on the chart at specific X1,Y1,X2,Y2 coordinates
Inherits: AnnotationBase
Constructors
BoxAnnotation
public BoxAnnotation()
boxAnnotation = BoxAnnotation()
Initializes a new instance of the BoxAnnotation class.
Properties
CornerRadius
public CornerRadius CornerRadius { get; set; }
value = boxAnnotation.CornerRadius
boxAnnotation.CornerRadius = value
Gets or sets the CornerRadius of the box
Methods
GetSelectedCursor
protected override Cursor GetSelectedCursor()
result = boxAnnotation.GetSelectedCursor()
Gets the Cursor to use for the annotation when selected
IsPointWithinBounds
public override bool IsPointWithinBounds(Point point)
result = boxAnnotation.IsPointWithinBounds(point)
Returns true if the Point is within the bounds of the current IHitTestable element
- point
- The point to test
Returns: true if the Point is within the bounds
OnApplyTemplate
public override void OnApplyTemplate()
boxAnnotation.OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Fields
CornerRadiusProperty
public static readonly DependencyProperty CornerRadiusProperty
value = BoxAnnotation.CornerRadiusProperty
Defines the CornerRadius DependencyProperty