摘要:
这里主要是以图片的引用为例。一、引用同一个程序中的资源1、使用相对Uri来引用资源,如下所示img.Source=new BitmapImage(new Uri(@"d"\iamges\Background\1.jpg"));使用相对uri: img.Source=new BitmapImage(new Uri("images/1.jpg",UriKind.Relative));2、使用更累赘的绝对Uri:img.Source=new BitmapImage(new Uri ("Pack://application:,,,/iamge 阅读全文
posted @ 2013-04-15 20:34
LearnerYQY
阅读(5081)
评论(0)
推荐(0)