New to Telerik UI for WinUI? Download free 30-day trial

Getting Started with WinUI ListView

This help article shows how to create a RadListView from scratch using the RadListView related classes in the Telerik UI for WinUI.

Assembly References

In order to use RadListView in your projects, you have to add references to the following assembly:

  • Telerik.WinUI.Controls.dll

Defining the Control

To use the RadListView control in XAML, define a namespace that points to the Telerik.UI.Xaml.Controls.Data namespace.

xmlns:telerikData="using:Telerik.UI.Xaml.Controls.Data"

Example 1: Adding RadListView in XAML

<telerikData:RadListView x:Name="listView" /> 
Then you can assign a collection of items to the ItemsSource of the control.

Example 2: Setting the ItemsSource

public MainWindow() 
{ 
    this.InitializeComponent(); 
    this.listView.ItemsSource = Enum.GetNames(typeof(DayOfWeek)).ToList(); 
} 

Figure 1: RadListView with one selected and one hovered item

WinUI RadListView with one selected and one hovered item

Telerik UI for WinUI Learning Resources

In this article
Not finding the help you need?