Class ListView
public class ListView : ListView, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage
- Inheritance
-
ListView
- Implements
- Derived
- Inherited Members
Examples
<ui:ListView ItemsSource="{Binding ...}" >
<ui:ListView.View>
<ui:GridView>
<GridViewColumn
DisplayMemberBinding="{Binding FirstName}"
Header="First Name" />
<GridViewColumn
DisplayMemberBinding="{Binding LastName}"
Header="Last Name" />
</ui:GridView>
</ui:ListView.View>
</ui:ListView>
Constructors
ListView()
public ListView()
Fields
ViewStateProperty
Identifies the ViewState dependency property.
public static readonly DependencyProperty ViewStateProperty
Field Value
Properties
ViewState
Gets or sets the view state of the ListView, enabling custom logic based on the current view.
public ListViewViewState ViewState { get; set; }
Property Value
- ListViewViewState
The current view state of the ListView.
Methods
GetContainerForItemOverride()
Creates and returns a new ListViewItem container.
protected override DependencyObject GetContainerForItemOverride()
Returns
- DependencyObject
A new ListViewItem control.
IsItemItsOwnContainerOverride(object)
Determines whether an object is a ListViewItem.
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
item
objectThe object to evaluate.
Returns
- bool
true if the
item
is a ListViewItem; otherwise, false.
OnViewStateChanged(DependencyPropertyChangedEventArgs)
protected virtual void OnViewStateChanged(DependencyPropertyChangedEventArgs e)