Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

StackLayout ItemTemplate

$
0
0

Hi! For my project I need to declare an itemTemplate in a stackLayout.
With the traditional xaml I could declare something like that:

< StackLayout Orientation="Horizontal" VerticalOptions="Fill" HorizontalOptions="Fill">
<StackLayout.ItemTemplate>
< DataTemplate>
< Button>
<Button.Template>
< Label HorizontalOptions="FillAndExpand" Height="60" />
< Image Aspect="AspectFill" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" />
</Button.Template>
< /Button>
< /DataTemplate>
< /StackLayout.ItemTemplate>
< /StackLayout>

How can i do whit xamarin.forms?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>