public void InputEntry_Unfocus() { Device.BeginInvokeOnMainThread(() => { InputEntry.Unfocus(); }); }
public void InputEntry_Completed(object sender, EventArgs e) { if (viewModel.InputText.Length > 0 || App.InputEmptyAllowed) { if (!App.FinishInputSet) // Xamarin Forms bug workaround ??? { App.FinishInputSet = true; if (viewModel.InputText.Length == 0 && App.InputEmptyVal != null) { SetInputTextNoEvents(App.InputEmptyVal); } Device.BeginInvokeOnMainThread(() => { if (!App.SettingsViewModel.KeepKeyboardVisible) { InputEntry.Unfocus(); } App.FinishInput.Set(); }); } } else // never reached, but just in case { Device.StartTimer(new TimeSpan(0, 0, 0, 0, 250), () => { InputEntry.Focus(); return(false); }); } }
protected void BrowsePluginLauncherPage_SizeChanged(object sender, EventArgs e) { Device.BeginInvokeOnMainThread(() => { InputEntry.Unfocus(); }); RedrawPluginLauncherPageControls(); ScrollToBottomOfPluginScrollView(); }