WP7 Pivot 控件和 WebBrowser 控件 [英] WP7 Pivot control and a WebBrowser control

查看:21
本文介绍了WP7 Pivot 控件和 WebBrowser 控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Pivot,其中包含一个几乎占据整个页面的 WebBrowser 控件(当然是 Pivot 标题的一部分).

I have a Pivot which contains a WebBrowser control that practically takes up the whole page (appart from the Pivot header of course).

我想弄清楚如何让 WebBrowser 控件允许用户向左/向右滑动以激活 Pivot 控件.目前它只是向左/向右平移 WebBrowser 控件

I would like to figure out how to make the WebBrowser control allow for the user to swipe left/right to activate the Pivot control. Currently it just pans the WebBrowser control left/right

这能做到吗??

谢谢

推荐答案

这类似于将 Map 放入 Pivot - 此处讨论 - http://mine.tuxfamily.org/?p=111 - 在很多问题中已经提到 - https://stackoverflow.com/search?q=mine.tuxfamily.org

This is similar to putting a Map inside a Pivot - which is discussed here - http://mine.tuxfamily.org/?p=111 - already mentioned in quite a few questions - https://stackoverflow.com/search?q=mine.tuxfamily.org

总的来说,建议似乎是基于可用性的:

In general, the advice seems to be usability based:

  • 尽量避免将使用 Touch 的控件放在 PivotItem 的内部

顺便说一句,如果您只是将 Web 浏览器控件用于极少量的静态 html(因此您根本不需要任何滚动),那么您可以从 Web 浏览器中删除 HitTesting.

As an aside, if you are just using the web browser control for a very small amount of static html (so you don't need any scrolling at all) then you could just remove HitTesting from the web browser.

这篇关于WP7 Pivot 控件和 WebBrowser 控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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