wpf WindowsFormHost
大家好 正在使用 WPF 应用程序 我需要在我的应用程序中使用 MS 报告,因此我使用了 WindowsFormsHost 但问题是 WindowsFormsHost 无法处理触摸事件 如何在 WindowsFormsHost 中处理我的报告中的触摸事件 请我需要你的帮助
谢谢
Hi Every Body
Am Working With WPF Application
I Needed To Use MS Reports In My Application So I Used WindowsFormsHost
But The Problem Is That The WindowsFormsHost Can'nt Handle Touch Events
How I Can Handle Touch Events In My Report In WindowsFormsHost
Please I Need Ur Help
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题与多点触控一样古老。只要控件不支持,你就得欺骗。是否有效取决于控制。 BING 地图控件已成功制作为响应触摸。我认为有一个触摸启用层可以接受触摸并将其转换为窗口消息。这可能会造成真正的混乱。
请记住,即使您可以获得这样的解决方案,您也不会获得触摸优化的控制。该控件可能会产生糟糕、糟糕用户体验...
如果全部都是关于显示数据,我在我的帖子中描述了一种可能的替代实现:答案< a href="https://stackoverflow.com/questions/5021545/how-to-display-a-pdf-document-in-a-microsoft-surface-application/5063960#5063960">如何在Microsoft Surface 应用程序?
The question is as old as multi touch. As long as the control doesn't support it, you have to trick. Whether that's going to work depends on the control. The BING map control was successfully made to respond to touches. I think there's a touch enabled layer that takes touches and translates them to window messages. This can get a real mess.
Please keep in mind, that even if you can get such a solution to work, you won't get a touch optimized control. The control will probably have a bad, bad user experience...
If it's all about displaying data, I've described a possible alternative implementation on my post: for answer How to display a PDF document in a Microsoft Surface application?