Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

            mb1 = new MyBackground();

            CanvasB.Background = mb1.backg();

            CanvasB.RenderTransform = new TranslateTransform {
                X = -5000, Y = -5000
            };



            b1         = new Button();
            b1.Content = "Press";
            b1.Width   = 100;
            b1.Height  = 50;
            b1.Margin  = new Thickness(5000, 5000, 0, 0);
            CanvasB.Children.Add(b1);
        }
 public string GetCurrentBackground()
 {
     return(MyBackground.GetBackground());
 }