Describe the bug
A curious bug is that if a Segmented has exactly 2 SegmentedItem and SelectedIndex is set to 1, the item is not in selected visual state. It does not seem to happen on any other combination.
I looked into the code, but found nothing out of ordinary. I would guess it's a ListViewBase bug, but the official ListView and GridView which inheirt from it does not have such issue.



Steps to reproduce
1. Create a new winui3 project, install the segmented community toolkit nuget
2. See above
Expected behavior
The item should be selected.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
24H2
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
No, I'm unable to contribute a solution.
Describe the bug
A curious bug is that if a
Segmentedhas exactly 2SegmentedItemandSelectedIndexis set to1, the item is not in selected visual state. It does not seem to happen on any other combination.I looked into the code, but found nothing out of ordinary. I would guess it's a
ListViewBasebug, but the officialListViewandGridViewwhich inheirt from it does not have such issue.Steps to reproduce
Expected behavior
The item should be selected.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
24H2
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
No, I'm unable to contribute a solution.