wpf image source
<Image Name="img" Source=""/>
1:source指向url
url可以是任何一张网络上的图片;
2:source指向本项目的图片地址
pack://application:,,,/images/test.jpg
可以简写为:/images/test.jpg
3:source指向引用项目的图片地址
pack://application:,,,/程序集名称;component/images/test.jpg
可以简写为:/程序集名称;component/images/test.jpg
4:使用c#指定图片
img.Source = new BitmapImage(new Uri(""));
 
                    
                
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号