public void UnregisterTouchWindow()
{
try
{
if (filter != null)
{
filter.Dispose();
filter = null;
}
if (!control.IsDisposed && !Win32.UnregisterTouchWindow(control.Handle))
{
Debug.WriteLine("ERROR: Could not unregister window for multi-touch");
}
}
catch (Exception)
{
Debug.WriteLine("ERROR: Touch APIs aren't supported.");
}
}