LOB 应用程序的 WPF UI 布局
一段时间以来,我一直在尝试寻找有关此主题的一些资源,但无济于事,那么为 LOB(业务线)应用程序构建 WPF UI 的最佳方法是什么? 特别是客户、订单、产品等。我见过许多单窗口 WPF 应用程序示例,它们不需要任何其他内容,只需一个窗口,并且我也研究过诸如 FamilyShow 之类的应用程序,在我所能看到的所有内容之前,它们看起来很有希望代码中有一大堆用户控件,它们在应用程序的生命周期中淡入淡出,而不是我真正可以使用的东西,比如说应用程序中的 30-40 个视图。
那么我到底要问什么呢? 那么,我是否应该将 LOB 应用程序构建为单个 WPF 窗口,其中包含一个动态加载用户控件的面板,然后在按下导航项时交换它们,或者我应该有多个显示或隐藏的窗口窗体当我们说从启动主窗体按下导航项时。
UI 设计从来都不是我的强项,但我很想学习,所以我非常感谢您的想法并提供了布局 WPF LOB 应用程序(Window+UC 或 Windows)的经验,或者可以向我指出任何涵盖 WPF UI 的文章LOB 应用程序的布局设计。
感谢您阅读...
杰夫。
I have been trying to find some resource on this topic for a while now but to no avail so what is the best way to construct a WPF UI for LOB (Line of Business) applications? specifically Customers, Orders, Products, etc.. I have seen many single window WPF application examples that don't need to be anything else but a single window and i've looked at applications such as FamilyShow which looked promising until all I could see in the code was a big pile of user controls that faded in and out over the lifetime of the application and not something I could really use for lets say a 30-40 views in an application.
So what exactly am I asking? Well should I build a LOB application as a single WPF window with lets say a panel that has user controls dynamically loaded into it and then swap these out when lets say a navigation item is pressed or should I have multiple window forms that get shown or hidden when lets say a navigation item is pressed from a launching main form.
UI Design has never really been my strengh but i'm keen to learn so I would really appreciate your thoughts and offered experience in laying out your WPF LOB applications (Window+UC's or Windows) or could point me to any articles that cover WPF UI Layout design for LOB applications.
Thanks for reading...
Geoff.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您想要的是 Microsoft 针对复合客户端应用程序的最佳实践。
就框架和业务应用程序而言,这可能是迄今为止最好的事情。 顾名思义,这是一个用较小的组件构建较大的应用程序的框架和基础,这种情况在创建 LOB 业务应用程序时经常发生。
现在,对于 WPF 来说,非常具体的是 Prism 框架。 我相信它与上面的复合应用程序块(CAB)有一些相同的概念。
What you want is Microsoft's best practices for composite client applications.
This is probably the best thing to date as far as a framework and starting for business applications. It is what it sounds like - a framework and basis for building a larger app out of smaller components, which happens a lot when creating LOB business apps.
Now, very specific to WPF, is the prism framework. Which I believe shares some of the same concepts as the above composite application blocks (CAB).
最终,您的 UI 外观/感觉在很大程度上取决于您想要执行的操作。 “业务线”(我假设您指的是“LOB”的业务线)是一个非常模糊的术语,可能意味着许多不同的事物。 您的 UI 的构建应该能够反映您实际上正在尝试执行的数十种不同操作中的哪些操作。
所以我只能用另一个问题来回答你的问题:你想做什么?
Ultimately, your UI look/feel depends heavily upon what you're trying to do. "Line of Business" (I assume you mean Line of Business by "LOB") is a very vague term that could mean dozens of different things. Your UI should be constructed to reflect which of those dozens of different things you're actually trying to do.
So I can only answer your question with another: What are you trying to do?
是的,我在网上用 google 搜索了很多,寻找 WPF/Silverlight“LOB 杀手应用程序”的资源。 有一个非常好的演示(Bill Hollis),您可以在此处找到它
WPF 和 MVVM 是流行趋势,我强烈建议将其添加到您的工具箱中。
它是您的应用程序框架非常强大的基础。 我认为 Microsoft 已经确定了 WPF 的数据绑定。 它是 WPF 技术的主要核心,使(开发人员和设计人员)能够共存。 这是一个非常高的学习曲线,但值得一去。
快乐编码。
Yes, I have been google a lot online to look for resources for WPF/Silverlight "LOB killer app". There was one very good demo(Bill Hollis) which you can find it here
WPF and MVVM is the the popular trend, I highly recommend to add it in your toolbox.
It's very powerful foundation for your application framework. I think Microsoft nails databinding for WPF. It's the very main core of the WPF technology to enable (developer & designer) co-exist. It's very high learning curve, but worth the journey.
Happy coding.