WinForms, WPF or OffScreen?@ccnucheng Does the Touch Screen work when using the native WinForms implementation? You can test it using https://github.com/cefsharp/CefSharp.MinimalExample
@amaitland
_- Touch Screen is work when using the native WinForms implementation._
_- Touch Screen is work when using WindowsFormsHost in WPF with Win10_
Two things to try
app.manifest. https://github.com/cefsharp/CefSharp.MinimalExample/blob/master/CefSharp.MinimalExample.Wpf/app.manifest#L37UI thread, this often fixes a lot of random problems see https://github.com/cefsharp/CefSharp.MinimalExample/commit/15c4a7a7845452c190f6e44c5b7db41ccb504601The fact it works in Win 10 likely means there isn't a whole lot that can be done. CefSharp is just a wrapper around CEF after all.
@amaitland
The CefSettings parameter is already the same as in the example
I find that unlikely, the browser doesn't function without some sort of message loop processing. Check again.
@amaitland
I find that unlikely, the browser doesn't function without some sort of message loop processing. Check again.
Although still can not touch, but still thank you very mach!
So you've got the message loop running on the dispatcher? Have you tested on different hardware with Windows 7?
Yes,I addCef.DoMessageLoopWork() in window鈥榮 Loaded event,and use DispatcherTimer execute it,and test on defferent machine with windows 7!It's still can't touch
You can try CefGlue or ChromiumFx, see if you have better luck with a different framework.
Adding "touch-events=enabled" to command line arguments, when starting CEF, fixed simillar issue I had.
@szymonmalok
Yes,I have added the parameters ,but still can not touch the scrren!
We have the same problem. Hosting the WPF Control in a WindowsFormsHost but Touch Events dont work on Windows 7. On Windows 8 or 10 , there is no problem.
@softwaretirol Did you solve it?
No - we still have the problem.

Touching Event is initiated, but does not work as expected, If you happen to click on it so 50 times, sometimes an Event is working, but It's random.
Has anyone solved this problem?
OK! I solved it.
How did you solved it?
@mortalV
@softwaretirol
System.IntPtr hWnd = newSystem.Windows.Interop.WindowInteropHelper(this).Handle;WmTouchDevice.MessageTouchDevice.RegisterTouchWindow(hWnd);Add the CustomControl(WPF) in your project,and inherited from WindowsformsHost
```c#
public class CefWindowsFormsHost : WindowsFormsHost
{
static CefWindowsFormsHost()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CefWindowsFormsHost), new FrameworkPropertyMetadata(typeof(CefWindowsFormsHost)));
}
protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
WmTouchDevice.MessageTouchDevice.WndProc(System.Windows.Window.GetWindow(this), msg, wParam, lParam, ref handled);
return base.WndProc(hwnd, msg, wParam, lParam, ref handled);
}
}
```
Great, sounds like there is a valid workaround 馃憤 Closing
@ccnucheng You are a god amongst men. Great job discovering the fix, and amazing community dedication for sharing it in such detail.
Maybe you can use the WPF control. It fix in https://github.com/cefsharp/CefSharp/pull/2745
Most helpful comment
@mortalV
@softwaretirol
System.IntPtr hWnd = newSystem.Windows.Interop.WindowInteropHelper(this).Handle;WmTouchDevice.MessageTouchDevice.RegisterTouchWindow(hWnd);Add the CustomControl(WPF) in your project,and inherited from WindowsformsHost
```c#
public class CefWindowsFormsHost : WindowsFormsHost
{
static CefWindowsFormsHost()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(CefWindowsFormsHost), new FrameworkPropertyMetadata(typeof(CefWindowsFormsHost)));
}
protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
{
WmTouchDevice.MessageTouchDevice.WndProc(System.Windows.Window.GetWindow(this), msg, wParam, lParam, ref handled);
return base.WndProc(hwnd, msg, wParam, lParam, ref handled);
}
}
```