I have recently designed a WPF application with some user controls and I want to code behind a user control to redirect to another window or invoke another user control however I am unable to do the same.
The problems I am facing presently are as follows:-
1.When I use the "this" keyword as "this.visibility.collapsed" it removes the user controls from the window but doesn't closes the window itself.
I just want to know **how to find the parent window of this at runtime so that I may write something as this.****.visibility.collapsed
2.How to invoke another user control from another user control's button click in the same window.
Thanks in advance.
Edited by KM499