alexrainman / SegmentedControl

MIT License
86 stars 38 forks source link

Cannot add or remove segments #107

Open tbrentlong opened 3 years ago

tbrentlong commented 3 years ago

When attempting to dynamically add segments (myControl.Children.Add(new...), the segments to not appear. If I go the other route and create the max number of segments that I could need in xaml and then try to remove the ones I don't need (Children.RemoveAt), the segments do not get removed from the control. Is there a way to dynamically control the segments? Best option would be to databind to a list on the viewmodel.