【发布时间】:2011-04-05 16:22:47
【问题描述】:
我在ListBox 控件中有一组我想要的静态内容。
<ListBox>
<ListBox.Items>
<ListBoxItem>
<Image />
<TextBlock Text="One" />
</ListBoxItem>
<ListBoxItem>
<Image />
<TextBlock Text="Two" />
</ListBoxItem>
<ListBoxItem>
<Image />
<TextBlock Text="Three" />
</ListBoxItem>
</ListBox.Items>
</ListBox>
我该如何设计这个样式?我知道我可以单独设置每个ListBoxItem 的样式,并且我知道如何在数据绑定时设置样式,但是在使用这样的静态内容时如何设置列表框项模板的样式?
【问题讨论】:
标签: xaml windows-phone-7 listbox styling