I want to disable the context menu in my WPF System.Windows.Controls.WebBrowser. How would I do so?
I want to disable the context menu in my WPF System.Windows.Controls.WebBrowser. How would I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
WPF WebBrowser Control has many Touch events that you could capture and handle and potentially stop the ContextMenu from ever popping up. Or you could supply your own ContextMenu for the browser to use.
The preview events are lower down on the page and can be used to intercept events that would cause the context menu to pop-up.
OnPreviewTouchDown
OnPreviewTouchMove
OnPreviewTouchUp