| 你的错误应该是提示无法将类型“string”隐式转换为“System.Windows.Media.ImageSource”吧。。。 
 xaml部分不要动,cs部分改成:
 其中new bitmapimage是创建上载图片的专用Bitmapsource,复制代码        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            image1.Source = new BitmapImage(new Uri("logo.ico"));
        }
new uri 就是路径了, 格式new Uri  (图片路径,路径类型),
 路径类型UriKind(相对)Relative(绝对),不填就是默认的相对地址。
 |