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
CollectionView's SelectionChanged method cannot be triggered when tapping the item directly #9567
Comments
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
@mattleibow : I am also facing similar issue when using Frame inside CollectionView, Is there any workaround which I can use until the issue is fixed? |
Maybe you can set the collectionview's SelectedItem as null in some event, thus the SelectionChanged event can be triggered when u tap it. After something happened when u tapped the row, for example u navigate to a page. when u back to this page again, the SelectedItems can be set null in event Appearing.
|
maybe u can refer to my solution. |
I had a similar issue with a set of RadioButtons as well as a CollectionView. <ControlTemplate x:Key="Framed">
<Frame>
<ContentPresenter />
</Frame>
</ControlTemplate> In another case I replaced the Frame with a Border since it made no difference. |
I replaced frame with border, and it worked fine. |
I'm facing with the same problem. The SelectionChanged event will not be triggered when tapping on a menu item. None of the solutions above worked for me. Can you tell when this bug will be fixed? Thanks in advance |
Would you please share a sample code for mimicking the issue? |
This is still an issue |
Still an issue, was able to use a border instead of a frame to get similar results. |
Still an issue, used border for now. Hope to see this fixed. |
Verified this issue with Visual Studio Enterprise 17.9.0 Preview 1.0. Can repro on android platform. |
Same problem here. |
Description
CollectionView's SelectionChanged method cannot triggered when tapping the item directly.
Steps to Reproduce
1.create a maui app;
2.copy the following code to the MainPage.xaml:
MyViewModel.cs
3.Deploy the app to a android device, and tap directly on the item, the SelectionChanged method is not being triggered and will be triggered only if clicking on the frame border or outside of it.
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
android 10
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: