/// <summary>
        /// Sets a value which determines if Pan and Flick gestures are automatically handled in the ScrollableControl.
        /// </summary>
        /// <param name="control">The ScrollableControl</param>
        /// <param name="value">true to enable automatic gestures, false to disable.</param>
        /// <remarks>
        /// <list type="table"><listheader><term>Requirements</term><description></description></listheader>
        /// <item><term>Windows Mobile</term><description>Windows Mobile 6.1 and later</description></item>
        /// <item><term>Windows Embedded</term><description>Windows Embedded 6.0</description></item>
        /// </list>
        /// </remarks>
        public static void SetGesturesEnabled(this ScrollableControl control, bool value)
        {
            if ((SystemSettingsInTheHand.Platform != WinCEPlatform.Smartphone) && InTheHand.NativeMethods.IsMobile6 && System.Environment.OSVersion.Version.Major < 7)
            {
                try
                {
                    WAGINFO wi = new WAGINFO();
                    wi.cbSize  = Marshal.SizeOf(wi);
                    wi.dwFlags = (value ? WAGIF.VSCROLLABLE | WAGIF.HSCROLLABLE : 0) | WAGIF.OWNERANIMATE;

                    bool success = NativeMethods.SetWindowAutoGesture(control.Handle, ref wi);
                }
                catch
                {
                }
            }
        }
 internal static extern bool SetWindowAutoGesture(IntPtr hWnd, ref WAGINFO lpAutoGestureInfo);