Open Jyosua opened 6 years ago
I put the entire sample project up in a repository here: https://github.com/Jyosua/SegmentedControlBug_SampleProject
@alexrainman Are you able to look into this? I am also having this problem... Thank you!
Turns out it is an easy fix...
SelectedSegment="{Binding Status, Mode=TwoWay}"
Hi! We were trying to use this control within the DataTemplate of a ListView and found that the SelectedSegment binding was not working after the first change on Android. On iOS, it only seems to stop working if you manually toggle the control before programmatically changing the bound property. I was able to reproduce this in a small sample project. Below are the MainPage.xaml, corresponding codebehind, and supporting code that I reproduced this on.
The TintColor binding appears to continue to work in any case. It's just the SelectedSegment binding that stops working.