protected override void OnActivate() { base.OnActivate(); NotifyOfPropertyChange(() => CanShowWindow); NotifyOfPropertyChange(() => CanHideWindow); }