C# Windows 通用 10 TopMost 窗口 [英] C# Windows Universal 10 TopMost Window

查看:25
本文介绍了C# Windows 通用 10 TopMost 窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 Windows 10 通用应用 (UWP).

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

是否可以将应用程序设置为 TopMost(始终在顶部)?像 WPFWinforms(TopMost 属性).

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

谢谢

推荐答案

在支持此类功能的 Creators Update 中添加了一个称为 CompactOverlay 模式的功能.当应用程序窗口进入紧凑覆盖模式时,它将显示在其他窗口上方,因此不会被阻止.这使用户即使在处理其他事情时也能继续关注您的应用程序的内容.利用此功能的典型应用示例是媒体播放器或视频聊天应用.

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/

这篇关于C# Windows 通用 10 TopMost 窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆