Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Legends opened this issue Dec 4, 2023 · 2 comments

Comments

@Legends
Copy link

Legends commented Dec 4, 2023

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.

@Legends Legends changed the title Samples are crap? Samples are up-to-date? Dec 4, 2023
@jfversluis
Copy link
Member

jfversluis commented Dec 5, 2023

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 Legends closed this as completed Dec 12, 2023
@Legends Legends reopened this Dec 23, 2023
@Legends
Copy link
Author

Legends commented Dec 30, 2023

The problem seems to be tied to TextCell controls inside a TableSection control.
When I transform the TableView into a CollectionView and bind each item to NavigateCommand, it works normally.
I can click on a sample, go back, click another one etc.

image

@Legends Legends changed the title Samples are up-to-date? Multiple TextCell controls bound to a Command, but command is executed only once Dec 30, 2023
@Legends Legends changed the title Multiple TextCell controls bound to a Command, but command is executed only once Multiple TextCell controls bound to a Command, but command can only be executed once Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants