We made a XAML element that represents the items we'd like to populate without knowing how many there will be.
Aside from the ListView
, is there a way to repeat XAML according to how many elements we have to show?
Look at this fantasy:
<foreach ItemsSource="{Binding Collection}">
<Frame OutlineColor="#495051">
<StackLayout HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Label Text="{Binding Text}"
Font="Bold"
FontSize="Medium" />
<Label Text="{Binding Detail}"
FontSize="Medium" />
</StackLayout>
</Frame>
</foreach>
What do you think?