Ask a questionAsk a question
 

Proposed Answerhow to disable WPF window.

  • Friday, June 26, 2009 9:13 AMHarshil Gandhi Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

All Replies

  • Friday, June 26, 2009 11:21 AMStef S. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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, June 28, 2009 9:27 AMDieterdp Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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, July 01, 2009 5:24 PMprasad22MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    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
    • Proposed As Answer byprasad22MVPWednesday, July 01, 2009 5:25 PM
    •