有没有办法在运行时创建一个新页面?
也许在cs中生成XAML并将它们添加到应用程序中?
泰
新:好的,我会尝试更好地解释它:
我想用多个控件从 json 创建动态应用程序页面。
例子:
{
"pages": [
{
"title": "Page 1",
"controls": [
{
"button": [
{
"text": "Testbutton",
"value": "clear",
}
]
},
{
"textview": [
{
"value": "enter some text"
}
]
}
]
},
{
"title": "Page 2",
"controls": [
{..}
]
}
]
}
所以我想灵活地生成它们,因为每次加载时 json 都不相同。