public WaitScreenViewModel(IWaitScreenView view) : base(view) { if (Application.Current != null) { _dispatcher = Application.Current.Dispatcher; } _hideTimer = new Timer(); _hideTimer.Elapsed += HideTimerElapsed; _hideTimer.Interval = 300; _hideTimer.Enabled = false; Enabled = true; ((UserControl)view).Loaded += WaitScreenPresenterLoaded; }