Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.dll
Syntax:
[TelerikToolboxCategory("Data")]
public class VirtualizingWrapPanel : VirtualizingPanel, IScrollInfo
Inheritance: objectVirtualizingWrapPanel
Implements:
Constructors
Initializes a new instance of the VirtualizingWrapPanel class.
public VirtualizingWrapPanel()
Fields
ItemHeightProperty
DependencyProperty
Identifies the ItemHeight dependency property.
public static readonly DependencyProperty ItemHeightProperty
ItemWidthProperty
DependencyProperty
Identifies the ItemWidth dependency property.
public static readonly DependencyProperty ItemWidthProperty
OrientationProperty
DependencyProperty
Identifies the Orientation dependency property.
public static readonly DependencyProperty OrientationProperty
ScrollStepProperty
DependencyProperty
Identifies the ScrollStep dependency property.
public static readonly DependencyProperty ScrollStepProperty
Properties
protected override bool CanHierarchicallyScrollAndVirtualizeCore { get; }
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
public bool CanHorizontallyScroll { get; set; }
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
public bool CanVerticallyScroll { get; set; }
Gets the vertical size of the extent.
public double ExtentHeight { get; }
Gets the horizontal size of the extent.
public double ExtentWidth { get; }
protected override bool HasLogicalOrientation { get; }
Gets the horizontal offset of the scrolled content.
public double HorizontalOffset { get; }
Gets or sets a value that specifies the height of all items that are contained within a VirtualizingWrapPanel. This is a dependency property.
public double ItemHeight { get; set; }
Gets or sets a value that specifies the width of all items that are contained within a VirtualizingWrapPanel. This is a dependency property.
public double ItemWidth { get; set; }
LogicalOrientation
Orientation
Note: When Wrap is horizontal it grows vertically. Otherwise nested grouping virtualization won't work.
protected override Orientation LogicalOrientation { get; }
Orientation
Orientation
Gets or sets a value that specifies the dimension in which child content is arranged. This is a dependency property.
public Orientation Orientation { get; set; }
ScrollOwner
ScrollViewer
Gets or sets a ScrollViewer element that controls scrolling behavior.
public ScrollViewer ScrollOwner { get; set; }
Gets or sets a value for mouse wheel scroll step.
public double ScrollStep { get; set; }
Gets the vertical offset of the scrolled content.
public double VerticalOffset { get; }
Gets the vertical size of the viewport for this content.
public double ViewportHeight { get; }
Gets the horizontal size of the viewport for this content.
public double ViewportWidth { get; }
Methods
Arranges the children.
protected override Size ArrangeOverride(Size finalSize)
The available size.
Returns:Size
The used size.
Generates the item at the specified index location and makes it visible.
protected override void BringIndexIntoView(int index)
The index position of the item that is generated and made visible.
Scrolls down within content by one logical unit.
public void LineDown()
Scrolls left within content by one logical unit.
public void LineLeft()
Scrolls right within content by one logical unit.
public void LineRight()
Scrolls up within content by one logical unit.
public void LineUp()
Forces content to scroll until the coordinate space of a Visual object is visible.
public Rect MakeVisible(Visual visual, Rect rectangle)
Rect
Measure the children.
protected override Size MeasureOverride(Size availableSize)
The available size.
Returns:Size
The desired size.
Scrolls down within content after a user clicks the wheel button on a mouse.
public void MouseWheelDown()
Scrolls left within content after a user clicks the wheel button on a mouse.
public void MouseWheelLeft()
Scrolls right within content after a user clicks the wheel button on a mouse.
public void MouseWheelRight()
Scrolls up within content after a user clicks the wheel button on a mouse.
public void MouseWheelUp()
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
When items are removed, remove the corresponding UI if necessary.
protected override void OnItemsChanged(object sender, ItemsChangedEventArgs args)
protected override void OnKeyDown(KeyEventArgs e)
protected override void OnLostKeyboardFocus(KeyboardFocusChangedEventArgs e)
Scrolls down within content by one page.
public void PageDown()
Scrolls left within content by one page.
public void PageLeft()
Scrolls right within content by one page.
public void PageRight()
Scrolls up within content by one page.
public void PageUp()
Sets the amount of horizontal offset.
Sets the amount of vertical offset.