Search code examples
c#uwpwin-universal-app

C# Windows Universal 10 TopMost Window


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

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

Thanks


Solution

  • 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/