-
-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathMainPage.xaml
26 lines (24 loc) · 889 Bytes
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:mauiStaggeredCollectionView="using:MauiStaggeredCollectionView"
x:Class="MauiStaggeredCollectionView.MainPage">
<CollectionView x:Name="MyCollectionView">
<CollectionView.ItemsLayout>
<mauiStaggeredCollectionView:StaggeredItemsLayout Span="2" />
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid x:DataType="mauiStaggeredCollectionView:Card">
<Image Source="{Binding Image}"/>
<Label
Text="{Binding Label}"
HeightRequest="20"
VerticalOptions="End"
BackgroundColor="Red"
Opacity="0.7"/>
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>