C# Windows Universal 10 TopMost Window

后端 未结 3 989
一个人的身影
一个人的身影 2021-01-19 07:00

I\'m developing a Windows 10 Universal app (UWP).

Is it possible to set application as TopMost (always on top)? Like WPF or Winforms<

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-19 07:40

    A feature called CompactOverlay mode was added in the Creators Update that supports this type of functionality. When an app window enters compact overlay mode it’ll be shown above other windows so it won’t get blocked. This allows users to continue to keep an eye on your app's content even when they are working with something else. The canonical example of an app taking advantage of this feature is a media player or a video chat app.

    A blog post describing the feature can be found here

    https://blogs.msdn.microsoft.com/universal-windows-app-model/2017/02/11/compactoverlay-mode-aka-picture-in-picture/

提交回复
热议问题