开发者

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,
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜