Forum Xamarin.iOS

How to set item template for iOS listview?

SuperDev.2956SuperDev.2956 USMember ✭✭

I need to change item template, aka view switching. Have two DataTemplate type resources in page dictionary.
Following trick works on Android and UWP, but not for iOS, even if I refresh item source.

        <ListView HasUnevenRows="True" ItemTemplate="{StaticResource ListLarge}">
                <DataTrigger TargetType="ListView"
                             Binding="{Binding SmallView}"
                    <Setter Property="ItemTemplate" Value="{StaticResource ListSmall}" />

Guess I should write special render to push iOS change template of list. Anyone did something?

Sign In or Register to comment.