In This Article

BulletChrome Class

Represents a chrome for use with bullets, such as check boxes and radio buttons.

public abstract class BulletChrome : ChromeBase
Inheritance:
object Visual UIElement FrameworkElement Decorator ChromeBase object
Derived:
CheckChrome RadioChrome

Constructors

BulletChrome()

Initializes an instance of the class.

protected BulletChrome()

Properties

Background

Gets or sets the brush used to render the background of the BulletChrome is in the normal state. This is a dependency property.

public Brush Background { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the normal state. The default value is null.

BackgroundChecked

Gets or sets the brush used to render the background of the BulletChrome is in the checked state. This is a dependency property.

public Brush BackgroundChecked { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the checked state. The default value is null.

BackgroundCheckedHover

Gets or sets the brush used to render the background of the BulletChrome is in the checked/hover state. This is a dependency property.

public Brush BackgroundCheckedHover { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the checked/hover state. The default value is null.

BackgroundCheckedPressed

Gets or sets the brush used to render the background of the BulletChrome is in the checked/pressed state. This is a dependency property.

public Brush BackgroundCheckedPressed { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the checked/pressed state. The default value is null.

BackgroundDisabled

Gets or sets the brush used to render the background of the BulletChrome is in the disabled state. This is a dependency property.

public Brush BackgroundDisabled { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the disabled state. The default value is null.

BackgroundHover

Gets or sets the brush used to render the background of the BulletChrome is in the hover state. This is a dependency property.

public Brush BackgroundHover { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the hover state. The default value is null.

BackgroundPressed

Gets or sets the brush used to render the background of the BulletChrome is in the pressed state. This is a dependency property.

public Brush BackgroundPressed { get; set; }

Property Value

Brush:

The brush used to render the background of the BulletChrome is in the pressed state. The default value is null.

BorderBrush

Gets or sets the brush used to render the border of the BulletChrome is in the normal state. This is a dependency property.

public Brush BorderBrush { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the normal state. The default value is null.

BorderBrushChecked

Gets or sets the brush used to render the border of the BulletChrome is in the checked state. This is a dependency property.

public Brush BorderBrushChecked { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the checked state. The default value is null.

BorderBrushCheckedHover

Gets or sets the brush used to render the border of the BulletChrome is in the checked/hover state. This is a dependency property.

public Brush BorderBrushCheckedHover { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the checked/hover state. The default value is null.

BorderBrushCheckedPressed

Gets or sets the brush used to render the border of the BulletChrome is in the checked/pressed state. This is a dependency property.

public Brush BorderBrushCheckedPressed { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the checked/pressed state. The default value is null.

BorderBrushDisabled

Gets or sets the brush used to render the border of the BulletChrome is in the disabled state. This is a dependency property.

public Brush BorderBrushDisabled { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the disabled state. The default value is null.

BorderBrushHover

Gets or sets the brush used to render the border of the BulletChrome is in the hover state. This is a dependency property.

public Brush BorderBrushHover { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the hover state. The default value is null.

BorderBrushPressed

Gets or sets the brush used to render the border of the BulletChrome is in the pressed state. This is a dependency property.

public Brush BorderBrushPressed { get; set; }

Property Value

Brush:

The brush used to render the border of the BulletChrome is in the pressed state. The default value is null.

BorderStyle

Gets or sets the style used when rendering the border of the BulletChrome. This is a dependency property.

public BulletChromeBorderStyle BorderStyle { get; set; }

Property Value

BulletChromeBorderStyle:

The style used when rendering the border of the BulletChrome. The default value is BulletChromeBorderStyle.Default

BorderWidth

Gets or sets the BulletChrome border width. This is a dependency property.

public double BorderWidth { get; set; }

Property Value

double:

The BulletChrome border width. The default value is 1.0

GlyphBackgroundChecked

Gets or sets the brush used to render the glyph background of the BulletChrome is in the normal state. This is a dependency property.

public Brush GlyphBackgroundChecked { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the normal state. The default value is null.

GlyphBackgroundCheckedDisabled

Gets or sets the brush used to render the glyph background of the BulletChrome is in the disabled state. This is a dependency property.

public Brush GlyphBackgroundCheckedDisabled { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the disabled state. The default value is null.

GlyphBackgroundCheckedHover

Gets or sets the brush used to render the glyph background of the BulletChrome is in the hover state. This is a dependency property.

public Brush GlyphBackgroundCheckedHover { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the hover state. The default value is null.

GlyphBackgroundCheckedPressed

Gets or sets the brush used to render the glyph background of the BulletChrome is in the pressed state. This is a dependency property.

public Brush GlyphBackgroundCheckedPressed { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the pressed state. The default value is null.

GlyphBackgroundIndeterminate

Gets or sets the brush used to render the glyph background of the BulletChrome is in the normal state. This is a dependency property.

public Brush GlyphBackgroundIndeterminate { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the normal state. The default value is null.

GlyphBackgroundIndeterminateDisabled

Gets or sets the brush used to render the glyph background of the BulletChrome is in the disabled state. This is a dependency property.

public Brush GlyphBackgroundIndeterminateDisabled { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the disabled state. The default value is null.

GlyphBackgroundIndeterminateHover

Gets or sets the brush used to render the glyph background of the BulletChrome is in the hover state. This is a dependency property.

public Brush GlyphBackgroundIndeterminateHover { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the hover state. The default value is null.

GlyphBackgroundIndeterminatePressed

Gets or sets the brush used to render the glyph background of the BulletChrome is in the pressed state. This is a dependency property.

public Brush GlyphBackgroundIndeterminatePressed { get; set; }

Property Value

Brush:

The brush used to render the glyph background of the BulletChrome is in the pressed state. The default value is null.

GlyphBorderBrushChecked

Gets or sets the brush used to render the glyph border of the BulletChrome is in the normal state. This is a dependency property.

public Brush GlyphBorderBrushChecked { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the normal state. The default value is null.

GlyphBorderBrushCheckedDisabled

Gets or sets the brush used to render the glyph border of the BulletChrome is in the disabled state. This is a dependency property.

public Brush GlyphBorderBrushCheckedDisabled { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the disabled state. The default value is null.

GlyphBorderBrushIndeterminate

Gets or sets the brush used to render the glyph border of the BulletChrome is in the normal state. This is a dependency property.

public Brush GlyphBorderBrushIndeterminate { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the normal state. The default value is null.

GlyphBorderBrushIndeterminateDisabled

Gets or sets the brush used to render the glyph border of the BulletChrome is in the disabled state. This is a dependency property.

public Brush GlyphBorderBrushIndeterminateDisabled { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the disabled state. The default value is null.

GlyphBorderBrushIndeterminateHover

Gets or sets the brush used to render the glyph border of the BulletChrome is in the hover state. This is a dependency property.

public Brush GlyphBorderBrushIndeterminateHover { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the hover state. The default value is null.

GlyphBorderBrushIndeterminatePressed

Gets or sets the brush used to render the glyph border of the BulletChrome is in the pressed state. This is a dependency property.

public Brush GlyphBorderBrushIndeterminatePressed { get; set; }

Property Value

Brush:

The brush used to render the glyph border of the BulletChrome is in the pressed state. The default value is null.

InnerBackground

Gets or sets the brush used to render the inner background of the BulletChrome is in the normal state. This is a dependency property.

public Brush InnerBackground { get; set; }

Property Value

Brush:

The brush used to render the inner background of the BulletChrome is in the normal state. The default value is null.

InnerBackgroundDisabled

Gets or sets the brush used to render the inner background of the BulletChrome is in the disabled state. This is a dependency property.

public Brush InnerBackgroundDisabled { get; set; }

Property Value

Brush:

The brush used to render the inner background of the BulletChrome is in the disabled state. The default value is null.

InnerBackgroundHover

Gets or sets the brush used to render the inner background of the BulletChrome is in the hover state. This is a dependency property.

public Brush InnerBackgroundHover { get; set; }

Property Value

Brush:

The brush used to render the inner background of the BulletChrome is in the hover state. The default value is null.

InnerBackgroundPressed

Gets or sets the brush used to render the inner background of the BulletChrome is in the pressed state. This is a dependency property.

public Brush InnerBackgroundPressed { get; set; }

Property Value

Brush:

The brush used to render the inner background of the BulletChrome is in the pressed state. The default value is null.

InnerBorderBrush

Gets or sets the brush used to render the inner border of the BulletChrome is in the normal state. This is a dependency property.

public Brush InnerBorderBrush { get; set; }

Property Value

Brush:

The brush used to render the inner border of the BulletChrome is in the normal state. The default value is null.

InnerBorderBrushDisabled

Gets or sets the brush used to render the inner border of the BulletChrome is in the disabled state. This is a dependency property.

public Brush InnerBorderBrushDisabled { get; set; }

Property Value

Brush:

The brush used to render the inner border of the BulletChrome is in the disabled state. The default value is null.

InnerBorderBrushHover

Gets or sets the brush used to render the inner border of the BulletChrome is in the hover state. This is a dependency property.

public Brush InnerBorderBrushHover { get; set; }

Property Value

Brush:

The brush used to render the inner border of the BulletChrome is in the hover state. The default value is null.

InnerBorderBrushPressed

Gets or sets the brush used to render the inner border of the BulletChrome is in the pressed state. This is a dependency property.

public Brush InnerBorderBrushPressed { get; set; }

Property Value

Brush:

The brush used to render the inner border of the BulletChrome is in the pressed state. The default value is null.

IsChecked

Gets or sets a value indicating whether the chrome is checked. This is a dependency property.

public bool? IsChecked { get; set; }

Property Value

bool?:

true if the chrome is check; false if the chrome is not checked; otherwise null to indicate an indeterminate value. The default value is null.

LastState

Gets the previous state of the BulletChrome. This is a dependency property.

public BulletChromeState LastState { get; }

Property Value

BulletChromeState:

The previous state of the BulletChrome. The default value is BulletChromeState.Normal.

RelativeSize

Gets or sets the size of the BulletChrome. This is a dependency property.

public BulletChromeRelativeSize RelativeSize { get; set; }

Property Value

BulletChromeRelativeSize:

The size of the BulletChrome. The default value is BulletChromeRelativeSize.Small

State

Gets or sets the current state of the chrome. This is a dependency property.

public BulletChromeState State { get; set; }

Property Value

BulletChromeState:

The current state of the chrome. The default value is BulletChromeState.Normal

UseAlternateGeometry

Gets or sets a value indicating whether the chrome should use an alternate geometry. This is a dependency property.

public bool UseAlternateGeometry { get; set; }

Property Value

bool:

true if the chrome should use an alternate geometry; otherwise, false. The default value is false.

Methods

OnRender(DrawingContext)

Renders the BulletChrome using the various settings.

protected override void OnRender(DrawingContext drawingContext)
Parameter Type Description
drawingContext DrawingContext

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

RenderBackground(DrawingContext, Rect)

Draws the background of the chrome.

protected abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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

BackgroundCheckedHoverProperty

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

public static readonly DependencyProperty BackgroundCheckedHoverProperty

BackgroundCheckedPressedProperty

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

public static readonly DependencyProperty BackgroundCheckedPressedProperty

BackgroundCheckedProperty

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

public static readonly DependencyProperty BackgroundCheckedProperty

BackgroundDisabledProperty

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

public static readonly DependencyProperty BackgroundDisabledProperty

BackgroundHoverProperty

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

public static readonly DependencyProperty BackgroundHoverProperty

BackgroundPressedProperty

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

public static readonly DependencyProperty BackgroundPressedProperty

BackgroundProperty

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

public static readonly DependencyProperty BackgroundProperty

BorderBrushCheckedHoverProperty

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

public static readonly DependencyProperty BorderBrushCheckedHoverProperty

BorderBrushCheckedPressedProperty

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

public static readonly DependencyProperty BorderBrushCheckedPressedProperty

BorderBrushCheckedProperty

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

public static readonly DependencyProperty BorderBrushCheckedProperty

BorderBrushDisabledProperty

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

public static readonly DependencyProperty BorderBrushDisabledProperty

BorderBrushHoverProperty

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

public static readonly DependencyProperty BorderBrushHoverProperty

BorderBrushPressedProperty

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

public static readonly DependencyProperty BorderBrushPressedProperty

BorderBrushProperty

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

public static readonly DependencyProperty BorderBrushProperty

BorderStyleProperty

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

public static readonly DependencyProperty BorderStyleProperty

BorderWidthProperty

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

public static readonly DependencyProperty BorderWidthProperty

GlyphBackgroundCheckedDisabledProperty

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

public static readonly DependencyProperty GlyphBackgroundCheckedDisabledProperty

GlyphBackgroundCheckedHoverProperty

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

public static readonly DependencyProperty GlyphBackgroundCheckedHoverProperty

GlyphBackgroundCheckedPressedProperty

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

public static readonly DependencyProperty GlyphBackgroundCheckedPressedProperty

GlyphBackgroundCheckedProperty

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

public static readonly DependencyProperty GlyphBackgroundCheckedProperty

GlyphBackgroundIndeterminateDisabledProperty

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

public static readonly DependencyProperty GlyphBackgroundIndeterminateDisabledProperty

GlyphBackgroundIndeterminateHoverProperty

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

public static readonly DependencyProperty GlyphBackgroundIndeterminateHoverProperty

GlyphBackgroundIndeterminatePressedProperty

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

public static readonly DependencyProperty GlyphBackgroundIndeterminatePressedProperty

GlyphBackgroundIndeterminateProperty

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

public static readonly DependencyProperty GlyphBackgroundIndeterminateProperty

GlyphBorderBrushCheckedDisabledProperty

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

public static readonly DependencyProperty GlyphBorderBrushCheckedDisabledProperty

GlyphBorderBrushCheckedProperty

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

public static readonly DependencyProperty GlyphBorderBrushCheckedProperty

GlyphBorderBrushIndeterminateDisabledProperty

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

public static readonly DependencyProperty GlyphBorderBrushIndeterminateDisabledProperty

GlyphBorderBrushIndeterminateHoverProperty

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

public static readonly DependencyProperty GlyphBorderBrushIndeterminateHoverProperty

GlyphBorderBrushIndeterminatePressedProperty

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

public static readonly DependencyProperty GlyphBorderBrushIndeterminatePressedProperty

GlyphBorderBrushIndeterminateProperty

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

public static readonly DependencyProperty GlyphBorderBrushIndeterminateProperty

InnerBackgroundDisabledProperty

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

public static readonly DependencyProperty InnerBackgroundDisabledProperty

InnerBackgroundHoverProperty

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

public static readonly DependencyProperty InnerBackgroundHoverProperty

InnerBackgroundPressedProperty

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

public static readonly DependencyProperty InnerBackgroundPressedProperty

InnerBackgroundProperty

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

public static readonly DependencyProperty InnerBackgroundProperty

InnerBorderBrushDisabledProperty

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

public static readonly DependencyProperty InnerBorderBrushDisabledProperty

InnerBorderBrushHoverProperty

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

public static readonly DependencyProperty InnerBorderBrushHoverProperty

InnerBorderBrushPressedProperty

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

public static readonly DependencyProperty InnerBorderBrushPressedProperty

InnerBorderBrushProperty

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

public static readonly DependencyProperty InnerBorderBrushProperty

IsCheckedProperty

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

public static readonly DependencyProperty IsCheckedProperty

LastStateProperty

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

public static readonly DependencyProperty LastStateProperty

RelativeSizeProperty

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

public static readonly DependencyProperty RelativeSizeProperty

StateProperty

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

public static readonly DependencyProperty StateProperty

UseAlternateGeometryProperty

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

public static readonly DependencyProperty UseAlternateGeometryProperty

Inherited Members