public bool HandleTouchBegan( CGPoint point ) { if( Note != null ) { // if the note consumed touches Began, don't allow the UIScroll View to scroll. if( Note.TouchesBegan( point.ToPointF( ) ) == true ) { UIScrollView.ScrollEnabled = false; return true; } } return false; }
public bool HitTest( CGPoint point ) { if( Note != null ) { AnimateTutorialScreen( false ); // Base OS controls need to know whether to process & consume // input or pass it up to the higher level (us.) // We decide that based on whether the HitTest intersects any of our controls. // By returning true, it can know "Yes, this hits something we need to know about" // and it will result in us receiving TouchBegan if( Note.HitTest( point.ToPointF( ) ) == true ) { return true; } } return false; }