如果我不打算使用导航,我应该使用Page和Frame吗? [英] Should i use Page and Frame if i don't plan on using navigation ?

查看:85
本文介绍了如果我不打算使用导航,我应该使用Page和Frame吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我开始使用一个主窗口来开始我的项目,该窗口分为一堆框架,这些框架中的页面永远不会改变,一个框架将具有动态页面内容。


It使得分离所有"模块"变得容易。包含在我的窗口中,每个页面都有自己的逻辑和事件。


这是处理我的需求的正确方法还是有更适合/更好的东西?我的意思是到目前为止它完美无缺,我还没有遇到任何问题,但由于我还处于项目的最初阶段,我宁愿确保以正确的方式进行。

解决方案

您好reonZ,


根据您的描述,您使用Frame加载不同的页面主窗口,我认为没关系,因为我认为这也是导航的一种表现形式。




帧是一个内容控件,提供导航和显示的功能内容。


https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.frame?view=netframework-4.7.2



最好的问候,


Cherry


So i started my project using a main window divided in a bunch of frames filled with pages that will never change and one frame that will have dynamic page content.

It makes it easy to separate all the "modules" comprised in my window, and each page can have its own logic with events and all.

Is it the correct way to handle my needs or is there something more suited/better ? I mean so far it works perfectly and i didn't encounter any problem yet, but since i am still in the very beginning of the project, i rather make sure i go in the right way.

解决方案

Hi reonZ,

According to your description, you use Frame to load different page in Main window, I think it is ok, because I think this is also a manifestation of navigation.


Frame is a content control that provides the ability to navigate to and display content.

https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.frame?view=netframework-4.7.2

Best Regards,

Cherry


这篇关于如果我不打算使用导航,我应该使用Page和Frame吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆