private void OnBackButtonClicked() { registrationWindow.Hide(onFinished: () => { registrationWindow.ResetInputFields(); var loginWindow = UserInterfaceContainer.Instance.Get <LoginWindow>().AssertNotNull(); loginWindow.Show(); }); }