public MainWindow() { StyleManagerHelper.Initialize(); InitializeComponent(); this.Loaded += MainWindow_Loaded; }