-
Notifications
You must be signed in to change notification settings - Fork 4
Controls
Neil McAlister edited this page Feb 8, 2017
·
1 revision
Xalami includes an extra panel to make layout a little simpler.
ItemsStack displays a list of repeating elements using DataTemplates. You can think of it as a bindable, templatable StackLayout. It does not virtualize its elements, or include scrolling.
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xalami.Views.MainPage"
xmlns:ctls="clr-namespace:Xalami.Controls">
<ctls:ItemsStack ItemsSource="{Binding MySourceOfStuff}">
<ctls:ItemsStack.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Model.SomeProperty}"/>
</DataTemplate>
</ctls:ItemsStack.ItemTemplate>
</ctls:ItemsStack>
</ContentPage>