当您在解决方案资源管理器中添加新文件时,WPF中的页面和窗口之间有什么区别?
页面用于导航应用程序(通常带有后退和前进按钮,例如Internet Explorer)。页面必须驻留在导航窗口或框架中
Windows只是普通的WPF应用程序Windows,但可以通过框架容器承载页面
页面控件可以包含在窗口控件中,反之则不可能
You can use Page control within the Window control using NavigationWindow and Frame controls. Window is the root control that must be used to hold/host other controls (e.g. Button) as container. Page is a control which can be hosted in other container controls like NavigationWindow or Frame. Page control has its own goal to serve like other controls (e.g. Button). Page is to create browser like applications. So if you host Page in NavigationWindow, you will get the navigation implementation built-in. Pages are intended for use in Navigation applications (usually with Back and Forward buttons, e.g. Internet Explorer).
WPF使用Page类在独立应用程序中提供浏览器样式导航的支持。用户可以创建多个页面,在这些页面和数据之间导航。有多种方法可以从一个页面导航到另一个页面。
推荐文章
- c#和Java中的泛型有什么不同?和模板在c++ ?
- c#线程安全快速(est)计数器
- 如何将此foreach代码转换为Parallel.ForEach?
- 如何分裂()一个分隔字符串到一个列表<字符串>
- 如何转换列表<字符串>列表<int>?
- c#对象列表,我如何得到一个属性的和
- 我如何使用IValidatableObject?
- 如何指定最小值,但没有使用范围数据注释属性的最大小数?
- c# vs Java Enum(适合c#新手)
- c#消毒文件名
- 禁用Visual Studio 2015额外调试选项
- 在EF中更新父实体时如何添加/更新子实体
- ASP。NET身份的默认密码散列器-它是如何工作的,它是安全的?
- 如何写一个JSON文件在c# ?
- 静态隐式运算符