在Silverlight中显示图片的一种方法

来源:互联网 发布:程序员离职前放木马 编辑:程序博客网 时间:2024/05/22 17:45

直接看代码:

            ImageSource imageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri("http://localhost:3767/Images1/1234.jpg", UriKind.RelativeOrAbsolute));            MyImageControl.Stretch = Stretch.Fill;            MyImageControl.Source = imageSource;

其中,MyImageControl为图片控件。

阅读全文
1 0
原创粉丝点击