Class GridDetailsView
- 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. If an item is clicked the item gots expanded until it is clicked again or an other item is clicked and gots expanded.
In order to work properly all items must have the same size.
public class GridDetailsView : GridView, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage, IComponentConnector, IStyleConnector
- Inheritance
-
GridDetailsView
- Implements
- Inherited Members
Constructors
GridDetailsView()
public GridDetailsView()
Fields
ExpandedItemProperty
public static readonly DependencyProperty ExpandedItemProperty
Field Value
ExpandedItemTemplateProperty
public static readonly DependencyProperty ExpandedItemTemplateProperty
Field Value
Properties
ExpandedItem
Gets the currently expanded item. If no item is expanded null is returned.
public object? ExpandedItem { get; }
Property Value
ExpandedItemTemplate
Gets or sets the data template used for the item expansion.
public DataTemplate? ExpandedItemTemplate { get; set; }
Property Value
Methods
GetContainerForItemOverride()
Creates and returns a new ListViewItem container.
protected override DependencyObject GetContainerForItemOverride()
Returns
- DependencyObject
A new ListViewItem control.
InitializeComponent()
InitializeComponent
public void InitializeComponent()