You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: SelectorBarSegmented's SelectedIndex property not getting updated on change #205
Hello @ghost1372! I hope you are well. I was using the CommunityToolkit's Segmented control with the following setup, then switched the control to DevWinUI's SelectorBarSegmented control and the SelectedIndex property is no longer being updated on SelectorBarItem change. Am I doing something wrong here? Thanks a lot.
Steps to reproduce the bug
Set up a SelectorBarSegmented control similar to the following, binding the SelectedIndex to a 2-way property.
public class WIP : ObservableObject, IDisposable { private int _currentWipSection = 0; public int CurrentWIPSectionIndex { get => _currentWipSection; set { if (_currentWipSection != value) // breakpoint set here never gets hit { _currentWipSection = value; OnPropertyChanged(nameof(CurrentWIPSectionIndex)); } } }
Expected behavior
For the SelectedIndex property to change and the breakpoint set in CurrentWIPSectionIndex to be hit on change.
Activity
Fix SelectorBarSegmented SelectedIndex TwoWay Binding #205
ghost1372 commentedon Aug 25, 2026
Hi @MPITech
Thank you for your report. it is now fixed with 9f4b8b3
MPITech commentedon Aug 26, 2026
Thanks a lot!