要使WPF窗口覆盖UWP全屏窗口,可以按照以下步骤进行操作:
this.WindowStyle = WindowStyle.None;
this.WindowState = WindowState.Maximized;
this.Topmost = true;
<Window.Background>
<SolidColorBrush Color="Transparent"/>
</Window.Background>
this.Left = SystemParameters.VirtualScreenLeft;
this.Top = SystemParameters.VirtualScreenTop;
this.Width = SystemParameters.VirtualScreenWidth;
this.Height = SystemParameters.VirtualScreenHeight;
this.Show();
通过以上步骤,你的WPF窗口将会覆盖在UWP全屏窗口上方,并且填满整个屏幕。这样可以实现在WPF窗口中显示内容,同时覆盖UWP全屏窗口的效果。
推荐的腾讯云相关产品:腾讯云云服务器(CVM)和腾讯云容器服务(TKE)。
领取专属 10元无门槛券
手把手带您无忧上云