Skip to main content

ListView

Description​

Set ItemsLayout to Grid when items read better as tiles that wrap across the list; List keeps one item per row.

Use it for a list of items, switching to a grid when tiles suit the content.

ListView in light mode ListView in dark mode

Example usage​

<fluence:ListView ItemsLayout="Grid">
<fluence:ListView.EmptyContent>
<TextBlock Text="No people to show." />
</fluence:ListView.EmptyContent>
<ListViewItem Content="Ana Bowman" />
<ListViewItem Content="Shawn Hughes" />
<ListViewItem Content="Priya Kapoor" />
</fluence:ListView>

Key properties​

PropertyDefaultPurpose
ItemsLayoutListSelects list or grid layout.
ItemAnimationsEnabledtrueEnables item animations.
HoverHighlightEnabledtrueEnables the hover highlight.
EmptyContentnullContent shown for an empty collection.
CornerRadius4Rounds the list surface.

State and behavior​

Selection highlights a row. ItemsLayout="Grid" arranges items as tiles; change it to List for one item per row. EmptyContent appears when the collection is empty.

Additional behavior​

The theme also styles some native framework elements used inside these controls. A ListViewItem is the WPF container, not a separate public Fluence class.

Events​

The inherited SelectionChanged event reports a changed selection.

Reference​