private void CloseScreen(bool checkState) { var screenLifecycle = ScreenHelper.GetChild <ScreenLifecycle>(_screen); var ops = new ScreenLifecycleOperations(_aggregator, _screen); if (!checkState || screenLifecycle.CanDeactivate) { ops.Deactivate(); } if (!checkState || screenLifecycle.CanClose) { ops.Close(); } }