I tried this event handlers on my textbox:
private void TextBox_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
{
//do this
}
I also tried LayoutUpdated
, SelectionChanged
, PointerEntered
, PointerReleased
. None of them execute codes as soon as I click the box.
This is because of the Textbox other messages prevents to trigger the Tapped event before it gets fired. Add the below code in the constructor of the page where you use Textbox. Tap event will be triggered.
textBox.AddHandler(TappedEvent, new TappedEventHandler(textBox_Tapped_1), true);
Please refer this link : TextBox Tapped event not being called in Windows 8 RC
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With