Click here to Skip to main content
14,486,801 members
Rate this:
Please Sign up or sign in to vote.
See more:
parent usercontrol is stackpanel in windowMain. all usercontrols loaded in stackpanel main.

How to Display another UserControl by Clicking on button in One UserControl in wpf?

What I have tried:

parent usercontrol is stackpanel in windowMain. all usercontrols loaded in stackpanel main.

How to Display another UserControl by Clicking on button in One UserControl in wpf?
Posted
Comments
Gerry Schmitz 24-Mar-20 12:38pm
   
"Displaying or not displaying" can be as simple as toggling the "Visibility" property of the control. Whether you just want to hide / show or "collapse" / "de-collapse" is another question. You can even create on the fly and attach it to something.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100