页面v框架 [英] Pages v Frames
问题描述
我是开发人员的新手,只是试图制作我的第一个应用程序。很多教程,看论坛..无论如何。
I'm real new to dev, just trying to make my first app ever. Lots of tutorials, and looking at forums.. anyway.
我想知道制作一个主要页面的想法是什么,在一个主页面中为各个"页面"设置了不同的框架,或者你应该制作多个页面。
I'm wondering what's the thought on making one main page, with different frames for individual 'pages' within that one main page, or should you make multiple pages.
我的后续操作是导航 - 如果你要制作多个页面,你应该在每个页面上构建导航栏,还是可以制作一个,让它调用每个页面
My follow up to that is for navigation - if you're making multiple pages, should you build navigation bars on each, or can you make one, and have it call to each page
推荐答案
Hello Ben_Carney,
Hello Ben_Carney,
这就是 汉堡菜单适合你。请看这个视频来理解它:
That is just what hamburger menu does for you. Please see this video to understand it:
https://channel9.msdn.com/Series/Windows-10-development-for-absolute-beginners/UWP-021-Implementing-a -Simple-Hamburger-Navigation-Menu
https://channel9.msdn.com/Series/Windows-10-development-for-absolute-beginners/UWP-021-Implementing-a-Simple-Hamburger-Navigation-Menu
请同时根据以上视频查看代码示例:
Please also check code sample here based on the above video:
https:// github .com / Windows-Readiness / AbsoluteBeginnersWin10 / tree / master / UWP-021 / UWP-021
https://github.com/Windows-Readiness/AbsoluteBeginnersWin10/tree/master/UWP-021/UWP-021
并且 我们有一个控件,可以帮助您轻松使用:
And we have a control which can be helpful for easy use:
http://uwpcommunitytoolkit.readthedocs.io/en/master/controls/HamburgerMenu/
http://uwpcommunitytoolkit.readthedocs.io/en/master/controls/HamburgerMenu/
正如您所知,框架代表页面实例,它支持 这么多导航选项,详情列出
这里。
And as you may know, frame stands for a instance of page, it support so many navigation options, details are listed here.
顺便问一下,你的项目类型是什么?我们需要为应用程序修改标签。例如,UWP应该是[UWP]标签。
By the way, what's your project type? We need to edit tags for applications. For example, UWP should be [UWP] tag.
祝你好运,
Barry
这篇关于页面v框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!