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

[BUG] SelectedItemEventArgsConverter not worked on ListView after udating community toolkit version to 10.0.0 #2411

Open
2 tasks done
rahulshreebastav opened this issue Dec 24, 2024 · 3 comments
Labels
bug Something isn't working unverified

Comments

@rahulshreebastav
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Not working on tapping on the listview.

Expected Behavior

On tapping on listview it should trigger the command.

Steps To Reproduce

<ContentPage.Resources>
    <ResourceDictionary>
        <toolkit:SelectedItemEventArgsConverter x:Key="SelectedItemEventArgsConverter" />
    </ResourceDictionary>
</ContentPage.Resources>
     </DataTemplate>
 </ListView.ItemTemplate>

Link to public reproduction project repository

https://learn.microsoft.com/zh-tw/dotnet/communitytoolkit/maui/converters/selected-item-eventargs-converter

Environment

- .NET MAUI CommunityToolkit: 10.0.0.
- OS:
- .NET MAUI:9.0

Anything else?

No response

@brminnick
Copy link
Collaborator

Please be sure to note the breaking change to Behaviors in CommunityToolkit.Maui v10.0.0.

We've included this as a Breaking Change in our release notes:

Image

You can find more information, including a working solution, here on StackOverflow: https://stackoverflow.com/a/79099574/5953643

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 2 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@dotnet-policy-service dotnet-policy-service bot added the stale The author has not responded in over 30 days label Dec 30, 2024
@lordstyx
Copy link

lordstyx commented Dec 31, 2024

I'm also seeing this behavior. I've created a minimal repro, starting from the MAUI template in Visual Studio, upgrading it to toolkit 10.0.0. Note that I've only added the necessary BindingContext property and binding on the relevant page.

https://github.com/lordstyx/MauiToolkitListViewEventToCommandBehavior

To reproduce the bug in this sample, navigate to the Projects page from the menu, and tap on any of the two projects that are listed.

For me the app and visual studio will hang at this point. In my production app I need to close the app through android app management in the emulator to get Visual Studio responsive again. In this repro sample the debug session is terminated after a bit.

@brminnick brminnick removed stale The author has not responded in over 30 days needs reproduction labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified
Projects
None yet
Development

No branches or pull requests

4 participants