Closed romitnurani closed 6 years ago
Is there a particular reason you're creating parts of the view in the view model?
Are you needing the ability to create the segments at runtime rather than in xaml?
Yes, My segments are decided and added on runtime. They aren't static/constant. It could be any number.
Is it a one time binding or do you need the ability to update and remove segments anytime?
One time binding.
This seems to be related to #13
This is not currently a feature that is available. I'll consider it going forward. Also feel free to do a PR on this.
I also really need this feature. :)
Getting this exception when trying to assign variable of type "IList" to "Children" property of SegmentedControl.
- XAML FIle `<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:SegmentControlTestApp" xmlns:control="clr-namespace:SegmentedControl.FormsPlugin.Abstractions;assembly=SegmentedControl.FormsPlugin.Abstractions" x:Class="SegmentControlTestApp.MainPage">
`
- VIEWMODEL File ` public class ViewModel {