问题
If a user has scrolled down in a VertScrollBox, how do I set it back to the top position again in XE8?
this code don't Work on XE8
VertScrollBox1.ViewportPosition := PointF(0,0);
VertScrollBox1.RealignContent
回答1:
VertScrollBox1.ViewportPosition := PointF(VertScrollBox1.ViewportPosition.X, 0);
Works for me on Android and Windows.
来源:https://stackoverflow.com/questions/32684741/go-top-a-tvertscrollbox