Silverlight中后台写Button

Button  button2 = new Button { Width=30,Height=30, Content="HelloWorld", Background=new SolidColorBrush(Colors.Black) };
this.gdAA.Children.Add(button2);

原文地址:https://www.cnblogs.com/caok168/p/2561323.html