This seems doable but for some reason the proper way is not occurring to me. I am new to C# and .NET so I hope this isn’t a ridiculous question 🙂
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure why you would want to do this. It doesn’t seem like the best design, but without knowing the details of what you are doing, I can’t comment about that. Here’s how this could be done:
In App.Xaml.cs:
Note that you would have to do this AFTER startup. If you want to do it BEFORE startup, you’ll need to create the
MainWindowobject and assign it tothis.MainWindow: