-
Notifications
You must be signed in to change notification settings - Fork 0
ListView
Jasper Zanjani edited this page Aug 15, 2020
·
1 revision
ListView can be used to display a list of items.
It is an ItemsControl
so it exposes properties like Items
.
- Items.Clear
- Items.Remove
private void ButtonDeleteCustomer_Click(object sender, RoutedEventArgs e)
{
var customer = customerListView.SelectedItem as Customer;
if (customer != null)
{
customerListView.Items.Remove(customer);
}
}
- SelectedItem
private void ButtonAddCustomer_Click(object sender, RoutedEventArgs e)
{
var customer = new Customer { FirstName = "New" };
customerListView.Items.Add(customer);
customerListView.SelectedItem = customer;
}
- Newtonsoft.Json
- System.Random
- System.Threading
- System.Threading.Tasks
- Windows.Foundation
- Windows.Storage
- Windows.UI.ViewManagement
- Windows.UI.Xaml.Markup
- Dependency properties
- Markup extensions
- Namespaces
- Resource dictionaries
- SplitView
- Page ?
- Type conversion
- Grid ?
- StackPanel ?
- RelativePanel ?
- VariableSizedWrapGrid
- Canvas