ofd = new OpenFileDialog();if ((bool)ofd.ShowDialog(this)){ string[] images = ofd.FileNames; foreach (string image in images) { Uri imgsource = new Uri(image); BitmapImage bim = new BitmapImage(); bim.BeginInit(); //bim.DecodePixelWidth = 3509; bim.DecodePixelHeight = 10200; bim.CacheOption = BitmapCacheOption.OnLoad; bim.UriSource = imgsource; bim.EndInit(); Image img = new Image(); img.Source = bim canvas1.Children.Add(img); img.AllowDrop = true; Canvas.SetLeft(img, (canvas1.Children.Count)* 20); Canvas.SetTop(img, (canvas1.Children.Count) * 20);}