New to Telerik UI for WPFStart a free 30-day trial

Represents a virtualized panel with smooth scrolling.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class ListBoxPanel : VirtualizingPanel, IScrollInfo

Inheritance: objectListBoxPanel

Implements: IScrollInfo

Constructors

Initializes a new instance of the ListBoxPanel class.

C#
public ListBoxPanel()

Fields

ChildDefaultLengthProperty

DependencyProperty

Represents the ChildDefaultLength property.

C#
public static readonly DependencyProperty ChildDefaultLengthProperty

Properties

FeedsPanel reacts to this property by changing its child measurement algorithm. If scrolling in a dimension, infinite space is allowed the child; otherwise, available size is preserved.

C#
public bool CanHorizontallyScroll { get; set; }

FeedsPanel reacts to this property by changing its child measurement algorithm. If scrolling in a dimension, infinite space is allowed the child; otherwise, available size is preserved.

C#
public bool CanVerticallyScroll { get; set; }

Gets or sets the expected length (width or height) for the items of the panel. This is a dependency property.

C#
public double ChildDefaultLength { get; set; }
Remarks:

The value of this property should be as close as possible to the header height of the TreeViewItem.

ExtentHeight contains the vertical size of the scrolled content element in 1/96".

C#
public double ExtentHeight { get; }

ExtentWidth contains the horizontal size of the scrolled content element in 1/96".

C#
public double ExtentWidth { get; }

HorizontalOffset is the horizontal offset of the scrolled content in 1/96".

C#
public double HorizontalOffset { get; }

ScrollOwner

ScrollViewer

ScrollOwner is the container that controls any scrollbars, headers, etc... that are dependant on this IScrollInfo's properties.

C#
public ScrollViewer ScrollOwner { get; set; }

VerticalOffset is the vertical offset of the scrolled content in 1/96".

C#
public double VerticalOffset { get; }

ViewportHeight contains the vertical size of content's visible range in 1/96" .

C#
public double ViewportHeight { get; }

ViewportWidth contains the horizontal size of content's visible range in 1/96".

C#
public double ViewportWidth { get; }

Methods

Arranges the override.

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

Size of the arrange.

Returns:

Size

Generates the item at the specified index and calls BringIntoView on it.

C#
protected override void BringIndexIntoView(int index)
Parameters:indexint

Specify the item index that should become visible.

Exceptions:

ArgumentOutOfRangeException

Thrown if index is out of range.

Scroll content by one line to the bottom. Subclasses can override this method and call SetVerticalOffset to change the behavior of what "line" means.

C#
public virtual void LineDown()

Scroll content by one line to the left. Subclasses can override this method and call SetHorizontalOffset to change the behavior of what "line" means.

C#
public virtual void LineLeft()

Scroll content by one line to the right. Subclasses can override this method and call SetHorizontalOffset to change the behavior of what "line" means.

C#
public virtual void LineRight()

Scroll content by one line to the top. Subclasses can override this method and call SetVerticalOffset to change the behavior of what "line" means.

C#
public virtual void LineUp()

FeedsPanel implementation of .

C#
public Rect MakeVisible(Visual visual, Rect rectangle)
Parameters:visualVisualrectangleRectReturns:

Rect

Remarks:

The goal is to change offsets to bring the child into view, and return a rectangle in our space to make visible. The rectangle we return is in the physical dimension the input target rectangle transformed into our pace. In the logical dimension, it is our immediate child's rectangle.

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSizeReturns:

Size

Scroll content by one page to the bottom. Subclasses can override this method and call SetVerticalOffset to change the behavior of the mouse wheel increment.

C#
public virtual void MouseWheelDown()

Scroll content by one page to the left. Subclasses can override this method and call SetHorizontalOffset to change the behavior of the mouse wheel increment.

C#
public virtual void MouseWheelLeft()

Scroll content by one page to the right. Subclasses can override this method and call SetHorizontalOffset to change the behavior of the mouse wheel increment.

C#
public virtual void MouseWheelRight()

Scroll content by one page to the top. Subclasses can override this method and call SetVerticalOffset to change the behavior of the mouse wheel increment.

C#
public virtual void MouseWheelUp()

Called when the UI collection of children is cleared by the base Panel class.

C#
protected override void OnClearChildren()

Called when the Items collection associated with the containing ItemsControl changes.

C#
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Parameters:senderobject

Sender.

argsItemsChangedEventArgs

Event arguments.

Scroll content by one page to the bottom. Subclasses can override this method and call SetVerticalOffset to change the behavior of what "page" means.

C#
public virtual void PageDown()

Scroll content by one page to the left. Subclasses can override this method and call SetHorizontalOffset to change the behavior of what "page" means.

C#
public virtual void PageLeft()

Scroll content by one page to the right. Subclasses can override this method and call SetHorizontalOffset to change the behavior of what "page" means.

C#
public virtual void PageRight()

Scroll content by one page to the top. Subclasses can override this method and call SetVerticalOffset to change the behavior of what "page" means.

C#
public virtual void PageUp()

Set the HorizontalOffset to the passed value.

C#
public void SetHorizontalOffset(double offset)
Parameters:offsetdouble

Set the VerticalOffset to the passed value.

C#
public void SetVerticalOffset(double offset)
Parameters:offsetdouble