WPF编程,C#后台创建一个Image实例。

版权声明:我不生产代码,我只是代码的搬运工。 https://blog.csdn.net/qq_43307934/article/details/87928320
            var a = new Image
             {
               Source = new BitmapImage(new Uri("这里写存储路径", UriKind.RelativeOrAbsolute)),
                 Width = 60,
                 Height = 60,
                 Tag = "fileName"
              };

猜你喜欢

转载自blog.csdn.net/qq_43307934/article/details/87928320
今日推荐