This documentation is archived and is not being maintained.

BulletDecorator Class

Represents a layout control that aligns a bullet and another visual object.

Namespace:  System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public ref class BulletDecorator : public Decorator

Content Model: BulletDecorator is a Decorator element and has two content properties: Bullet and Child. The Bullet property defines the UIElement to use as a bullet. The Child property defines a UIElement that visually aligns with the bullet.

A Bullet always aligns with the first line of text when the Child object is a TextBlock. If the Child object is not a TextBlock, the Bullet aligns to the center of the Child object. For more information about layout of a BulletDecorator, see How to: Create a BulletDecorator.

The following illustration shows examples of BulletDecorator controls.

3 BulletDecorators: CheckBox, RadioButton, TextBox

The following examples show how to define a BulletDecorator control.

No code example is currently available or this language may not be supported.
<BulletDecorator  Grid.Row="1" Grid.Column="0" Margin="0,5,0,0"
                  VerticalAlignment="Center" Background="Yellow">
    <Image Source="images\apple.jpg"/>
    Foreground ="Purple">
    A Simple BulletDecorator


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0