diff --git a/samples/todoapp/TodoApp.MAUI/MainPage.xaml b/samples/todoapp/TodoApp.MAUI/MainPage.xaml index b06b9c36..5d896b7f 100644 --- a/samples/todoapp/TodoApp.MAUI/MainPage.xaml +++ b/samples/todoapp/TodoApp.MAUI/MainPage.xaml @@ -21,29 +21,30 @@ - - + + - - - - - - - - - + + + + + + + + - - + - - + + diff --git a/samples/todoapp/TodoApp.MAUI/MainPage.xaml.cs b/samples/todoapp/TodoApp.MAUI/MainPage.xaml.cs index ab1cde80..857617ef 100644 --- a/samples/todoapp/TodoApp.MAUI/MainPage.xaml.cs +++ b/samples/todoapp/TodoApp.MAUI/MainPage.xaml.cs @@ -24,14 +24,14 @@ protected override void OnAppearing() this._viewModel.RefreshItemsCommand.Execute(null); } - public void OnListItemTapped(object sender, ItemTappedEventArgs e) + public void OnListItemTapped(object sender, SelectionChangedEventArgs e) { - if (e.Item is TodoItem item) + if (e.CurrentSelection.FirstOrDefault() is TodoItem item) { this._viewModel.UpdateItemCommand.Execute(item.Id); } - if (sender is ListView itemList) + if (sender is CollectionView itemList) { itemList.SelectedItem = null; } diff --git a/samples/todoapp/TodoApp.MAUI/Resources/Styles/Styles.xaml b/samples/todoapp/TodoApp.MAUI/Resources/Styles/Styles.xaml index cd05dbfc..57da6f1a 100644 --- a/samples/todoapp/TodoApp.MAUI/Resources/Styles/Styles.xaml +++ b/samples/todoapp/TodoApp.MAUI/Resources/Styles/Styles.xaml @@ -278,11 +278,6 @@ - -