Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am developing a GUI using WPF but I am new to this field.

I have created "Main window"(One) and one more "Login window"(Two).

In main window I have disabled one dock panel. I want to enable it from Login Window.

Can any one help me.

mobasir.2008@gmail.com

What I have tried:

Here I am creating a object of new window and trying to enabling but it is not happening.
MainWindow wnd1 = new MainWindow();

wnd1.pnlbottom.Visibility = Visibility. Visible;
wnd1.bottomB.Visibility = Visibility. Visible;
Posted
Updated 7-May-18 2:53am
v2

1 solution

Enabled/Disabled and Visible/Invisible/Collapsed are different states. You'll want to set the property IsEnabled[^] .
 
Share this answer
 
Comments
Member 11870925 7-May-18 8:57am    
How to set please guide me.
[no name] 7-May-18 8:59am    
wnd1.pnlbottom.IsEnabled = true;
wnd1.bottomB.IsEnabled = true;
Member 11870925 7-May-18 9:24am    
No sir I have tried with your written soln it is not working.

Can you share me your mail id I will share screen shot so you can understand easily what exactly I want.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900