dotnet / maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)
https://dot.net/maui
MIT License
3.09k stars 1.27k forks source link

Multiple TextCell controls bound to a Command, but command can only be executed once #403

Open Legends opened 9 months ago

Legends commented 9 months ago

Windows issue only. Works on Android, didn't test on others.

In the following example code there a 6 ContentPages, first 6 implemented purely in Xaml and another 6 implemented purely with C# code.

The MainPage contains a TableView control where each TextCell should trigger a NavigationCommand which opens the respective ContentPage.

When you click on a TextCell you will navigate to the respective contentpage. When you go back to the MainPage and try to click another TextCell, the the navigation command won't execute anymore, no matter which cell you click on.

jfversluis commented 9 months ago

Hi there!

If something is production ready is in the eye of the beholder. Only you can decide that. However, we have a growing list of showcases with customers that are using it in production, as well as some Microsoft apps now.

Sorry to hear that you're having some trouble with the samples. I'm happy to see if there is something we can do here and determine if something is wrong with the samples or maybe something else is going on.

On what platform are you trying to run this on? Are there any error messages or log output or anything that might give some indication of what might be going wrong?

Legends commented 9 months ago

The problem seems to be tied to TextCellcontrols inside a TableSectioncontrol. When I transform the TableView into a CollectionViewand bind each item to NavigateCommand, it works normally. I can click on a sample, go back, click another one etc.

image