locked
How to forbid the edge gesture???? RRS feed

  • Question

  • I'm working on a software to test touchscreen in windows 8 system,but when I touch and move from the edge,start menu appeared or the program switched,my software can't catch the point just entered,so I must forbid the edge gesture,in china we call outstanding professional Dashen,so Dashen,can you tell me how to forbid it???
    Tuesday, July 23, 2013 2:18 AM

Answers

  • You cannot override the edge gesture from a Windows Store app.

    For testing purposes, you can run your desktop app in a custom Desktop. The edge gestures apply only to the default desktop. See Desktops for documentation on how to do this.

    --Rob

    • Marked as answer by chenchaohcao Wednesday, July 24, 2013 11:31 AM
    Tuesday, July 23, 2013 2:39 AM

All replies

  • You cannot override the edge gesture from a Windows Store app.

    For testing purposes, you can run your desktop app in a custom Desktop. The edge gestures apply only to the default desktop. See Desktops for documentation on how to do this.

    --Rob

    • Marked as answer by chenchaohcao Wednesday, July 24, 2013 11:31 AM
    Tuesday, July 23, 2013 2:39 AM
  • If you have a desktop app you can set the System.EdgeGesture.DisableTouchWhenFullscreen property on the full screen window.


    Visual C++ MVP

    Tuesday, July 23, 2013 3:44 AM
  • Thank you so much for your reply,but I don't know how to use "System.EdgeGesture.DisableTouchWhenFullscreen",my program is writen by C#,and I can't find where is it!I'll very appriciated it if you can give me some examples!
    Wednesday, July 24, 2013 7:04 AM
  • Dashen Rob,I still can't find any interface to disable edgegesture even in Desktop App,my program is writen by C# and will running in windows RT system,I'll really appreciated it if you can give me more help!!Thank you so much!!
    Wednesday, July 24, 2013 8:13 AM
  • A sample can be found at http://msdn.microsoft.com/en-us/library/windows/desktop/jj553591(v=vs.85).aspx. You need some pinvoke work to port the code to c#


    Visual C++ MVP

    Wednesday, July 24, 2013 10:40 AM
  • It's some difficult for me,I can't find any interface in C# to make it,and i don't know how to port the code to C#!!!

    Wednesday, July 24, 2013 10:46 AM
  • http://lmgtfy.com/?q=IPropertyStore+cs

    http://lmgtfy.com/?q=pinvoke+generator



    Visual C++ MVP

    Wednesday, July 24, 2013 5:20 PM
  • This is still not working for us at all when we have a Desktop Application running in full screen and the monitor is a touch screen monitor.  The 'mouse' gesture is disabled, but using a 'finger' gesture on the touch screen still allows the charms.  Disabling the gesture from the access control panel does not disable the finger gesture either on the touch screen.

    Change PC Settings -> PC & Devices -> Corners & Edges -> Corner Navigation -> Show the Charms -> Off : still does not work - the charms still appear.

    Thursday, August 14, 2014 6:32 PM