Suppose we want to do the following effect in WPF:
- This is a bullet
Here is the source for it:
Code Snippet
- <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="This is a bullet" />
- </BulletDecorator>
And here is the results:
Source - Bulletdecorator in WPF | Controls | w3mentor
No comments:
Post a Comment