/// <summary> /// Handles the OnBackButtonClicked event of the MembershipKeyboard control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="eventArgs">The <see cref="EventArgs" /> instance containing the event data.</param> private void MembershipKeyboard_OnBackButtonClicked(object sender, EventArgs eventArgs) { RaiseKeyEvent(MembershipTextBox, Key.Back, Keyboard.PrimaryDevice); MembershipTextBox.Focus(); }
/// <summary> /// Handles the OnTextButtonClicked event of the MembershipKeyboard control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="TextButtonClickedEventArgs" /> instance containing the event data.</param> protected void MembershipKeyboard_OnTextButtonClicked(object sender, TextButtonClickedEventArgs e) { SendInput(MembershipTextBox, e.Character); MembershipTextBox.Focus(); }
/// <summary> /// Handles the Loaded event of the Page control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param> private void Page_Loaded(object sender, RoutedEventArgs e) { MembershipTextBox.Focus(); }