Webview 始终在顶部(Metro 应用程序) [英] Webview always on top (Metro app)

查看:39
本文介绍了Webview 始终在顶部(Metro 应用程序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,只要您的屏幕上有 WebView,它就会成为 UI 的最顶层元素.有没有办法设置z-index?

I've noticed that whenever you have a WebView on your screen, it will be the top-most element of the UI. Is there a way to set a z-index?

推荐答案

没有办法设置 z-index 或任何类似的东西,WebView 总是在 XAML(空域"问题)之上.如果新内容完全隐藏 WebView 或使用 WebViewBrush 控件,则必须隐藏 Web 视图.

There is no way to set z-index or anything similar, WebView is always on top of the XAML ("Airspace" issue). You have to hide web view if new content completely hides WebView or use WebViewBrush control.

http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN2

http://blogs.msdn.com/b/priozersk/archive/2012/08/13/how-to-display-charms-on-a-top-of-the-webview.aspx

http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webviewbrush.aspx

这篇关于Webview 始终在顶部(Metro 应用程序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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