Interface
IRadScrollViewport

This interface defines all necessary methods for custom scrolling. Performing each scroll operation via the method DoScroll(Point, Point) (thus allowing custom logic to be used) is called logical scrolling. The only way to enable logical scrolling in RadScrollViewer is via implementation of this interface.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public interface IRadScrollViewport

Methods

DoScroll(Point, Point)

Declaration

cs-api-definition
void DoScroll(Point oldValue, Point newValue)

Parameters

oldValue

Point

newValue

Point

GetExtentSize()

Gets the real size of the content that the viewport must visualize.

Declaration

cs-api-definition
Size GetExtentSize()

Returns

Size

GetScrollParams(Size, Size)

Retrieves the scroll parameters.

Declaration

cs-api-definition
ScrollPanelParameters GetScrollParams(Size viewportSize, Size extentSize)

Parameters

viewportSize

Size

extentSize

Size

Returns

ScrollPanelParameters

InvalidateViewport()

Invalidates the viewport.

Declaration

cs-api-definition
void InvalidateViewport()

ResetValue(Point, Size, Size)

Calculate scroll value. This method is used while resizing the scroll panel.

Declaration

cs-api-definition
Point ResetValue(Point currentValue, Size viewportSize, Size extentSize)

Parameters

currentValue

Point

viewportSize

Size

extentSize

Size

Returns

Point

ScrollOffsetForChildVisible(RadElement, Point)

Calculates the necessary offset in order to make the given child visible.

Declaration

cs-api-definition
Size ScrollOffsetForChildVisible(RadElement childElement, Point currentScrollValue)

Parameters

childElement

RadElement

currentScrollValue

Point

Returns

Size