我怎样才能使触摸和触摸墨水中的鼠标墨水? [英] How can I diable touch & mouse ink in inkcanvas?

查看:76
本文介绍了我怎样才能使触摸和触摸墨水中的鼠标墨水?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 我只想在墨水画布中使用钢笔墨水.

 I just want to use pen ink in inkcanvas.

有可能吗?如果是这样,请让我知道解决方案:)

Is it possible? If it so, please let me know the solution :)

推荐答案

您可以处理PreviewMouseDown事件以禁用鼠标手势:

You could handle the PreviewMouseDown event to disable mouse gestures:

private void ink_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
        }

当您以相同的方式处理PreviewTouchDown事件时,触摸手势似乎并未被禁用.请参考以下主题以获取更多信息:

Touch gestures don't seem to be disabled when you handle the PreviewTouchDown event the same way though. Please refer to the following thread for more information:

如何禁用触摸和墨水中的鼠标墨水? 希望有帮助.

请记住,通过将有用的帖子标记为答案来关闭话题,然后在遇到新问题时开始新话题.请不要在同一线程中问几个问题.

Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.


这篇关于我怎样才能使触摸和触摸墨水中的鼠标墨水?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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