WPF Always On Top

后端 未结 6 1362
孤街浪徒
孤街浪徒 2020-11-30 00:10

Is it possible to make a window stay always on top even when other application is running on Fullscreen? I\'m using right now TopMost = true but when other appl

6条回答
  •  借酒劲吻你
    2020-11-30 00:51

    If you want your application to stay on top of EVERYTHING (including the start interface in Windows 8, previously known as "Metro"), then you can specify UiAccess="True" in your manifest file. This is typically used by accessibility applications such as onscreen keyboards.

    From memory you need to do 3 things;

    1. Request UiAccess="True"
    2. Sign your application's exe file with a recognised certificate. I obtained a free code signing certificate from Certum as my project is Open Source.
    3. Install your application to a "Trusted Location", which in my case was the program files directory. There is no official definition of "Trusted Location" that I could find.

提交回复
热议问题