I’d like to accomplish the following listview, which uses different controls in the same column.
It has two columns: Name and Setting. The first row’s entry in the Name column is “On/Off” and the Setting is a checkbox. The second row’s Name is “Elevation” and its setting is a textbox.
I want to be able to populate the listview programmatically.
Thanks!
Template selectors allow you at runtime to select between different data templates to use in items controls like list view.
XAML:
Code behind: