Class RectangleAdorner
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
An adorner showing a rectangle with a crosshair in the middle. This is shown when zooming a rectangle.
public class RectangleAdorner : Adorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
RectangleAdorner
- Implements
- Inherited Members
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.
RectangleAdorner(UIElement, Rect, Color, Color, double, double, double, DashStyle)
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)
Parameters
adornedElementUIElementThe adorned element.
rectangleRectThe rectangle.
color1ColorThe color1.
color2ColorThe color2.
thickness1doubleThe thickness1.
thickness2doubleThe thickness2.
crossHairSizedoubleSize of the cross hair.
dashStyle2DashStyleThe dash style2.
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.