|
| CustomAdorner (T adornedElement, Brush? fill, Pen? stroke, DrawMethod drawMethod) |
|
new delegate void | DrawMethod (CustomAdorner< T > adorner, DrawingContext drawingContext) |
| Represents a method that uses the provided drawingContext to draw the specified adorner . More...
|
|
| CustomAdorner (UIElement adornedElement, Brush? fill, Pen? stroke, DrawMethod drawMethod) |
| Creates a new CustomAdorner instance with the specified adornedElement , fill , stroke , and drawMethod . More...
|
|
delegate void | DrawMethod (CustomAdorner adorner, DrawingContext drawingContext) |
| Represents a method that uses the provided drawingContext to draw the specified adorner . More...
|
|
|
static void | DrawRectangleAdorner (CustomAdorner< T > adorner, DrawingContext drawingContext) |
|
static CustomAdorner< T > | Show (T uiElement, Brush? fill, Pen? stroke, DrawMethod? drawMethod=null) |
|
static CustomAdorner< T > | Show (T uiElement, Brush stroke, double strokeThickness, DrawMethod? drawMethod=null) |
|
static CustomAdorner< T > | Show (T uiElement, Color strokeColor, double strokeThickness, DrawMethod? drawMethod=null) |
|
static void | DrawRectangleAdorner (CustomAdorner adorner, DrawingContext drawingContext) |
| Draws a rectangle using the AdornedElement's RenderSize. More...
|
|
static CustomAdorner | Show (UIElement uiElement, Brush? fill, Pen? stroke, DrawMethod? drawMethod=null) |
|
static CustomAdorner | Show (UIElement uiElement, Brush stroke, double strokeThickness, DrawMethod? drawMethod=null) |
|
static CustomAdorner | Show (UIElement uiElement, Color strokeColor, double strokeThickness, DrawMethod? drawMethod=null) |
|
|
override void | OnRender (DrawingContext drawingContext) |
|
override void | OnRender (DrawingContext drawingContext) |
|
◆ CustomAdorner()
Creates a new CustomAdorner instance with the specified adornedElement , fill , stroke , and drawMethod .
- Parameters
-
adornedElement | |
fill | The brush to use for filling the adornment. |
stroke | The pen to use for the border of the adornment. |
drawMethod | The DrawMethod method to use for drawing the adorner. |
◆ DrawMethod() [1/2]
Represents a method that uses the provided drawingContext to draw the specified adorner .
- Parameters
-
adorner | The CustomAdorner instance to draw. |
drawingContext | The DrawingContext object to use for drawing the adorner . |
◆ DrawMethod() [2/2]
Represents a method that uses the provided drawingContext to draw the specified adorner .
- Parameters
-
adorner | The CustomAdorner<T> instance to draw. |
drawingContext | The DrawingContext object to use for drawing the adorner . |
◆ DrawRectangleAdorner()
Draws a rectangle using the AdornedElement's RenderSize.
- Parameters
-
◆ AdornedElement
Gets the T instance that this CustomAdorner<T> is bound to.
◆ Draw
Gets or sets the DrawMethod method to use for drawing the adornment.
◆ Fill
Gets or sets the Brush to use for filling the adornment shape.
◆ Stroke
Gets or sets the Pen to use for the adornment shape's border.
The documentation for this class was generated from the following file: