Windows phone 7 如何在windows phone中将图像从json绑定到xaml

Windows phone 7 如何在windows phone中将图像从json绑定到xaml,windows-phone-7,xaml,json.net,Windows Phone 7,Xaml,Json.net,我不熟悉windows phone开发。我正在开发一个从webservice获取json并使用json.net解析它的应用程序,以在windows phone中显示数据。下面是示例json [ { "id": "001", "title": "title1", "content": "sample content", "category_id": "3", "image": "defaultimg.jpg" }, { "id": "021",

我不熟悉windows phone开发。我正在开发一个从webservice获取json并使用json.net解析它的应用程序,以在windows phone中显示数据。下面是示例json

[
{
    "id": "001",
    "title": "title1",
    "content": "sample content",
    "category_id": "3",
    "image": "defaultimg.jpg"
},

{
    "id": "021",
    "title": "title2",
    "content": "sample content",
    "category_id": "1",
    "image": "defaultimg2.jpg"
},

{
    "id": "011",
    "title": "title3",
    "content": "sample content",
    "category_id": "3",
    "image": "defaultimg22.jpg"
},
]

可以用这种格式绑定图像吗?或者它应该是url格式?

而不是传递图像路径,而是传递base64编码的图像字符串,然后在视图中使用该字符串

必须将图像源与现有图像或图像对象的绝对或相对url绑定。绑定时,您可以使用转换器将这些json字符串转换为url,但这显然不是一种明智的做法。感谢@DavidTo,您可以提供一些链接将json字符串转换为url吗?如果您使用json.net库本身将字符串解析为json对象,会更容易。关于转换器,您可以按照示例或google了解如何编写IValueConverter。