In This Article

CheckChrome Class

Represents a chrome for use with check boxes.

public sealed class CheckChrome : BulletChrome
Inheritance:
object Visual UIElement FrameworkElement Decorator ChromeBase BulletChrome object

Constructors

CheckChrome()

Initializes an instance of the class.

public CheckChrome()

Properties

CornerRadius

The bullet corner radius.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

The default value is 0.

Methods

MeasureOverride(Size)

Measures the child element of a Decorator to prepare for arranging it during the ArrangeOverride(Size) pass.

protected override Size MeasureOverride(Size constraint)
Parameter Type Description
constraint Size

An upper limit System.Windows.Size that should not be exceeded.

Returns

Size:

The target System.Windows.Size of the element.

RenderBackground(DrawingContext, Rect)

Draws the background of the chrome.

protected override void RenderBackground(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the border.

RenderBorder(DrawingContext, Rect)

Draws the border of the chrome.

protected override void RenderBorder(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the border.

RenderClassicSunkenBorder(DrawingContext, Rect)

Draws the border of the chrome.

protected override void RenderClassicSunkenBorder(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the border.

RenderGlyph(DrawingContext, Rect)

Draws the glyph of the chrome.

protected override void RenderGlyph(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the glyph.

RenderInnerBackground(DrawingContext, Rect)

Draws the inner background of the chrome.

protected override void RenderInnerBackground(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the inner background.

RenderInnerBorder(DrawingContext, Rect)

Draws the inner border of the chrome.

protected override void RenderInnerBorder(DrawingContext drawingContext, Rect bounds)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

bounds Rect

The bounds to render the inner border.

Fields

CornerRadiusProperty

Defines the CornerRadius property.

public static readonly DependencyProperty CornerRadiusProperty

Inherited Members

Extension Methods