0

we have a desktop application written in C# and touch gestures in full screen mode should not work. I've reviewed a few sample code, unfortunately I did not succeed. It needs to be compatible with Windows 10 and Windows 8. Is there any solution?

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

0

From your description, it seems that you want to disable the Windows Edge-Swipe using C# under the full screen mode, right? If that is the case, please refer to the following steps to disable the Edge_Swipe.

To detect whether application in Full screen mode.

If you Desktop application is Universal apps, you could refer to this article, then using the ApplicationView.IsFullScreen Property or ApplicationView.IsFullScreenMode Property to check whether it is in Full screen mode.

Besides, you could check this article and Detecting fullscreen mode.

There are two method to enable/disable the Windows Edge-Swipe: Group Policy and Registry.

To disable the Windows Edge-Swipe via Group Policy.

we could navigate to Computer Configuration>Administrative Templates>Windows Components>Edge UI for system-wide, or User Configuration>Administrative Templates>Windows Components>Edge UI for current user. Then, Edit and Disable "Allow edge swipe". More information, please click Windows 10 Edge-Swipe,

To disable the Windows edge-swipe via the Registry.

We could open registry editor, and navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\EdgeUI", then, set the AllowEdgeSwipe value ((delete) = Enable; 0 = Disable). More detail information, please check How to disable touchscreen edge swipes in Windows 10

To modify the Registry, we could use the Registry.SetValue Method. To change the Group Policy, please refer Changing Group Policy by C# coding or using the IGroupPolicyObject

Zhi Lv
  • 18,845
  • 1
  • 19
  • 30
  • thank you for your suggestion As far as I know, you can only activate this change by restarting the computer or logging out of the user account and logging in again. a solution is needed without these actions. – Burak Kırca Nov 18 '19 at 19:37