登录后复制 Window window1 = new Window(); window1.Title = "新窗口"; window1.Background = Brushes.LightBlue; // SolidColorBrush brush1 = new SolidColorBrush(Colors.Yellow); Grid grid = new Grid(); Label label1 = new Label(); label1.Content = "执笔小白"; label1.FontSize = 20; label1.Foreground = Brushes.Red; grid.Children.Add(label1); window1.Content = grid; window1.Show(); 1.2.3.4.5.6.7.8.9.10.11.12.13. 作者:꧁执笔小白꧂ 原创作者: u_16822845 转载于: https://blog.51cto.com/u_16822845/11650954