public void FocusManagerGetCurrentFocusView() { tlog.Debug(tag, $"FocusManagerGetCurrentFocusView START"); FocusManager a1 = FocusManager.Instance; View v1 = a1.GetCurrentFocusView(); tlog.Debug(tag, $"FocusManagerGetCurrentFocusView END (OK)"); Assert.Pass("FocusManagerGetCurrentFocusView"); }
private bool OnKeyEvent(object sender, View.KeyEventArgs e) { if ((!mFolded) && (e.Key.State == Key.StateType.Down)) { if (e.Key.KeyPressedName == "Escape" || e.Key.KeyPressedName == "BackSpace") { FocusManager focusManager = FocusManager.Instance; if (focusManager.GetCurrentFocusView() == mContactCard) { // Our contact - card is set to receive focus and we're unfolded so animate back to the folded state Animate(); } } } return(false); }