<Window x:Class="WindowsApplication2.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WindowsApplication2" Height="392" Width="424">
<Grid>
<BulletDecorator Margin="55,55,100,100" Background="Cornsilk">
<BulletDecorator.Bullet>
<CheckBox/>
</BulletDecorator.Bullet>
<TextBlock
Width="300"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground = "Blue"
Margin="25,0,0,0">
CheckBox Bullet.
</TextBlock>
</BulletDecorator>
<BulletDecorator Margin="55,75,0,0">
<BulletDecorator.Bullet>
<TextBox Width="20"/>
</BulletDecorator.Bullet>
<TextBlock
Width="300"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground ="Blue"
Margin="25,0,0,0">
TextBox Bullet.
</TextBlock>
</BulletDecorator>
<BulletDecorator Margin="55,95,0,0">
<BulletDecorator.Bullet>
<RadioButton/>
</BulletDecorator.Bullet>
<TextBlock
Width="300"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground ="Blue"
Margin="25,0,0,0">
RadioButton Bullet
</TextBlock>
</BulletDecorator>
<BulletDecorator Margin="55,115,0,0">
<BulletDecorator.Bullet>
<Image Source="star.gif" Width="22" Height="22"/>
</BulletDecorator.Bullet>
<TextBlock
Width="300"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground = "Blue"
Margin="25,0,0,0">
Image Bullet.
</TextBlock>
</BulletDecorator>
<BulletDecorator Margin="55,145,0,0">
<BulletDecorator.Bullet>
<Button Width="30" Height="20">B</Button>
</BulletDecorator.Bullet>
<TextBlock
Width="300"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground = "Blue"
Margin="25,0,0,0">
Button Bullet.
</TextBlock>
</BulletDecorator>
<Label Height="29.2766666666667" Margin="94.37,5.72333333333333,117,0" Name="label1" VerticalAlignment="Top" FontSize="16" FontWeight="Bold">BulletDecorter Example</Label>
</Grid>
</Window>
The output will be as follows:
