如何打开框架 [英] How do I open a frame
本文介绍了如何打开框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
json file
{
"Groups": [
{
"UniqueId": "Group-4",
"Title": "title",
"Subtitle": "Group subtitle: 1",
"ImagePath": "Assets/DarkGray.png",
"Description": "",
"Items": [
{
"UniqueId": "id1",
"Title": "title 1",
"Subtitle": "kem",
"ImagePath": "Assets/DarkGray.png",
"Description": "dsc",
"Content": ""
},
{
"UniqueId": "id2",
"Title": "",
"Subtitle": "sam",
"ImagePath": "Assets/DarkGray.png",
"Description": " desc 2 ",
"Content": " content "
}
]
}
如何使用xaml.cs打开id1的框架
例如:
我知道如何在xaml.cs中打开现有的xmal页面
Frame.Navigate(typeof(id1));
同样我想用UniqueId打开
来自评论: < br $> b $ b
Visual Studio 2013,
平台:Hub应用
语言:C#/ c sharp
我正在使用.json
How to open a frame for "id1" using xaml.cs
eg :
I know how to open for a existing xmal page in xaml.cs
Frame.Navigate(typeof(id1));
similarly I want to open using UniqueId
From comment:
Visual Studio 2013,
Platform : Hub Apps
Language : C # / c sharp
I'm using .json
推荐答案
问题不明确,但请先阅读我过去的答案,或许我在其中引用的答案:
从云端获取数据(json文档) [ ^ ],
如何将多级json数据转换为C#对象? [ ^ ],
如何将对象类型转换为C#类对象类型 [ ^ ],
解析json字符串数组 [ ^ ]。
在JavaScript中:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON [ ^ ],
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse [ ^ ]。
-SA
The question is not clear, but first please read my past answers, and perhaps answers I referenced in them:
haw to get data from Cloudant (json document)[^],
how to conver multi level json data to C# Object?[^],
How To Convert object type to C# class object type[^],
deseralize a json string array[^].
In JavaScript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON[^],
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse[^].
—SA
这篇关于如何打开框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文