I'm working on Windows 8 and I want to try to disable the default edge gesture behaviors when my desktop app is fullscreen.
I've found this page which explains how to do it in C++.
My app is a WPF/C# application and I've found the Windows Code API Pack and the SetWindowProperty method to to the job.
Problem
I don't know how to pass the right parameter, which is a boolean :
PropertyKey key = new PropertyKey("32CE38B2-2C9A-41B1-9BC5-B3784394AA44", 2); WindowProperties.SetWindowProperty(this, key, "true");
PropertyKey key = new PropertyKey("32CE38B2-2C9A-41B1-9BC5-B3784394AA44", 2); WindowProperties.SetWindowProperty(this, key, "-1");
PropertyKey key = new PropertyKey("32CE38B2-2C9A-41B1-9BC5-B3784394AA44", 2); WindowProperties.SetWindowProperty(this, key, "VARIANT_TRUE");
As you can see, the parameter has to be a string but no one works.
If someone has an idea, thanks in advance !