Class RectangleAdorner
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
An adorner showing a rectangle with a crosshair in the middle. This is shown when zooming a rectangle.
public sealed class RectangleAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
RectangleAdorner
- Implements
- Inherited Members
- Extension Methods
Constructors
RectangleAdorner(UIElement, Rect, Color, Color, double, double, double)
Initializes a new instance of the RectangleAdorner class.
public RectangleAdorner(UIElement adornedElement, Rect rectangle, Color color1, Color color2, double thickness1 = 1, double thickness2 = 1, double crossHairSize = 10)
Parameters
adornedElementUIElementThe adorned element.
rectangleRectThe rectangle.
color1ColorThe color1.
color2ColorThe color2.
thickness1doubleThe thickness1.
thickness2doubleThe thickness2.
crossHairSizedoubleSize of the cross hair.
Exceptions
RectangleAdorner(UIElement, Rect, Color, Color, double, double, double, DashStyle, Brush?)
Initializes a new instance of the RectangleAdorner class.
public RectangleAdorner(UIElement adornedElement, Rect rectangle, Color color1, Color color2, double thickness1, double thickness2, double crossHairSize, DashStyle dashStyle2, Brush? fillBrush = null)
Parameters
adornedElementUIElementThe adorned element.
rectangleRectThe rectangle.
color1ColorThe color1.
color2ColorThe color2.
thickness1doubleThe thickness1.
thickness2doubleThe thickness2.
crossHairSizedoubleSize of the cross hair.
dashStyle2DashStyleThe dash style2.
fillBrushBrushThe brush to color inside the rectangle.
Exceptions
Properties
Rectangle
Gets or sets Rectangle.
public Rect Rectangle { get; set; }
Property Value
Methods
OnRender(DrawingContext)
Called when rendering.
protected override void OnRender(DrawingContext dc)
Parameters
dcDrawingContextThe dc.