-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
49 lines (47 loc) · 3.02 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="MauiApp1.MainPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:todo="clr-namespace:MauiApp1">
<CollectionView Margin="16" ItemsSource="{Binding TestCBs}">
<CollectionView.ItemsLayout>
<LinearItemsLayout ItemSpacing="20" Orientation="Vertical" />
</CollectionView.ItemsLayout>
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="todo:TestCB">
<Grid
ColumnDefinitions="120,*"
ColumnSpacing="6"
RowDefinitions="190,*">
<Image
Grid.Row="0"
Grid.Column="0"
Aspect="AspectFill"
Source="{Binding Image}" />
<VerticalStackLayout Grid.Row="0" Grid.Column="1">
<Label Text="{Binding Title}" />
<Label Text="more text" />
<Label Text="more text" />
<ScrollView Orientation="Horizontal">
<HorizontalStackLayout BindableLayout.ItemsSource="{Binding Hours}" Spacing="6">
<BindableLayout.ItemTemplate>
<DataTemplate>
<Button
BackgroundColor="Orange"
Text="{Binding .}"
TextColor="{StaticResource White}" />
</DataTemplate>
</BindableLayout.ItemTemplate>
</HorizontalStackLayout>
</ScrollView>
</VerticalStackLayout>
<Label
Grid.Row="1"
Grid.ColumnSpan="2"
Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium, orci in fringilla interdum, tortor arcu pretium dui, eget vestibulum massa ligula congue nunc. Curabitur id nisl porta, lacinia nisi et, suscipit dui. Mauris bibendum ante in pretium sollicitudin. In maximus lorem sem, et molestie diam euismod quis. Sed porttitor maximus mi, at tincidunt ligula fermentum et. Donec diam lorem, vulputate eu consequat ut, facilisis at metus. In non elementum velit, a ultrices elit. Suspendisse a malesuada ante. Praesent risus lorem, facilisis sed orci ac, congue pellentesque nisi. Maecenas turpis nibh, semper sed consequat sit amet, lobortis ut sapien. Mauris turpis arcu, sollicitudin venenatis ligula in, accumsan blandit augue. Integer pellentesque nisi at tempor posuere. Proin ut maximus sem, vel vestibulum risus. Nam vel ipsum ac nunc pellentesque luctus. Integer non velit tortor." />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>