我怎样才能使触摸和触摸墨水中的鼠标墨水? [英] How can I diable touch & mouse ink in inkcanvas?
问题描述
我只想在墨水画布中使用钢笔墨水.
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屋!