Windows phone 8 如何从Windows Phone 8中的URL加载图像?
我使用此代码通过HTTP/URL加载图像Windows phone 8 如何从Windows Phone 8中的URL加载图像?,windows-phone-8,c#-3.0,Windows Phone 8,C# 3.0,我使用此代码通过HTTP/URL加载图像 Uri uri = new Uri("http://Abundantcode.com/image.jpg", UriKind.Absolute) imageControl.Source = new BitmapImage(uri); 如何使用字符串变量而不是直接解析的字符串。您可以这样做: <Image Source="{Binding ImageUri}" /> 现在将ImageUri设置为所需的任何string。要使用“数据URL
Uri uri = new Uri("http://Abundantcode.com/image.jpg", UriKind.Absolute)
imageControl.Source = new BitmapImage(uri);
如何使用字符串变量而不是直接解析的字符串。您可以这样做:
<Image Source="{Binding ImageUri}" />
现在将ImageUri
设置为所需的任何string
。要使用“数据URL”,如中所述