Prism (WPF) 中主窗口的登录窗口

发布于 2024-10-08 13:44:16 字数 444 浏览 0 评论 0原文

我一直在尝试弄清楚如何使用 Prism,但现在我对如何在我的小项目上实现某个功能有点迷失......也许我只是不知道如何去做,因为我真的很陌生WPF 和整个组合类型的应用程序,因为我是一名图形/Web 设计师,渴望了解更多有关编程的知识。我的朋友建议我应该学习 WPF,我确实这么做了……我现在非常擅长设计 UI 和其他让它动起来的东西。昨晚,我能够编写一个 WCF 服务并将我的 WPF 应用程序连接到它,这真的很简洁。

昨晚我在浏览时发现了 Prism,它让我非常感兴趣,但我不确定如何完全使用它...现在,我想知道的是如何使用 Prism 将登录屏幕连接到主屏幕..我见过的大多数示例都将内容加载到 shell 窗口,但我还没有看到任何使用登录屏幕的示例,该屏幕在验证用户后将用户重定向到主窗口。

有人能指出我正确的方向吗?也许是一个示例项目?我知道我还不擅长这一点,但我很想学习。

谢谢!

-基尔斯滕

I've been trying to figure out how to use Prism but I'm a bit lost right now on how to implement a feature on my small project... maybe I just dont know how to do it as I'm really new to WPF and the whole composition type of application as I was a Graphic/Web designer with an urge to learn more about programming. I friend of mine suggested that I should learn WPF and I did... I'm pretty good now with designing UI and the other things that makes it move. Last night I was able to write a WCF service and connect my WPF application to it which was really neat.

i was browsing last night when I found Prism and it got me really interested but I'm not sure how to use it completely... For now, all I want to know is how to wire a Login screen to a main screen using Prism.. most of the examples I've seen load contents to a shell window but I have not seen any that uses a Login screen that would redirect a user to a Main Window once a user is validated.

Can anyone point me to the right direction? A sample project perhaps? I know i'm not good at this yet but I'm eager to learn.

Thanks!

-Kiersten

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无敌元气妹 2024-10-15 13:44:16

例如,如果您在 Codeplex 的 Prism 论坛中输入此搜索查询,您将得到许多处理这种情况的线程。

一个特别有用的可能是这个

搜索“login”也提供了有用的结果,因为许多结果解释了登录后要执行的操作、如何根据权限加载模块等。

If you enter, for example, this search query in the Prism forums at Codeplex, you will get many threads that deal with this situation.

A particularly helpful one could be this one.

Searching for "login" also provides useful results, as many them explain what to do after the login has been performed, how to load modules depending on permissions, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文