1iveowl / Plugin.SegmentedControl

MIT License
170 stars 29 forks source link

Children property changes not working #62

Closed bluekuen closed 5 years ago

bluekuen commented 5 years ago

Hello, i have a problem with the SegmentedControl. I add Items via Children.Add(new SegmentedControlOption(){Text="Test"}) but the SegmentedControl is not updating. only if i set the Children Property as a whole new.

I did set the Binding and the initial Segments are showing. I also tried firing the PropertyChanged manually, but with no success.

1iveowl commented 5 years ago

Not sure I understand the issue. Can you describe how to reproduce or even better point to some simple code reproducing the issue?

bluekuen commented 5 years ago

Hello @1iveowl, i bound the ItemSource property to a property in my ViewModel and was wondering why changes to the ItemSource property don't effect the UI. I realized that i have to completely reassign the ItemsSource property that changes take effect. So just a simple misunderstanding, i thought the ItemsSource property reacts to CollectionChanged notifications.