ListViewExtensions Class

Definition

Provides attached dependency properties for the Windows.UI.Xaml.Controls.ListViewBase

public static class ListViewExtensions
type ListViewExtensions = class
Public Module ListViewExtensions
Inheritance
ListViewExtensions

Fields

AlternateColorProperty

Attached Windows.UI.Xaml.DependencyProperty for binding a Windows.UI.Xaml.Media.Brush as an alternate background color to a Windows.UI.Xaml.Controls.ListViewBase

AlternateItemTemplateProperty

Attached Windows.UI.Xaml.DependencyProperty for binding a Windows.UI.Xaml.DataTemplate as an alternate template to a Windows.UI.Xaml.Controls.ListViewBase

CommandProperty

Attached Windows.UI.Xaml.DependencyProperty for binding an ICommand to handle ListViewBase Item interaction by means of Windows.UI.Xaml.Controls.ListViewBase ItemClick event. ListViewBase IsItemClickEnabled must be set to true.

ItemContainerStretchDirectionProperty

Attached Windows.UI.Xaml.DependencyProperty for setting the container content stretch direction on the Windows.UI.Xaml.Controls.ListViewBase

Attached Properties

AlternateColor
AlternateItemTemplate
Command
ItemContainerStretchDirection

Methods

DeselectAll(ListViewBase)

Deselects all items in list.

DeselectItem<T>(ListViewBase, T)

Deselects the provided item.

GetAlternateColor(ListViewBase)

Gets the alternate Windows.UI.Xaml.Media.Brush associated with the specified Windows.UI.Xaml.Controls.ListViewBase

GetAlternateItemTemplate(ListViewBase)

Gets the Windows.UI.Xaml.DataTemplate associated with the specified Windows.UI.Xaml.Controls.ListViewBase

GetCommand(ListViewBase)

Gets the ICommand associated with the specified Windows.UI.Xaml.Controls.ListViewBase

GetItemContainerStretchDirection(ListViewBase)

Gets the stretch ItemContainerStretchDirection associated with the specified Windows.UI.Xaml.Controls.ListViewBase

SelectAllSafe(ListViewBase)

Selects all items in the list (or first one), if possible.

SetAlternateColor(ListViewBase, Brush)

Sets the alternate Windows.UI.Xaml.Media.Brush associated with the specified Windows.UI.Xaml.DependencyObject

SetAlternateItemTemplate(ListViewBase, DataTemplate)

Sets the Windows.UI.Xaml.DataTemplate associated with the specified Windows.UI.Xaml.Controls.ListViewBase

SetCommand(ListViewBase, ICommand)

Sets the ICommand associated with the specified Windows.UI.Xaml.Controls.ListViewBase

SetItemContainerStretchDirection(ListViewBase, ItemContainerStretchDirection)

Sets the stretch ItemContainerStretchDirection associated with the specified Windows.UI.Xaml.Controls.ListViewBase

SmoothScrollIntoViewWithIndexAsync(ListViewBase, Int32, ScrollItemPlacement, Boolean, Boolean, Int32, Int32)

Smooth scrolling the list to bring the specified index into view

SmoothScrollIntoViewWithItemAsync(ListViewBase, Object, ScrollItemPlacement, Boolean, Boolean, Int32, Int32)

Smooth scrolling the list to bring the specified data item into view

Applies to