2011-11-01 75 views

回答

0

在后面的代码中,您可以在Children属性中使用Insert()方法。

WrapPanel myPanel = new WrapPanel(); 
myPanel.Children.Insert(0, new Button()); 

如果不在代码后面,您将不得不创建一个新的控件。