public static Canvas CreateBgCanvas() { Canvas BgCanvas = new Canvas(); BgCanvas.HorizontalAlignment = HorizontalAlignment.Stretch; BgCanvas.VerticalAlignment = VerticalAlignment.Stretch; BgCanvas.Background = DrawUtils.GetGridBrush(); /*mainCanvas.Background = new SolidColorBrush(Colors.GreenYellow);*/ return(BgCanvas); }