myHtmlString = $"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Disable Context Menu</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
background-color: #f5f5f5;
}
</style>
</head>
<body>
<p>
This is a test paragraph. Try to long-press on this text (on mobile) or right-click (on desktop), and the context menu will not appear.
</p>
<script>
// Disable right-click and long-press context menu
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
// Optional: Disable long-press callout on iOS Safari
document.documentElement.style.webkitTouchCallout = 'none';
</script>
</body>
</html>
"$
WebView1.LoadHtml(myHtmlString)