摘要: 方法一:xaml中:<控件> <控件.Background><ImageBrush ImageSource="/WpfApplication1;component/Images/xxx.jpg"/></控件.Background></控件> 方法二:xxxx.cs中:ImageBrush b3 = new ImageBrush();b3.ImageSource = new BitmapImage(new Uri(path, UriKind.RelativeOrAbsolute));this.Background = 阅读全文
posted @ 2011-04-28 21:51 路途遥远 阅读(736) 评论(0) 推荐(0) 编辑