Class GridView
- Namespace
- WpfToolkit.Controls
- Assembly
- VirtualizingWrapPanel.dll
Simple control that displays a gird of items. Depending on the orientation, the items are either stacked horizontally or vertically until the items are wrapped to the next row or column. The control is using virtualization to support large amount of items.
public class GridView : ListView, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage
- Inheritance
-
GridView
- Implements
- Derived
- Inherited Members
Constructors
GridView()
public GridView()
Fields
IsWrappingKeyboardNavigationEnabledProperty
public static readonly DependencyProperty IsWrappingKeyboardNavigationEnabledProperty
Field Value
OrientationProperty
public static readonly DependencyProperty OrientationProperty
Field Value
SpacingModeProperty
public static readonly DependencyProperty SpacingModeProperty
Field Value
StretchItemsProperty
public static readonly DependencyProperty StretchItemsProperty
Field Value
Properties
IsWrappingKeyboardNavigationEnabled
Enables a improved wrapping keyboard navigation. The default value is false.
public bool IsWrappingKeyboardNavigationEnabled { get; set; }
Property Value
Orientation
Gets or sets a value that specifies the orientation in which items are arranged. The default value is Horizontal.
public Orientation Orientation { get; set; }
Property Value
SpacingMode
Gets or sets the spacing mode used when arranging the items. The default value is Uniform.
public SpacingMode SpacingMode { get; set; }
Property Value
StretchItems
Gets or sets a value that specifies if the items get stretched to fill up remaining space. The default value is false.
public bool StretchItems { get; set; }
Property Value
Remarks
The MaxWidth and MaxHeight properties of the ItemContainerStyle can be used to limit the stretching. In this case the use of the remaining space will be determined by the SpacingMode property.