Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Filebox.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>
/// Selects the taped item or navigates to it if <see cref="AutoNavigate"/> is true.
/// </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 (Touching && _items != null)
         {
            point.X -= Left - ScrollX;
            point.Y -= Top - ScrollY;
            if (_rowDown != -1 && _iSel != _rowDown &&
                (point.Y - 9 - _font.Height + _scrollY) / (_font.Height + 8) == _rowDown)
            {
               if (_rowDown < _items.Length)
               {
                  _iSel = _rowDown;
               }
               else
               {
                  _iSel = -1;
               }
               if (_autoNav && _iSel > -1 && _items[_iSel].Type == FileType.Folder)
               {
                  FilePath = _items[_iSel].FullPath;
               }
               else
               {
                  OnSelectedIndexChanged(this, _iSel);
                  Invalidate();
               }
            }
         }
         base.TouchUpMessage(sender, point, ref handled);
      }
protected override void TouchUpMessage ( object sender , point point , ref bool handled ) { if ( Touching && _items != null ) { point . X -= Left - ScrollX ; point . Y -= Top - ScrollY ; if ( _rowDown != - 1 && _iSel != _rowDown && ( point . Y - 9 - _font . Height + _scrollY ) / ( _font . Height + 8 ) == _rowDown ) { if ( _rowDown < _items . Length ) { _iSel = _rowDown ; } else { _iSel = - 1 ; } if ( _autoNav && _iSel > - 1 && _items [ _iSel ] . Type == FileType . Folder ) { FilePath = _items [ _iSel ] . FullPath ; } else { OnSelectedIndexChanged ( this , _iSel ) ; Invalidate ( ) ; } } } base . TouchUpMessage ( sender , point , ref handled ) ; }
Override this message to handle touch events internally.
Override this message to handle touch events internally .
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
<not_specific>
handled
<not_specific>
true if the event is handled. Set to true if handled.
true if the event is handled . Set to true if handled .
remarks
Selects the taped item or navigates to it if  is true.
Selects the taped item or navigates to it if is true .