public override int ClampViewPositionVertical(View child, int top, int dy)
{
int topBound;
int bottomBound;
if (_panelLayout._isSlidingUp)
{
topBound = _panelLayout.SlidingTop;
bottomBound = topBound + _panelLayout._slideRange;
}
else
{
bottomBound = _panelLayout.PaddingTop;
topBound = bottomBound - _panelLayout._slideRange;
}
return Math.Min(Math.Max(top, topBound), bottomBound);
}