我怎样才能使Windows 8地铁的ScrollViewer响应到鼠标滚轮? [英] How can I make a Windows 8 Metro scrollviewer respond to mousewheel?
问题描述
我目前正在写使用地铁和C#为Windows 8的应用程序。在我的应用我使用的ScrollViewer和GridView的组合来展示我的数据。我的问题是但是,我怎么可以把它带滚动鼠标滚轮?
I'm currently writing an app for Windows 8 using Metro and C#. In my app I use a combination of scrollviewer and gridview to show my data. My problem is however, how can I make it scrollable with a mouse wheel?
在我的搜索,我发现位于System.Windows.Input MouseWheelParameters,但是当我尝试使用get_pageTranslation,它提供了一个错误,说明我不能明确地使用GET方法。
In my searching I found MouseWheelParameters located in System.Windows.Input, but when I try to use the get_pageTranslation, it gives an error stating I can't explicitly use the get method.
推荐答案
在get_pageTranslation其实是在 PageTranslation 关于MouseWheelParameters属性,你说访问:
The "get_pageTranslation" is actually the "PageTranslation" property on the MouseWheelParameters, you access it by saying:
wheelParameters.PageTranslation
这样的:
get_PageTranslation()
是实现PageTranslation属性的方法的名称,但它不是从C#或C ++应用程序访问。
is the name of the method which implements the PageTranslation property, but it is not accessible from C# or C++ applications.
这篇关于我怎样才能使Windows 8地铁的ScrollViewer响应到鼠标滚轮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!