WPF应用程序结构 [英] WPF application strufture

查看:73
本文介绍了WPF应用程序结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

另一个新手问题:


我正在构建一个无法在浏览器中运行的Silverlight(显然)应用程序。


<我试图掌握应用程序结构背后的逻辑。


该应用程序将有几个窗口或页面 - 问题1-使用哪个?或者在一个窗口中使用用户控件?


以及如何在它们之间导航?


这是"最佳实践"。用于构建这样的应用程序?

解决方案

你的标题是WPF,你的帖子说"silverlight(显然)。"


2是不同的平台。 Silverlight应用程序在浏览器中运行,WPF应用程序在Windows桌面上运行。


如果您实际上使用的是Silverlight,则可以创建Pages并使用导航框架作为主机容器。要在它们之间导航,您可以使用超链接或附加到元素的事件,或者您可以编写行为来执行此操作。我在http://chuckhays.net/上发布了WPF版本
,但它需要针对Silverlight进行修改。


Hi, another newbie question:

I'm building a silverlight (obviously) application that will not run in a browser.

I'm trying to grasp the logic behind the app structure.

the app will have several windows or pages - question 1- which to use ? or maybe use user controls in one window?

and how do i navigate between them?

which is "best practice" for building an app like this?

解决方案

Your title says WPF, your post says "silverlight (obviously).

The 2 are different platforms. Silverlight applications run in the browser, WPF applications run on the windows desktop.

If you are in fact using silverlight, you could create Pages and use the navigation frame as the host container. To navigate between them, you can use hyperlinks, or events attached to elements, or you could write a behavior to do so. I have a WPF version posted at http://chuckhays.net/, but it would need to be modified for Silverlight.


这篇关于WPF应用程序结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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