GridViewVirtualizingPanel is used to arrange children into single line.
Definition
Namespace:Telerik.Windows.Controls.GridView
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewVirtualizingPanel : GridViewBaseVirtualizingPanel, IScrollInfo
Inheritance: objectGridViewBaseVirtualizingPanelGridViewVirtualizingPanel
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewVirtualizingPanel class.
public GridViewVirtualizingPanel()
Fields
CleanUpVirtualizedItemEvent
RoutedEvent
Called on the ItemsControl that owns this panel when an item is being re-virtualized.
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.
public static readonly DependencyProperty IsVirtualizingProperty
Properties
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; }
LogicalOrientation
Orientation
protected override Orientation LogicalOrientation { get; }
ScrollOwner
ScrollViewer
Gets or sets a ScrollViewer element that controls scrolling behavior.
public ScrollViewer ScrollOwner { get; set; }
A ScrollViewer element that controls scrolling behavior. This property has no default value.
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
Adds a handler for the CleanUpVirtualizedItem attached event.
public static void AddCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
DependencyObject that listens to this event.
handlerCleanUpVirtualizedItemEventHandlerEvent Handler to be added.
protected override Size ArrangeOverride(Size finalSize)
Size
When implemented in a derived class, generates the item at the specified index location and makes it visible.
CreateUIElementCollection(FrameworkElement)
UIElementCollection
protected override UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
UIElementCollection
Retrieves the value for IsVirtualizingProperty.
public static bool GetIsVirtualizing(DependencyObject element)
The object on which to query the value.
Returns:True if virtualizing, false otherwise.
Scrolls down within content by one logical unit.
public virtual void LineDown()
Scrolls left within content by one logical unit.
public virtual void LineLeft()
Scrolls right within content by one logical unit.
public virtual void LineRight()
Scrolls up within content by one logical unit.
public virtual void LineUp()
Forces content to scroll until the coordinate space of a Visual object is visible.
public Rect MakeVisible(Visual visual, Rect rectangle)
A Visual that becomes visible.
rectangleRectA bounding rectangle that identifies the coordinate space to make visible.
Returns:Rect
A Rect that is visible.
protected override Size MeasureOverride(Size availableSize)
Size
Scrolls down within content after a user clicks the wheel button on a mouse.
public virtual void MouseWheelDown()
Scrolls left within content after a user clicks the wheel button on a mouse.
public virtual void MouseWheelLeft()
Scrolls right within content after a user clicks the wheel button on a mouse.
public virtual void MouseWheelRight()
Scrolls up within content after a user clicks the wheel button on a mouse.
public virtual void MouseWheelUp()
Called when an item is being re-virtualized.
protected virtual void OnCleanUpVirtualizedItem(CleanUpVirtualizedItemEventArgs e)
OnCreateAutomationPeer()
AutomationPeer
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Scrolls down within content by one page.
public virtual void PageDown()
Scrolls left within content by one page.
public virtual void PageLeft()
Scrolls right within content by one page.
public virtual void PageRight()
Scrolls up within content by one page.
public virtual void PageUp()
Removes a handler for the CleanUpVirtualizedItem attached event.
public static void RemoveCleanUpVirtualizedItemHandler(DependencyObject element, CleanUpVirtualizedItemEventHandler handler)
DependencyObject that listens to this event.
handlerCleanUpVirtualizedItemEventHandlerEvent Handler to be removed.
Sets the amount of horizontal offset.
public void SetHorizontalOffset(double offset)
The degree to which content is horizontally offset from the containing viewport.
Sets the value for IsVirtualizingProperty.
public static void SetIsVirtualizing(DependencyObject element, bool value)
The element on which to set the value.
valueboolTrue if virtualizing, false otherwise.
Sets the amount of vertical offset.
public void SetVerticalOffset(double offset)
The degree to which content is vertically offset from the containing viewport.