ClassRadStackViewport
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadStackViewport : StackLayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IRadScrollViewport
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelStackLayoutPanelRadStackViewport
Implements:
Inherited Members
Constructors
RadStackViewport()
Declaration
public RadStackViewport()
Methods
GetExtentSize()
Gets the real size of the content that the viewport must visualize.
GetLastFullVisibleItemsNum()
Returns the number of items that are visible when the viewport is scrolled to its maximum value (the bottom for vertical stack and the right-most place for left-to-right horizontal stack). The last item must always be fully visible. If there are children the result will be at least 1.
Declaration
protected virtual int GetLastFullVisibleItemsNum()
Returns
Number of full visible items in the viewport. If the items are with different sizes, the last items are used in the calculations.
GetScrollParams(Size, Size)
Retrieves the scroll parameters.
Declaration
public virtual ScrollPanelParameters GetScrollParams(Size viewportSize, Size extentSize)
Parameters
viewportSize
extentSize
Returns
Implements
InvalidateViewport()
Invalidates the viewport.
Declaration
public virtual void InvalidateViewport()
Implements
OnChildrenChanged(RadElement, ItemsChangeOperation)
Declaration
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
Parameters
child
changeOperation
Overrides
ResetValue(Point, Size, Size)
Calculate scroll value. This method is used while resizing the scroll panel.
ScrollOffsetForChildVisible(RadElement, Point)
Calculates the necessary offset in order to make the given child visible.
Declaration
public virtual Size ScrollOffsetForChildVisible(RadElement childElement, Point currentScrollValue)
Parameters
childElement
currentScrollValue
Returns
Implements