/// <summary> /// This sets the "active" view /// </summary> /// <param name="vm"></param> private void SetActiveView(BioViewModel vm) { if (_activeView != vm) { if (_activeView != null) { _activeView.OnDeactivate(); } _activeView = vm; if (_activeView != null) { _activeView.OnActivate(); } } }