本帖最后由 ↖落葉下♀媃媚 于 2013-4-28 11:41 编辑
OpenFileDialog imageOpen = new OpenFileDialog();
imageOpen.Filter = "图片|*.image|连连看图片|*.jpg";//过滤器
if(imageOpen.ShowDialog()==true)
{
image1.Source = new BitmapImage(new Uri(imageOpen.Filter));//这句怎么抛异常?造成图片不显示?
应该如何解决?
} |
|