MainWindow.xaml


<Window xmlns:WPF="clr-namespace:DotNetBrowser.WPF;assembly=DotNetBrowser"  x:Class="WPF.GestureEventSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WPF.GestureEventSample"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="35*"/>
            <RowDefinition Height="229*"/>
        </Grid.RowDefinitions>

        <WPF:WPFBrowserView Name="browserView" Grid.Row="1"/>
        <Label x:Name="label" Grid.Row="0"/>
    </Grid>
</Window>

MainWindow.xaml.cs


using DotNetBrowser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPF.GestureEventSample
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            label.Content = "Hold Ctrl key and make two finger tap on the screen.";
            label.HorizontalContentAlignment = HorizontalAlignment.Center;

            browserView.GestureEvent += Browser_GestureEvent;

            browserView.Browser.LoadURL("https://www.teamdev.com/dotnetbrowser");
        }

        private void Browser_GestureEvent(object sender, DotNetBrowser.Events.GestureEventArgs e)
        {
            if (e.IsCtrlDown && e.GestureType == GestureType.TWO_FINGER_TAP)
            {
                MessageBox.Show("Success!");
            }
        }
    }
}