public override void OnShow() { this.Dispatcher.BeginInvoke(DispatcherPriority.ContextIdle, new Action(delegate () { ConsoleInput.Focus(); })); }