[]
Panel that knows how to scroll child elements bigger than itself.
public class ScrollablePanel : BasePanel, ISupportUia
The child elements are clipped to the bounds of the ScrollablePanel; scrolling is done by setting the ScrollPosition property, which works like the ScrollPosition in the XView control.
This class only implements the scrollable (client) area of a scrollable control. It doesn't have scrollbars or buttons. For that, use the ScrollBarPanel or ScrollableStackPanel classes (or implement your own scrollable panel).
Name | Description |
---|---|
ScrollablePanel() | Initializes a new instance of the ScrollablePanel element. |
ScrollablePanel(Style) | Initializes a new instance of the ScrollablePanel element with the pecified style options. |
Name | Description |
---|---|
ContentElement | Element that contains the content to be scrolled. |
ScrollPosition | Negative pixel offset (like the XView control). |
SmoothScrolling | Gets or sets whether the scrolling should be performed in steps. |
Name | Description |
---|---|
Layout(Graphics) | Layout this element based on its style and contents. |
OnMouseWheel(MouseEventArgs) | Handles MouseWheel events. |
OnScrollPositionChanged(EventArgs) | Raises the ScrollPositionChanged event. |
Render(Graphics, Rectangle) | Renders the element into a given rectangle. |
ScrollIntoView(Element) | Scrolls a given Element into view. |
ScrollIntoView(Rectangle) | Scrolls a given Rectangle into view. |
Name | Description |
---|---|
ScrollPositionChanged | Event that occurs when the ScrollPosition property changes. |