Bulletdecorator in WPF

The BulletDecorator control is used to display a single item and bullet in a bulleted list in WPF. The following xaml code shows how to draw a diamond shaped BulletDecorator next to a textblock.

<BulletDecorator>
    <BulletDecorator.Bullet>
        <Polygon Margin=” 2, 0, 0, 0” Points=”0, 5 5, 0 10, 5 5, 10” Fill=” Blue” />
    </BulletDecorator.Bullet>
    <TextBlock Margin=”10, 0, 0, 0” Text=”Bullet Point Text” />
</BulletDecorator>

Example output:

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.