This quick start guides you through the steps of adding the ListView control in a WPF application, adding data to it and displaying the data in the control.
In this use-case, we create a ListView, and add several ListView Items to it.
In order to use ListView in your project you have to add reference to the C1.WPF.ListView assembly from References in the Solution Explorer.
You can add the control in your page by dragging it from the toolbox and dropping in the designer view, or creating the control manually in the XAML view.
Below is the code snippet for creating the ListView control in XAML:
XAML |
Copy Code
|
---|---|
<c1:C1ListView x:Name="listView1" Margin="0,10,10,10"></c1:C1ListView> |
The ListView control can be populated by adding ListView Items to the items collection, or by using data binding.