wp(3) 後臺添加頁面控件

// 初始化
Button NewButton = new Button();
// 定義按鈕的基本屬性
NewButton.Width = 160;
NewButton.Height = 72;
NewButton.Content = "按鈕";
// 向頁面內容處添加
ContentPanel.Children.Add(NewButton);
其他控件同理添加
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章