Windows Phone 7 listbox colorize items?
Is there a way to use the listbox with a htmlstring?
listbox.items.add("<开发者_开发问答;font color='#efefef' size=2>asd</font>
");
?
Not natively. But you can do something like this:
listbox.Items.Add(new TextBlock()
{
Text = "Asd",
Foreground = Color.FromArgb(0xff, 0xef, 0xef, 0xef),
FontSize = 2,
});
精彩评论