Multitouch on WPF Page

May 6, 2010 at 7:52 AM

Hi,

Is it possible to to have a Page with multitouch?

I added a class Page.cs to the Multitouch.Framework.WPF Project:

using System;
using System.ComponentModel;
using System.Windows.Controls;
using Multitouch.Framework.WPF.Input;

namespace Multitouch.Framework.WPF.Controls
{

    public class Page : Window
    {
        MultitouchInputProvider inputProvider;

		static Page()
		{
			
		}

        protected override void OnSourceInitialized(EventArgs e)
        {
            inputProvider = new MultitouchInputProvider(System.Windows.PresentationSource.FromVisual(this));
            base.OnSourceInitialized(e);
        }

        protected override void OnClosing(CancelEventArgs e)
        {
            if (inputProvider != null)
            {
                inputProvider.Dispose();
                inputProvider = null;
            }
            base.OnClosing(e);
        }
    }
}

 

Now the thing is this, when i add the Touchable Panel and add an element, That element moves and rotates only when the mouse button is down than it snaps to it's original position!

 

Any Help would be reallllly Appreciated as I'm working on a School Project with a Navigation Application with Pages, and Windows cannot be called from pages without loosing the page's focus!!

Hope that this might also be another addition to the project if it works!

 

Thanks