© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
Foidmaxxer67

MVVM .net MAUI delete button not working

What I'm trying to do is: 1. Click the delete button 2. The deleted item gets removed from the collectionview
However, this is not working with the code that I have, as it gives me this error or crashes the program.
I followed stackoverflow on similar issues, such as this one: https://stackoverflow.com/questions/74460587/how-to-delete-selected-item-from-collection-view-in-net-maui, just without the selection
I've set my command binding to the delete command in the view model, and the problem starts occurring when I set my commandparameter's binding to . or Items, is there a fix for my problem? what is the problem that occurred in my logic?
image.png
Stack Overflow
How to delete selected Item from collection view in .net MAUI
I have collection in my Child view.
<CollectionView SelectionMode="Single" SelectedItem="{Binding Source={Reference sideview}, Path=myViewModel.SelectedItem.FileName}"
...
How to delete selected Item from collection view in .net MAUI
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MVVM Data Binding across multiple content pages in one application not working (.NET Maui)
C#CC# / help
2y ago
.Net Channels and MVVM
C#CC# / help
7mo ago
.net maui Help
C#CC# / help
2y ago
.net Maui Help
C#CC# / help
2y ago