Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Containers/Form.cs
/// <summary>
/// Override this message to handle touch events internally.
/// </summary>
/// <param name="sender">Object sending the event</param>
/// <param name="point">Point on screen touch event is occurring</param>
/// <param name="handled">true if the event is handled. Set to true if handled.</param>
/// <remarks>
/// Finishes the from moving if touch down was on the form.
/// If not then it forwards the message to <see cref="Container.ActiveChild"/> or if null, to the child under point
/// </remarks>
Override this message to handle touch events internally.
Override this message to handle touch events internally .
protected override void TouchUpMessage(object sender, point point, ref bool handled)
      {
         if (_moving)
         {
            _moving = false;
            Render(true);
            return;
         }
         if (Children != null)
         {
            for (var i = Children.Length - 1; i >= 0; i--)
            {
               try
               {
                  if (Children[i].HitTest(point) && !handled)
                  {
                     handled = true;
                     Children[i].SendTouchUp(this, point);
                  }
                  else if (Children[i].Touching)
                  {
                     Children[i].SendTouchUp(this, point);
                  }
               }
               catch 
               { }
            }
         }
      }
protected override void TouchUpMessage ( object sender , point point , ref bool handled ) { if ( _moving ) { _moving = false ; Render ( true ) ; return ; } if ( Children != null ) { for ( var i = Children . Length - 1 ; i >= 0 ; i -- ) { try { if ( Children [ i ] . HitTest ( point ) && ! handled ) { handled = true ; Children [ i ] . SendTouchUp ( this , point ) ; } else if ( Children [ i ] . Touching ) { Children [ i ] . SendTouchUp ( this , point ) ; } } catch { } } } }
Override this message to handle touch events internally.
Override this message to handle touch events internally .
//TODO: check if this code shouldn't go to Container // Check Controls // ReSharper disable once EmptyGeneralCatchClause // This can happen if the user clears the Form during a tap
sender
object
Object sending the event
Object sending the event
point
point
Point on screen touch event is occurring
Point on screen touch event is occurring
bool
ref
handled
true if the event is handled. Set to true if handled.
true if the event is handled . Set to true if handled .
remarks
Finishes the from moving if touch down was on the form.
If not then it forwards the message to  or if null, to the child under point
Finishes the from moving if touch down was on the form . If not then it forwards the message to or if null to the child under point