1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?xml version="1.0" encoding="utf-8" ?>
- <timesheets:BasePage xmlns:timesheets="clr-namespace:comal.timesheets" xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
-
- xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- x:Class="comal.timesheets.PDFList"
- Title="Documents">
-
- <timesheets:BasePage.ActionButtons>
- <ImageButton x:Name="_upload" Source="add" Clicked="Upload_Clicked" />
- </timesheets:BasePage.ActionButtons>
-
- <timesheets:BasePage.PageContent>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
-
- <ui:MaterialLabel
- Grid.Row="0"
- Text="Tap on a file name to open PDF"
- HorizontalOptions="Center"
- VerticalOptions="Center"
- LineBreakMode="WordWrap"
- HorizontalTextAlignment="Center"
- TypeScale="H6"
- />
-
- <timesheets:MobileList
- x:Name="_documents"
- Grid.Row="1"
- ItemTapped="_documents_OnItemTapped">
- <timesheets:MobileList.ItemTemplate>
- <DataTemplate x:DataType="timesheets:IDocumentShell">
- <ui:MaterialCard
- CornerRadius="5"
- Elevation="0"
- HorizontalOptions="FillAndExpand"
- BorderColor="Silver"
- Margin="5,0,5,5"
- BackgroundColor="White"
- Padding="5"
- Clicked="MaterialCard_OnClicked"
- IsClickable="False">
-
- <Grid
-
- RowSpacing="0"
- ColumnSpacing="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
-
- <Image
- Grid.Row="0"
- Source="{Binding Thumbnail}"
- />
-
- <ui:MaterialLabel
- Grid.Row="1"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Center"
- TypeScale="Body2"
- Text="{Binding FileName}" />
-
- </Grid>
- </ui:MaterialCard>
- </DataTemplate>
- </timesheets:MobileList.ItemTemplate>
- </timesheets:MobileList>
-
- </Grid>
-
- </timesheets:BasePage.PageContent>
- </timesheets:BasePage>
|