简体   繁体   English

使用Windows通用应用程序的主详细信息页面

[英]Using master detail pages for windows universal apps

I want to make windows universal app using master detail pages. 我想使用主要详细信息页面使Windows通用应用程序。 It should look like 它看起来像 这个

I found a lot of information about master detail, but almost all of it is not for windows-universal app and so it doesn't work for me. 我发现了很多有关主细节的信息,但几乎所有信息都不适合Windows通用应用程序,因此对我不起作用。 So please, can you give me some links with examples of using master detail exactly on windows universal app? 所以,请您给我一些链接,这些示例包含在Windows Universal应用程序中完全使用主细节的示例吗?

Here is a code example - how to implement a responsive master/detail experience in XAML. 这是一个代码示例- 如何在XAML中实现响应式主/详细体验。

The Guidelines for a master/details pattern for UWP are the same of a windows phone 8.1 app. UWP的主/详细信息模式指南与Windows Phone 8.1应用程序相同。 You can check details in this link 您可以在此链接中查看详细信息

After copying the sample in a new project, cut everything between <Page.Resources> and </Page.Resources> and wait for a minute. 将示例复制到新项目中之后,剪切<Page.Resources></Page.Resources>之间的所有内容,然后等待一分钟。 Then again paste the code. 然后再次粘贴代码。 This is because x:Bind compiles at runtime and hence vs will need to recompile. 这是因为x:Bind在运行时进行编译,因此vs将需要重新编译。

To run this example you might also have to delete these lines of code: 要运行此示例,您可能还必须删除以下代码行:

Style="{ThemeResource     ListBodyTextBlockStyle}" />

Style="{ThemeResource.    ListCaptionAltTextblockStyle}" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM