Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:25:48+00:00 2026-06-05T04:25:48+00:00

How do i detect if the textbox has been tapped. User will normally tap

  • 0

How do i detect if the textbox has been tapped. User will normally tap on the textbox before they can type something. I tried textbox.tapped = true , .selected , it doesnt work for WinRT/Windows 8 metro application. Can someone help me out? THanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:25:52+00:00Added an answer on June 5, 2026 at 4:25 am

    It cannot be simpler. As dotNetNinja says you have to sign up for the Tapped event. Example follows, notice TextBox_Tapped method in the xaml code and in the cs code behind.

    .xaml code:

    <Page x:Class="TappedEventExample.BlankPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:TappedEventExample"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d">
        <Grid Background="{StaticResource ApplicationPageBackgroundBrush}">
            <TextBox
                x:Name="MyTextBox"
                HorizontalAlignment="Left"
                Margin="100,100,0,0"
                TextWrapping="Wrap"
                Text="My TextBox"
                VerticalAlignment="Top"
                Height="100" Width="200"
                Tapped="TextBox_Tapped"/>
        </Grid>
    </Page>
    

    .xaml.cs code:

    public sealed partial class BlankPage : Page
    {
        public BlankPage()
        {
            this.InitializeComponent();
        }
    
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }
    
        private void TextBox_Tapped(object sender, TappedRoutedEventArgs e)
        {
            this.MyTextBox.Text = "I was tapped.";
        }
    }
    

    That’s all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Simple question: How do I detect that the onscreen keyboard has been displayed on
I know this has been asked before but I have looked at every answer
I have a textbox and I need a script to detect when a user
I have something like: <input type=textbox id=partNumber onChange=validatePart(this);> <input type=textbox id=quantity onfocus=saveOldQuantity(this);> The onChange
I have a textbox that has filter as you type results below it. I
To detect rotation of the mouse wheel in .NET/WinForms, I can override OnMouseWheel .
How can I detect if a system supports hardware virtualization via code? (Preferably in
How can I detect whether another process is running as 32/64 bit in Windows?
Is there a way to detect the FlowDirection in TextBox automatically based on the
I can't figure this out. Some apps have an EditText (textbox) with the help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.