Bullet Decorator in WPF XAML


The BulletDecorator control is used to display a single item and bullet in a bulleted list in WPF. There are many ways to represent the bulleted list in WPF. Following examples are defines different kind of representations.

The BulletDecorator control is used to display a single item and bullet in a bulleted list in WPF. There are many ways to represent the bulleted list in WPF.

Following examples are defines different kind of representations.

<BulletDecorator Margin=”249,109.5,282.167,0″ Height=”23.5″ VerticalAlignment=”Top”>

<BulletDecorator.Bullet>

<Image Source=”ihc_account_24.png” Width=”16″ Height=”16″

VerticalAlignment=”Center”/>

</BulletDecorator.Bullet>

<TextBlock Text=”Image Bullet” Margin=”3.5,0.75,-3.5,3.75″/>

</BulletDecorator>

<BulletDecorator Margin=”249,137,282.167,0″ Height=”23.5″ VerticalAlignment=”Top”>

<BulletDecorator.Bullet>

<Rectangle Fill=”Green” Width=”16″ Height=”16″/>

</BulletDecorator.Bullet>

<TextBlock Text=”Square Bullet” Height=”19″ VerticalAlignment=”Top”

Margin=”3.25,0,-3.25,0″/>

</BulletDecorator>

<BulletDecorator Margin=”249,167,291.167,0″ Height=”23.5″ VerticalAlignment=”Top”>

<BulletDecorator.Bullet>

<Ellipse Fill=”Green” Width=”16″ Height=”16″/>

</BulletDecorator.Bullet>

<TextBlock Text=”Circle Bullet” Height=”19″ VerticalAlignment=”Top”

Margin=”3.25,0,-3.25,0″/>

</BulletDecorator>

<BulletDecorator Margin=”249,197,245.167,0″ Height=”23.5″ VerticalAlignment=”Top”>

<BulletDecorator.Bullet>

<RadioButton Width=”16″ Height=”16″ Margin=”2.5,0,-2.5,0″/>

</BulletDecorator.Bullet>

<TextBlock Text=”Radio Button Bullet” Margin=”4.5,-3.25,-4.5,7.75″/>

</BulletDecorator>

See the below representation

Bullet Decorator Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s