Kinect区域内ScrollViewer的问题 [英] Problems with ScrollViewer inside a Kinect Region

查看:95
本文介绍了Kinect区域内ScrollViewer的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用KinectRegion构建WPF应用程序。我在KinectRegion中有一个Scrollviewer,使用HandPointer滚动工作正常。我想知道滚动交互何时结束(用户打开他/她的手)。我应该使用哪个活动? I
认为它是ManipulationCompleted(和ManipulationStart用于关闭手)但它没有被解雇。

I'm building a WPF application using KinectRegion. I have a Scrollviewer inside the KinectRegion, scrolling with HandPointer works fine. I want to know when the scrolling interaction has finished (the user open his/her hand). Which event should I use? I thought it was ManipulationCompleted (and ManipulationStart for closing the hand) but it is not being fired.

我还注意到滚动查看器继续滚动,即使用户的手是移动到"屏幕区域"之外,我该如何禁用此行为? (所以滚动停在屏幕的边框)。

I also noted that the scrollviewer goes on scrolling even when the user's hand is moving outside the "screen zone", how can i disable this behavior? (so scrolling stops in the border of the screen).

谢谢。

推荐答案

有关使用特定控件的提示,请参阅控件基础示例。您到底想要做什么,因为控件将在内部处理所有操作。如果您需要较低级别的访问权限,则需要处理
较低级别的互动。 

See the controls basics sample for tips on using particular controls. What exactly are you trying to do since the control will handle all the manipulation internally. If you need lower level access, you will need to handle the lower level of the interactions. 

        <ScrollViewer Grid.Row="1" 
                    HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
                    k:KinectRegion.IsHorizontalRailEnabled="true" k:KinectRegion.IsVerticalRailEnabled="true"
                    k:KinectRegion.ZoomMode="Enabled">
            <Image Stretch="None" Grid.Column="0" Grid.Row="0" Source="/Images/beach.jpg" />
        </ScrollViewer>


这篇关于Kinect区域内ScrollViewer的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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