protected override void Initialize() { base.Initialize(); var options = (Options)GetDialogPage(typeof(Options)); Logger.Initialize(this, Vsix.Name); Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() => { try { CommandHandler.Initialize(this, options); } catch (Exception ex) { Logger.Log(ex); } }), DispatcherPriority.ApplicationIdle, null); }