// If two finger long press is done, create a windowView. // then, Register a gesture on the windowView to do a resize or move. private bool OnTick(object o, Timer.TickEventArgs e) { windowView = new View() { WidthResizePolicy = ResizePolicyType.FillToParent, HeightResizePolicy = ResizePolicyType.FillToParent, BackgroundColor = new Color(1, 1, 1, 0.5f), }; windowView.TouchEvent += (s, e) => { return(true); }; BorderWindow.Add(windowView); winTapGestureDetector = new TapGestureDetector(); winTapGestureDetector.Attach(windowView); winTapGestureDetector.SetMaximumTapsRequired(3); winTapGestureDetector.Detected += OnWinTapGestureDetected; winPanGestureDetector = new PanGestureDetector(); winPanGestureDetector.Attach(windowView); winPanGestureDetector.Detected += OnWinPanGestureDetected; BorderWindow.InterceptTouchEvent -= OnWinInterceptedTouch; isWinGestures = true; return(false); }