I have
public partial class MainWindow : Window
Also I have got some static class which does logging.
WHich the best way to refer/pass MainWindow to that static class is?
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.
You can use Application.Current.MainWindow to access main window elsewhere in your application.