AddHandler(UIElement.GotMouseCaptureEvent, new MouseEventHandler(OnGotMouseCapture), true);
void OnGotMouseCapture(object sender, MouseEventArgs e)
{
if (e.OriginalSource is TextBox)
{
// ...
}
}
Above is the handler for mouse . I want to like some thing this for GotTouchCaptureEvent to the textbox control.
AddHandler(TextBox.GotTouchCaptureEvent, new TouchEventArgs(passwordbox_GotTouchCapture), true);
this code generating error . Basically I want to "GotTouchCapture" event for all the text box of the application. If possible please guide.
or
what will be put after comma(,) at the position of cursor? Please see image.
thanks in advance