Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to add GotTouchCaptureEvent for all textbox

$
0
0

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



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>