Class ScrollNode
Scrollable Node
public class ScrollNode : SpriteNode
- Inheritance
-
ScrollNode
- Derived
- Inherited Members
- Extension Methods
Constructors
ScrollNode(Color, SizeF)
public ScrollNode(Color color, SizeF size)
Parameters
ScrollNode(SizeF)
Create a scrollable node with the given size
public ScrollNode(SizeF size)
Parameters
sizeSizeF
Properties
ContentArea
ScrollNode content area
public SizeF ContentArea { get; set; }
Property Value
MaxXScrollPosition
Max horizontal scroll position
public float MaxXScrollPosition { get; }
Property Value
MaxYScrollPosition
Max horizontal scroll position
public float MaxYScrollPosition { get; }
Property Value
MinXScrollPosition
Min horizontal scroll position
public float MinXScrollPosition { get; }
Property Value
MinYScrollPosition
Min horizontal scroll position
public float MinYScrollPosition { get; }
Property Value
ScrollPosition
Scroll position offset
public PointF ScrollPosition { get; set; }
Property Value
ViewportBottom
Content Viewport Bottom
public float ViewportBottom { get; }
Property Value
ViewportLeft
Content Viewport Bottom
public float ViewportLeft { get; }
Property Value
ViewportRight
Content Viewport Right
public float ViewportRight { get; }
Property Value
ViewportTop
Content Viewport Top
public float ViewportTop { get; }
Property Value
XScrollPosition
Horizontal Scroll Position
public float XScrollPosition { get; set; }
Property Value
YScrollPosition
Vertical Scroll Position
public float YScrollPosition { get; set; }
Property Value
Methods
AddChild(Node)
public void AddChild(Node node)
Parameters
nodeNode
AnimateScrollPosition(PointF, double)
Start animation to move scroll position within "duration" in seconds
public void AnimateScrollPosition(PointF position, double duration)
Parameters
AnimateXScrollPosition(float, double)
Start animation to move scroll X position within "duration" in seconds
public void AnimateXScrollPosition(float position, double duration)
Parameters
AnimateYScrollPosition(float, double)
Start animation to move scroll Y position within "duration" in seconds
public void AnimateYScrollPosition(float position, double duration)
Parameters
OnMouseWheel(MouseEventArgs)
public override void OnMouseWheel(MouseEventArgs args)
Parameters
argsMouseEventArgs
OnPan(PanEventArgs)
public override void OnPan(PanEventArgs args)
Parameters
argsPanEventArgs
OnPanComplete(PanEventArgs)
public override void OnPanComplete(PanEventArgs args)
Parameters
argsPanEventArgs
OnPanStart(PanEventArgs)
public override void OnPanStart(PanEventArgs args)
Parameters
argsPanEventArgs
OnScrollPositionChanged()
Called when ScrollPosition is changed
protected virtual void OnScrollPositionChanged()
OnSizeChanged()
Called when size changes
protected override void OnSizeChanged()
OnTouchDownInside(TouchEventArgs)
public override void OnTouchDownInside(TouchEventArgs args)
Parameters
argsTouchEventArgs
ScrollBy(Vector2)
Scroll By delta
public void ScrollBy(Vector2 delta)
Parameters
deltaVector2
ScrollToBottom()
Scroll to bottom
public void ScrollToBottom()
ScrollToBottom(double)
Scroll to bottom animated
public void ScrollToBottom(double duration)
Parameters
durationdouble
ScrollToLeft()
Scroll to left
public void ScrollToLeft()
ScrollToLeft(double)
Scroll to left animated
public void ScrollToLeft(double duration)
Parameters
durationdouble
ScrollToRight()
Scroll to right
public void ScrollToRight()
ScrollToRight(double)
Scroll to right animated
public void ScrollToRight(double duration)
Parameters
durationdouble
ScrollToTop()
Scroll to top
public void ScrollToTop()
ScrollToTop(double)
Scroll to top animated
public void ScrollToTop(double duration)
Parameters
durationdouble
UpdateContentArea()
Update ContentArea with children size
public void UpdateContentArea()