这是一个存放控件的容器,且其中只能存放两个控年。
如下例:
<BulletDecorator Margin="0,5,0,0">
<BulletDecorator.Bullet>
<CheckBox Width="15" Height="14"/>
</BulletDecorator.Bullet>
<TextBlock
Width="100"
TextWrapping="Wrap"
HorizontalAlignment="Left"
Foreground = "Blue"
Margin="5,0,0,0">
TextBlock Test.
</TextBlock>
</BulletDecorator>
值的注意的是,在<BulletDecorator.Bullet></BulletDecorator.Bullet>标签中的控件是放位于签外部控件的前面的。它可以方便的把一组<BulletDecorator>放到一起。
本文参考MSDN组织。