-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed CollectionView SelectedItem binding issue on initial loading #25555
Conversation
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CollectionViewPreSelectionShouldUpdate
Failing
Hi @PureWeen , The CollectionViewPreSelectionShouldUpdate failed due to a missing snapshot on the Windows platform. We have now included the snapshot. Please review and let us know if there are any concerns. |
/rebase |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
Issue Details
Root Cause
ListViewBase.IsSynchronizedWithCurrentItem
property setting. Additionally, the visual state is applied before the item view control is created.ItemsSource
.Fix Details
SelectedItem
while updating the native view property. Additionally, theItemContentControl
's visual state is now applied after it is created.Reference:
iOS - ios - How to select some items in the UICollectionView after it first load? - Stack Overflow
Issues Fixed
Fixes #25551
Fixes #23299
Output Screenshot