我想知道是否可能从用户角度动态添加一个新的页面/视图?
现在我有一个汉堡菜单,我希望能够添加一个使用特定布局页面的新页面。
就像在网站CMS中添加新页面一样。
提前感谢!
我想知道是否可能从用户角度动态添加一个新的页面/视图?
现在我有一个汉堡菜单,我希望能够添加一个使用特定布局页面的新页面。
就像在网站CMS中添加新页面一样。
提前感谢!
var page = new ContentPage();
page.Title = "My Page";
var content = new StackLayout();
// add content controls to layout here
// you could prompt the user for input - ie, how many buttons, or labels, etc
// and populate the stack accordingly
content.Children.Add(...);
page.Content = content;