private IntPtr Hook(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            var window = GetWindow(this);

            if (window != null)
            {
                MessageTouchDevice.WndProc(window, msg, wParam, lParam, ref handled);
            }
            return(IntPtr.Zero);
        }
 protected override IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
 {
     MessageTouchDevice.WndProc(Window.GetWindow(this), msg, wParam, lParam, ref handled);
     return(base.WndProc(hwnd, msg, wParam, lParam, ref handled));
 }