Expression > 論壇首頁 > Expression Blend + SketchFlow > how to disable WPF window.
發問發問
 

提議的解答how to disable WPF window.

  • Friday, 26 June, 2009 9:13Harshil Gandhi 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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

所有回覆

  • Friday, 26 June, 2009 11:21Stef S. 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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.
  • Sunday, 28 June, 2009 9:27Dieterdp 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    do  you want to disable to login screen of hide, i would you a dialog screen and when the login/pass is correct close the dialog screen

    dieter
  • Wednesday, 1 July, 2009 17:24prasad22MVP使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     提議的解答
    Hi,

    you can disable using the property   IsEnabled=false;

    if you do that then you will not have access to all the controls in that window, apart from that you will have access only to the standard minimize,maximize,resize buttons if available on top right corner of the title. which is non client area.


    Prasad - www.beautifulmind.blog.co.in
    Microsoft MVP
    • 已提議為解答prasad22MVPWednesday, 1 July, 2009 17:25
    •