“Used to get or set the selected segment number. The first segment is numbered zero. […] A value of -1 means no selection.”
My SegmentedButton (named: sb_Button) is set to “Single” selection and has four segments. I want to programatically deselect a previous selected segment with this code:
sb_Button.SelectedSegmentIndex = -1
but nothing happens. Trying to select one of the segments with
sb_Button.SelectedSegmentIndex = 2
works fine, but -1 is not recognized. Is this a (known) bug or did I miss something about how to deselect segments? Or is that impossible at all?