Paint.BrushSizeSelector.HandleTouch C# (CSharp) Méthode

HandleTouch() protected méthode

Handle the user interaction for a particular touch/gesture type and position
protected HandleTouch ( ITouchPoint touchPosition ) : void
touchPosition ITouchPoint /// Touch position and type of gesture ///
Résultat void
        protected override void HandleTouch(ITouchPoint touchPosition)
        {
            if (touchPosition.Position.Y >= this.gaugeYPosition)
            {
                // We are only interested in the y-position - we know the touch is within this control so anywhere on the x axis is good enough
                // This ensures an improved user experience because the user can click just to the side of the gauge and now it will count as a hit.
                this.brushSizeGauge.HandleTouch(touchPosition.Position.Y);
            }
        }