private void HidePopupWhenWindowDeactivated() { var workspace = this.ChildOfType<WorkspaceView>(); if(workspace != null) workspace.HidePopUp(); }