Skip to content

Commit 61c7d92

Browse files
committed
Update Segmented.cs
1 parent 8c5337d commit 61c7d92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/SegmentedControl/src/Segmented/Segmented.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ private void OnSelectedIndexChanged(DependencyObject sender, DependencyProperty
132132
// This is a workaround for https://github.com/microsoft/microsoft-ui-xaml/issues/8257
133133
if (_internalSelectedIndex == -1 && SelectedIndex > -1)
134134
{
135+
// We catch the correct SelectedIndex and save it.
135136
_internalSelectedIndex = SelectedIndex;
136137
}
137138
}

0 commit comments

Comments
 (0)