TouchExtensions sample

Sep 26, 2011 at 10:55 AM


This is very good stuff! Just wanted to let you know that no demonstration of TouchExtensions.TryEnableNativeTouch() is included in MainWindow.xaml.cs (no SurfaceWindow1 in that project)... :)

TouchExtensions contains methods that are related to Windows Touch events. Use the SurfaceEnvironmentHelper.TrySuppressSurfaceInput() in conjunction with TouchExtensions.TryEnableNativeTouch() to optimize WPF touch input performance on non-Surface devices. How to do this is demonstrated in the SurfaceSDKOptimizationDemo project (see App.xaml.cs and SurfaceWindow1.xaml.cs).

Mar 11, 2012 at 2:54 PM
Edited Mar 11, 2012 at 2:55 PM

Hello entity!

I'm happy you like our project!

I've now updated the Home page to be in sync with the latest source. I introduced OptimizedSurfaceWindow after editing the Home page last time. This allows for a smooth integration with WPF since you only need to make the base class of your window an OptimizedSurfaceWindow instead of SurfaceWindow. OptimizedSurfaceWindow will automatically call TouchExtensions.TryEnableNativeTouch() if Surface Input is suppressed.

Thank you for your feedback!