我正在实施Windows 8.1。应用程序,我想展示一些边缘手势的菜单。在顶边手势菜单A和底部手势菜单B.我发现这可能是不可能的。Windows 8.1应用程序和Top vs. Bottom边缘手势
在下面的代码
void EdgeGesture_Completed(object sender, EdgeGestureEventArgs e)
{
if (e.Kind == EdgeGestureKind.Touch)
{
Scenario1OutputText.Text = "Invoked with touch.";
}
else if (e.Kind == EdgeGestureKind.Keyboard)
{
Scenario1OutputText.Text = "Invoked with keyboard.";
}
else if (e.Kind == EdgeGestureKind.Mouse)
{
Scenario1OutputText.Text = "Invoked with right-click.";
}
}
我们有可能的,如果顶部/底部的菜单是通过触摸屏,键盘或点击鼠标右键,但EdgeGestureEventArgs调用不含任何其他信息来识别。
你有什么想法如何识别边缘手势?我的意思是,如果它是顶部或底部边缘手势。
您可以在edgie事件之后看到/处理其他触摸事件吗?也许你可以忽略这个事件,当它接触到它时,但是处理它之后的第一个触摸事件可能会更接近顶部或底部边缘? – 2014-11-05 22:13:46