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

Gets or sets the bullet corner radius. This is a dependency property.

public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius:

The bullet corner radius. The default value is 0.

Methods

MeasureOverride(Size)

Measures the child element of the CheckChrome to prepare for arranging it during the arrange 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 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 border.

Fields

CornerRadiusProperty

Identifies the CornerRadius dependency property. This field is read-only.

public static readonly DependencyProperty CornerRadiusProperty

Inherited Members