开发者

User focus in multitouch environment

开发者 https://www.devze.com 2023-04-02 00:33 出处:网络
I am trying to create a multitouch application. I have the hardware which will allow me to do this. On the software side I want to be able to have WPF textboxes, WPF web browsers, multiple focuses, mu

I am trying to create a multitouch application. I have the hardware which will allow me to do this. On the software side I want to be able to have WPF textboxes, WPF web browsers, multiple focuses, multiple keyboards and multiple users at the same time.

From what I've seen, I can't be focused on two controls at the same time.

What is the M开发者_Go百科icrosoft MultiTouch approach for this kind of job ?


The OS limitations are what they are (and don't appear to change in Win8): only one hWnd at a time can have focus.

Since you are using WPF though, everything within your application (with the exception of the WebBrowser control ActiveX widgets you may be using) is rendered within one big hWnd.

WPF 4 introduced native support for multitouch, including multi-touch capture. The APIs for this are many but pretty intuitive so I'll just say this... go to http://msdn.microsoft.com/en-us/library/ms590078.aspx and search within the page for all of the members with "Touch" in their name.

The catch however is that the controls shipping with WPF 4 don't work with the touch input events... you'll only be able to interact with one of those controls at a time. To take advantage of the multi-touch capture APIs, you'll have to create controls that are designed with it in mind. Fortunately, the Surface team at Microsoft has you covered on that... the "Surface 2.0 SDK" includes a suite of controls (usable on any Win7 machine, not just for Surface) that were built with this stuff in mind.


To create application with MultiTouch UI, use MultiTouch Framework in .Net

Go to http://multitouchvista.codeplex.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消