Volume Control
Application-specific hotkeys for Windows
VolumeControl.WPF.CustomMessageBox.CustomAdorner< T > Class Template Reference
Inheritance diagram for VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >:
Collaboration diagram for VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >:

Public Member Functions

 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 Public Member Functions

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)
 

Protected Member Functions

override void OnRender (DrawingContext drawingContext)
 
override void OnRender (DrawingContext drawingContext)
 

Properties

new T AdornedElement [get]
 Gets the T instance that this CustomAdorner<T> is bound to. More...
 
new DrawMethod Draw [get, set]
 
virtual ? Brush Fill [get, set]
 Gets or sets the Brush to use for filling the adornment shape. More...
 
virtual ? Pen Stroke [get, set]
 Gets or sets the Pen to use for the adornment shape's border. More...
 
virtual DrawMethod Draw [get, set]
 Gets or sets the DrawMethod method to use for drawing the adornment. More...
 

Detailed Description

Type Constraints
T :UIElement 

Constructor & Destructor Documentation

◆ CustomAdorner()

VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.CustomAdorner ( UIElement  adornedElement,
Brush?  fill,
Pen?  stroke,
DrawMethod  drawMethod 
)

Creates a new CustomAdorner instance with the specified adornedElement , fill , stroke , and drawMethod .

Parameters
adornedElement
fillThe brush to use for filling the adornment.
strokeThe pen to use for the border of the adornment.
drawMethodThe DrawMethod method to use for drawing the adorner.

Member Function Documentation

◆ DrawMethod() [1/2]

delegate void VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.DrawMethod ( CustomAdorner< T >  adorner,
DrawingContext  drawingContext 
)

Represents a method that uses the provided drawingContext to draw the specified adorner .

Parameters
adornerThe CustomAdorner instance to draw.
drawingContextThe DrawingContext object to use for drawing the adorner .

◆ DrawMethod() [2/2]

new delegate void VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.DrawMethod ( CustomAdorner< T >  adorner,
DrawingContext  drawingContext 
)

Represents a method that uses the provided drawingContext to draw the specified adorner .

Parameters
adornerThe CustomAdorner<T> instance to draw.
drawingContextThe DrawingContext object to use for drawing the adorner .

◆ DrawRectangleAdorner()

static void VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.DrawRectangleAdorner ( CustomAdorner< T >  adorner,
DrawingContext  drawingContext 
)
static

Draws a rectangle using the AdornedElement's RenderSize.

Parameters
adorner
drawingContext

Property Documentation

◆ AdornedElement

new T VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.AdornedElement
get

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

virtual ? Brush VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.Fill
getset

Gets or sets the Brush to use for filling the adornment shape.

◆ Stroke

virtual ? Pen VolumeControl.WPF.CustomMessageBox.CustomAdorner< T >.Stroke
getset

Gets or sets the Pen to use for the adornment shape's border.


The documentation for this class was generated from the following file: