Weird behavior of custom content view in Array Markup Extension

I am trying to instantiate a CarouselView by XAML like this:

            <CarouselView Grid.Row="1"
                    <x:Array Type="{x:Type views:ItemCollectionView}">
                        <views:ItemCollectionView Items="{Binding Orders}"/>
                        <views:ItemCollectionView Items="{Binding Invoices}"/>
                        <views:ItemCollectionView Items="{Binding Returns}"/>

Not only do the bindings not seem to work as they stay null even after setting the BindingContext to my VM, I am unable to give the views inside the Array an x:Name.

Furthermore they display very weirdly as shown here:

Has anyone any guidance on these problems? Should I simply instantiate my array in code?
Thank you

Best Answer


Sign In or Register to comment.