Hello everyone,
I am developing a WPF application in which there is a header (user control) with some buttons as "Home", "Upload", "Log Off" etc.
What I want is to add this header user control in a page and when I click the "Upload" button of this header user control, another user control named "FileUpload" should be added to the same page.
I tried
Windows.GetWindow(this).Content=fileuploadobject
in the code behind of header.xaml.cs but it replaces the content however I want to add the file upload user control to the page itself and don't want to replace the page's contents with this file upload user control.
Any help is highly honored.
Thank you very much in advance.