コード例 #1
0
        private void Wallpaper_Click(object sender, RoutedEventArgs e)
        {
            wallPaper          = new SubclassWallpaperCreater(frame);
            product            = wallPaper.CreateWallpaper();
            product.Width      = 500;
            product.Height     = 500;
            schetchPhotoToSave = product;
            Canvas myCanvas2 = new Canvas();

            Canvas.SetTop(product, 0);
            Canvas.SetLeft(product, 150);
            myCanvas2.Children.Add(product);
            grid1.Children.Add(myCanvas2);
        }
コード例 #2
0
 private void Wallpaper_Click(object sender, RoutedEventArgs e)
 {
     wallPaper = new SubclassWallpaperCreater(frame);
     product = wallPaper.CreateWallpaper();
     product.Width = 500;
     product.Height = 500;
     schetchPhotoToSave = product;
     Canvas myCanvas2 = new Canvas();
     Canvas.SetTop(product, 0);
     Canvas.SetLeft(product, 150);
     myCanvas2.Children.Add(product);
     grid1.Children.Add(myCanvas2);
 }