ListBoxPanel
Represents a virtualized panel with smooth scrolling.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class ListBoxPanel : VirtualizingPanel, IScrollInfo
Inheritance: objectListBoxPanel
Implements:
Constructors
Initializes a new instance of the ListBoxPanel class.
public ListBoxPanel()
Fields
ChildDefaultLengthProperty
DependencyProperty
Represents the ChildDefaultLength property.
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.
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.
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.
public double ChildDefaultLength { get; set; }
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".
public double ExtentHeight { get; }
ExtentWidth contains the horizontal size of the scrolled content element in 1/96".
public double ExtentWidth { get; }
HorizontalOffset is the horizontal offset of the scrolled content in 1/96".
public double HorizontalOffset { get; }
ScrollOwner
ScrollViewer
ScrollOwner is the container that controls any scrollbars, headers, etc... that are dependant on this IScrollInfo's properties.
public ScrollViewer ScrollOwner { get; set; }
VerticalOffset is the vertical offset of the scrolled content in 1/96".
public double VerticalOffset { get; }
ViewportHeight contains the vertical size of content's visible range in 1/96" .
public double ViewportHeight { get; }
ViewportWidth contains the horizontal size of content's visible range in 1/96".
public double ViewportWidth { get; }
Methods
Arranges the override.
protected override Size ArrangeOverride(Size finalSize)
Size of the arrange.
Returns:Size
Generates the item at the specified index and calls BringIntoView on it.
protected override void BringIndexIntoView(int index)
Specify the item index that should become visible.
Exceptions: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.
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.
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.
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.
public virtual void LineUp()
FeedsPanel implementation of .
public Rect MakeVisible(Visual visual, Rect rectangle)
Rect
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.
protected override Size MeasureOverride(Size availableSize)
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.
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.
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.
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.
public virtual void MouseWheelUp()
Called when the UI collection of children is cleared by the base Panel class.
protected override void OnClearChildren()
Called when the Items collection associated with the containing ItemsControl changes.
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
Sender.
argsItemsChangedEventArgsEvent 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.
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.
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.
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.
public virtual void PageUp()
Set the HorizontalOffset to the passed value.
Set the VerticalOffset to the passed value.