如何禁用WPF窗口。 [英] how to disable WPF window.

查看:90
本文介绍了如何禁用WPF窗口。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个WPF窗口(.xaml)。
如果用户登录信息正确,则应禁用登录窗口并打开另一个窗口。

怎么能我实现了IT

谢谢Harshil

I have two WPF window(.xaml) .
If user login information is correct it should disable login window and open another window....


How can I  achieve IT

Thanks
Harshil

推荐答案

在按钮单击后面的代码中(从登录)你可以检查凭证,如果用户通过凭证,您可以导航到第二个窗口或将其附加到根目录。
In the code behind of the button click (from the Login) you can check the credentials and if the user passes it, you simple can navigate to your second window or attach it to the root.


这篇关于如何禁用WPF窗口。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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