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

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

public Brush? Background { get; set; }

Property Value

Brush:

The default value is null.

BackgroundChecked

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

public Brush? BackgroundChecked { get; set; }

Property Value

Brush:

The default value is null.

BackgroundCheckedHover

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

public Brush? BackgroundCheckedHover { get; set; }

Property Value

Brush:

The default value is null.

BackgroundCheckedPressed

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

public Brush? BackgroundCheckedPressed { get; set; }

Property Value

Brush:

The default value is null.

BackgroundDisabled

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

public Brush? BackgroundDisabled { get; set; }

Property Value

Brush:

The default value is null.

BackgroundHover

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

public Brush? BackgroundHover { get; set; }

Property Value

Brush:

The default value is null.

BackgroundPressed

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

public Brush? BackgroundPressed { get; set; }

Property Value

Brush:

The default value is null.

BorderBrush

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

public Brush? BorderBrush { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushChecked

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

public Brush? BorderBrushChecked { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushCheckedHover

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

public Brush? BorderBrushCheckedHover { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushCheckedPressed

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

public Brush? BorderBrushCheckedPressed { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushDisabled

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

public Brush? BorderBrushDisabled { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushHover

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

public Brush? BorderBrushHover { get; set; }

Property Value

Brush:

The default value is null.

BorderBrushPressed

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

public Brush? BorderBrushPressed { get; set; }

Property Value

Brush:

The default value is null.

BorderStyle

The style used when rendering the border of the BulletChrome.

public BulletChromeBorderStyle BorderStyle { get; set; }

Property Value

BulletChromeBorderStyle:

The default value is Default.

BorderWidth

The BulletChrome border width.

public double BorderWidth { get; set; }

Property Value

double:

The default value is 1.0

GlyphBackgroundChecked

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

public Brush? GlyphBackgroundChecked { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundCheckedDisabled

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

public Brush? GlyphBackgroundCheckedDisabled { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundCheckedHover

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

public Brush? GlyphBackgroundCheckedHover { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundCheckedPressed

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

public Brush? GlyphBackgroundCheckedPressed { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundIndeterminate

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

public Brush? GlyphBackgroundIndeterminate { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundIndeterminateDisabled

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

public Brush? GlyphBackgroundIndeterminateDisabled { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundIndeterminateHover

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

public Brush? GlyphBackgroundIndeterminateHover { get; set; }

Property Value

Brush:

The default value is null.

GlyphBackgroundIndeterminatePressed

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

public Brush? GlyphBackgroundIndeterminatePressed { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushChecked

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

public Brush? GlyphBorderBrushChecked { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushCheckedDisabled

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

public Brush? GlyphBorderBrushCheckedDisabled { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushIndeterminate

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

public Brush? GlyphBorderBrushIndeterminate { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushIndeterminateDisabled

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

public Brush? GlyphBorderBrushIndeterminateDisabled { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushIndeterminateHover

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

public Brush? GlyphBorderBrushIndeterminateHover { get; set; }

Property Value

Brush:

The default value is null.

GlyphBorderBrushIndeterminatePressed

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

public Brush? GlyphBorderBrushIndeterminatePressed { get; set; }

Property Value

Brush:

The default value is null.

InnerBackground

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

public Brush? InnerBackground { get; set; }

Property Value

Brush:

The default value is null.

InnerBackgroundDisabled

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

public Brush? InnerBackgroundDisabled { get; set; }

Property Value

Brush:

The default value is null.

InnerBackgroundHover

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

public Brush? InnerBackgroundHover { get; set; }

Property Value

Brush:

The default value is null.

InnerBackgroundPressed

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

public Brush? InnerBackgroundPressed { get; set; }

Property Value

Brush:

The default value is null.

InnerBorderBrush

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

public Brush? InnerBorderBrush { get; set; }

Property Value

Brush:

The default value is null.

InnerBorderBrushDisabled

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

public Brush? InnerBorderBrushDisabled { get; set; }

Property Value

Brush:

The default value is null.

InnerBorderBrushHover

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

public Brush? InnerBorderBrushHover { get; set; }

Property Value

Brush:

The default value is null.

InnerBorderBrushPressed

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

public Brush? InnerBorderBrushPressed { get; set; }

Property Value

Brush:

The default value is null.

IsChecked

A value indicating whether the chrome is checked.

public bool? IsChecked { get; set; }

Property Value

bool?:

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

LastState

The previous state of the BulletChrome.

public BulletChromeState LastState { get; }

Property Value

BulletChromeState:

The default value is Normal.

RelativeSize

The size of the BulletChrome.

public BulletChromeRelativeSize RelativeSize { get; set; }

Property Value

BulletChromeRelativeSize:

The default value is Small.

State

The current state of the chrome.

public BulletChromeState State { get; set; }

Property Value

BulletChromeState:

The default value is Normal.

UseAlternateGeometry

A value indicating whether the chrome should use an alternate geometry.

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)

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

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

Defines the BackgroundCheckedHover property.

public static readonly DependencyProperty BackgroundCheckedHoverProperty

BackgroundCheckedPressedProperty

Defines the BackgroundCheckedPressed property.

public static readonly DependencyProperty BackgroundCheckedPressedProperty

BackgroundCheckedProperty

Defines the BackgroundChecked property.

public static readonly DependencyProperty BackgroundCheckedProperty

BackgroundDisabledProperty

Defines the BackgroundDisabled property.

public static readonly DependencyProperty BackgroundDisabledProperty

BackgroundHoverProperty

Defines the BackgroundHover property.

public static readonly DependencyProperty BackgroundHoverProperty

BackgroundPressedProperty

Defines the BackgroundPressed property.

public static readonly DependencyProperty BackgroundPressedProperty

BackgroundProperty

Defines the Background property.

public static readonly DependencyProperty BackgroundProperty

BorderBrushCheckedHoverProperty

Defines the BorderBrushCheckedHover property.

public static readonly DependencyProperty BorderBrushCheckedHoverProperty

BorderBrushCheckedPressedProperty

Defines the BorderBrushCheckedPressed property.

public static readonly DependencyProperty BorderBrushCheckedPressedProperty

BorderBrushCheckedProperty

Defines the BorderBrushChecked property.

public static readonly DependencyProperty BorderBrushCheckedProperty

BorderBrushDisabledProperty

Defines the BorderBrushDisabled property.

public static readonly DependencyProperty BorderBrushDisabledProperty

BorderBrushHoverProperty

Defines the BorderBrushHover property.

public static readonly DependencyProperty BorderBrushHoverProperty

BorderBrushPressedProperty

Defines the BorderBrushPressed property.

public static readonly DependencyProperty BorderBrushPressedProperty

BorderBrushProperty

Defines the BorderBrush property.

public static readonly DependencyProperty BorderBrushProperty

BorderStyleProperty

Defines the BorderStyle property.

public static readonly DependencyProperty BorderStyleProperty

BorderWidthProperty

Defines the BorderWidth property.

public static readonly DependencyProperty BorderWidthProperty

GlyphBackgroundCheckedDisabledProperty

Defines the GlyphBackgroundCheckedDisabled property.

public static readonly DependencyProperty GlyphBackgroundCheckedDisabledProperty

GlyphBackgroundCheckedHoverProperty

Defines the GlyphBackgroundCheckedHover property.

public static readonly DependencyProperty GlyphBackgroundCheckedHoverProperty

GlyphBackgroundCheckedPressedProperty

Defines the GlyphBackgroundCheckedPressed property.

public static readonly DependencyProperty GlyphBackgroundCheckedPressedProperty

GlyphBackgroundCheckedProperty

Defines the GlyphBackgroundChecked property.

public static readonly DependencyProperty GlyphBackgroundCheckedProperty

GlyphBackgroundIndeterminateDisabledProperty

public static readonly DependencyProperty GlyphBackgroundIndeterminateDisabledProperty

GlyphBackgroundIndeterminateHoverProperty

Defines the GlyphBackgroundIndeterminateHover property.

public static readonly DependencyProperty GlyphBackgroundIndeterminateHoverProperty

GlyphBackgroundIndeterminatePressedProperty

public static readonly DependencyProperty GlyphBackgroundIndeterminatePressedProperty

GlyphBackgroundIndeterminateProperty

Defines the GlyphBackgroundIndeterminate property.

public static readonly DependencyProperty GlyphBackgroundIndeterminateProperty

GlyphBorderBrushCheckedDisabledProperty

Defines the GlyphBorderBrushCheckedDisabled property.

public static readonly DependencyProperty GlyphBorderBrushCheckedDisabledProperty

GlyphBorderBrushCheckedProperty

Defines the GlyphBorderBrushChecked property.

public static readonly DependencyProperty GlyphBorderBrushCheckedProperty

GlyphBorderBrushIndeterminateDisabledProperty

public static readonly DependencyProperty GlyphBorderBrushIndeterminateDisabledProperty

GlyphBorderBrushIndeterminateHoverProperty

Defines the GlyphBorderBrushIndeterminateHover property.

public static readonly DependencyProperty GlyphBorderBrushIndeterminateHoverProperty

GlyphBorderBrushIndeterminatePressedProperty

public static readonly DependencyProperty GlyphBorderBrushIndeterminatePressedProperty

GlyphBorderBrushIndeterminateProperty

Defines the GlyphBorderBrushIndeterminate property.

public static readonly DependencyProperty GlyphBorderBrushIndeterminateProperty

InnerBackgroundDisabledProperty

Defines the InnerBackgroundDisabled property.

public static readonly DependencyProperty InnerBackgroundDisabledProperty

InnerBackgroundHoverProperty

Defines the InnerBackgroundHover property.

public static readonly DependencyProperty InnerBackgroundHoverProperty

InnerBackgroundPressedProperty

Defines the InnerBackgroundPressed property.

public static readonly DependencyProperty InnerBackgroundPressedProperty

InnerBackgroundProperty

Defines the InnerBackground property.

public static readonly DependencyProperty InnerBackgroundProperty

InnerBorderBrushDisabledProperty

Defines the InnerBorderBrushDisabled property.

public static readonly DependencyProperty InnerBorderBrushDisabledProperty

InnerBorderBrushHoverProperty

Defines the InnerBorderBrushHover property.

public static readonly DependencyProperty InnerBorderBrushHoverProperty

InnerBorderBrushPressedProperty

Defines the InnerBorderBrushPressed property.

public static readonly DependencyProperty InnerBorderBrushPressedProperty

InnerBorderBrushProperty

Defines the InnerBorderBrush property.

public static readonly DependencyProperty InnerBorderBrushProperty

IsCheckedProperty

Defines the IsChecked property.

public static readonly DependencyProperty IsCheckedProperty

LastStateProperty

Defines the LastState property.

public static readonly DependencyProperty LastStateProperty

RelativeSizeProperty

Defines the RelativeSize property.

public static readonly DependencyProperty RelativeSizeProperty

StateProperty

Defines the State property.

public static readonly DependencyProperty StateProperty

UseAlternateGeometryProperty

Defines the UseAlternateGeometry property.

public static readonly DependencyProperty UseAlternateGeometryProperty

Inherited Members

Extension Methods