Xamarin listview of List

后端 未结 1 616
猫巷女王i
猫巷女王i 2021-01-22 14:48

I\'m making a mobile app and I\'m trying to load a list in a listview. The list has multiple elements and a list:

public static List Propositio         


        
相关标签:
1条回答
  • 2021-01-22 15:52

    You could use Bindable Layout

    in Xaml

     <StackLayout Orientation="Horizontal">
         <StackLayout x:Name="StackLayoutMap" BindableLayout.ItemsSource="{Binding Users}">
                <BindableLayout.ItemTemplate>
                    <DataTemplate>
    
                        <Label Text="{Binding Naam}" TextColor="Red" ... />
    
                    </DataTemplate>
                </BindableLayout.ItemTemplate>                     
         </StackLayout>
    //...
    </StackLayout>
    

    For more details about Bindable Layout you could refer this doc .

    0 讨论(0)
提交回复
热议问题