-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
52 lines (49 loc) · 2.21 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
50
51
52
<?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:local="clr-namespace:Docutain_SDK_Example_.NET_MAUI"
x:Class="Docutain_SDK_Example_.NET_MAUI.MainPage"
Title="Docutain SDK Example">
<ContentPage.Resources>
<ResourceDictionary>
<local:ThemeImageSrcConverter x:Key="ThemeToImgSrc" />
</ResourceDictionary>
</ContentPage.Resources>
<ListView x:Name="lv_Actions"
HasUnevenRows="true"
SelectionMode="None" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="16"
ColumnSpacing="16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="36" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Source="{Binding ImgSrc, Converter={StaticResource ThemeToImgSrc}}"
Grid.Row="0"
Grid.Column="0"
Grid.RowSpan="2"/>
<Label Text="{Binding Header}"
FontAttributes="Bold"
FontSize="Body"
Grid.Row="0"
Grid.Column="1"
/>
<Label Text="{Binding Description}"
FontSize="Default"
LineBreakMode="WordWrap"
Grid.Row="1"
Grid.Column="1"
/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</ContentPage>