问题描述
我正在使用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).
谢谢。
推荐答案
<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的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!