[]
        
(Showing Draft Content)

C1.Framework.ScrollablePanel

ScrollablePanel Class

Panel that knows how to scroll child elements bigger than itself.

Inheritance
ScrollablePanel
Implements
Namespace: C1.Framework
Assembly: C1.Win.4.8.dll
Syntax
public class ScrollablePanel : BasePanel, ISupportUia
Remarks

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).

Constructors

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.

Properties

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.

Methods

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.

Events

Name Description
ScrollPositionChanged

Event that occurs when the ScrollPosition property changes.