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

GridViewVirtualizingPanel is used to arrange children into single line.

Definition

Namespace:Telerik.Windows.Controls.GridView

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class GridViewVirtualizingPanel : GridViewBaseVirtualizingPanel, IScrollInfo

Inheritance: objectGridViewBaseVirtualizingPanelGridViewVirtualizingPanel

Derived Classes: TreeListViewVirtualizingPanel

Implements: IScrollInfo

Inherited Members GridViewBaseVirtualizingPanel.ItemContainerGenerator

Constructors

Initializes a new instance of the GridViewVirtualizingPanel class.

C#
public GridViewVirtualizingPanel()

Fields

Called on the ItemsControl that owns this panel when an item is being re-virtualized.

C#
public static readonly RoutedEvent CleanUpVirtualizedItemEvent

IsVirtualizingProperty

DependencyProperty

Attached property for use on the ItemsControl that is the host for the items being presented by this panel. Use this property to turn virtualization on/off.

C#
public static readonly DependencyProperty IsVirtualizingProperty

Properties

Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.

C#
public bool CanHorizontallyScroll { get; set; }

Gets or sets a value that indicates whether scrolling on the vertical axis is possible.

C#
public bool CanVerticallyScroll { get; set; }

Gets the vertical size of the extent.

C#
public double ExtentHeight { get; }

Gets the horizontal size of the extent.

C#
public double ExtentWidth { get; }
C#
protected override bool HasLogicalOrientation { get; }

Gets the horizontal offset of the scrolled content.

C#
public double HorizontalOffset { get; }
C#
protected override Orientation LogicalOrientation { get; }

ScrollOwner

ScrollViewer

Gets or sets a ScrollViewer element that controls scrolling behavior.

C#
public ScrollViewer ScrollOwner { get; set; }
Property Value:

A ScrollViewer element that controls scrolling behavior. This property has no default value.

Gets the vertical offset of the scrolled content.

C#
public double VerticalOffset { get; }

Gets the vertical size of the viewport for this content.

C#
public double ViewportHeight { get; }

Gets the horizontal size of the viewport for this content.

C#
public double ViewportWidth { get; }

Methods

Adds a handler for the CleanUpVirtualizedItem attached event.

C#
public static void AddCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
Parameters:elementDependencyObject

DependencyObject that listens to this event.

handlerCleanUpVirtualizedItemEventHandler

Event Handler to be added.

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

Size

When implemented in a derived class, generates the item at the specified index location and makes it visible.

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

Overrides: GridViewBaseVirtualizingPanel.BringIndexIntoView(int)

C#
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
Parameters:logicalParentFrameworkElementReturns:

UIElementCollection

Retrieves the value for IsVirtualizingProperty.

C#
public static bool GetIsVirtualizing(DependencyObject element)
Parameters:elementDependencyObject

The object on which to query the value.

Returns:

bool

True if virtualizing, false otherwise.

Scrolls down within content by one logical unit.

C#
public virtual void LineDown()

Scrolls left within content by one logical unit.

C#
public virtual void LineLeft()

Scrolls right within content by one logical unit.

C#
public virtual void LineRight()

Scrolls up within content by one logical unit.

C#
public virtual void LineUp()

Forces content to scroll until the coordinate space of a Visual object is visible.

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

A Visual that becomes visible.

rectangleRect

A bounding rectangle that identifies the coordinate space to make visible.

Returns:

Rect

A Rect that is visible.

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

Size

Scrolls down within content after a user clicks the wheel button on a mouse.

C#
public virtual void MouseWheelDown()

Scrolls left within content after a user clicks the wheel button on a mouse.

C#
public virtual void MouseWheelLeft()

Scrolls right within content after a user clicks the wheel button on a mouse.

C#
public virtual void MouseWheelRight()

Scrolls up within content after a user clicks the wheel button on a mouse.

C#
public virtual void MouseWheelUp()

Called when an item is being re-virtualized.

C#
protected virtual void OnCleanUpVirtualizedItem(CleanUpVirtualizedItemEventArgs e)
Parameters:eCleanUpVirtualizedItemEventArgs
C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Scrolls down within content by one page.

C#
public virtual void PageDown()

Scrolls left within content by one page.

C#
public virtual void PageLeft()

Scrolls right within content by one page.

C#
public virtual void PageRight()

Scrolls up within content by one page.

C#
public virtual void PageUp()

Removes a handler for the CleanUpVirtualizedItem attached event.

C#
public static void RemoveCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
Parameters:elementDependencyObject

DependencyObject that listens to this event.

handlerCleanUpVirtualizedItemEventHandler

Event Handler to be removed.

Sets the amount of horizontal offset.

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

The degree to which content is horizontally offset from the containing viewport.

Sets the value for IsVirtualizingProperty.

C#
public static void SetIsVirtualizing(DependencyObject element, bool value)
Parameters:elementDependencyObject

The element on which to set the value.

valuebool

True if virtualizing, false otherwise.

Sets the amount of vertical offset.

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

The degree to which content is vertically offset from the containing viewport.

C#
public override string ToString()
Returns:

string