Skip to content

Controls

Neil McAlister edited this page Feb 8, 2017 · 1 revision

Controls

Xalami includes an extra panel to make layout a little simpler.

ItemsStack

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.

Usage

<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>

Clone this wiki locally