/// <summary> /// Make a timer only to show this windows for 8 seconds then it will be closed. /// </summary> public AboutViewModel() { _model = (_model != null) ? _model : new AboutModel(); _timer = (_timer != null) ? _timer : new DispatcherTimer(); _timer.Interval = new TimeSpan(0, 0, 1); _timer.Start(); _timer.Tick += (s, e) => { if (_model.SecondsToClose <= 1) { activeWindow.Close(); } else { _model.SecondsToClose--; } }; }