使用ScrollViewer缩放和滚动? [英] Zooming and Scrolling with a ScrollViewer?

查看:59
本文介绍了使用ScrollViewer缩放和滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用ScrollViewer启用缩放(光学)和水平滚动?

How can I enable both zooming (optical) and horizontal scrolling with the ScrollViewer?

我有一个GridView。  我已将GridView放置在ScrollViewer中,以便用户可以使用Ctrl +鼠标滚轮缩小/放大。  但我还想保留默认的水平滚动行为......就像Windows开始屏幕一样。  但是,使用ScrollViewer的
,我无法再横向滚动GridView中的项目。  我错过了什么?谢谢。

I have a GridView.  I have placed that GridView in a ScrollViewer so that the user can use Ctrl+mouse wheel to zoom out/in.  But I also want to retain the default horizontal scrolling behavior...just like the Windows start screen.  However, with the ScrollViewer in place, I can no longer scroll horizontally through the items in the GridView.  What am I missing? Thanks.

推荐答案

ScroolViewer只是一个启用可滚动区域的控件,没有 一个ZoomOut / In。您可以使用SemanticZoom控件启用放大/缩小效果。更多信息:
http://msdn.microsoft.com/en- us / library / windows / apps / hh465492.aspx

ScroolViewer is just a control to enable a scrollable area, not a ZoomOut/In. You can use the SemanticZoom control to enable the zoom in/out effect. More info here: http://msdn.microsoft.com/en-us/library/windows/apps/hh465492.aspx

示例:
http://code.msdn.microsoft.com/windowsapps/GroupedGridView-77c59e8e


这篇关于使用ScrollViewer缩放和滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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