123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentView 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"
- xmlns:timesheets="clr-namespace:comal.timesheets"
- x:Class="comal.timesheets.ExistingForms">
-
- <ContentView.BindingContext>
- <timesheets:ExistingFormsViewModel x:Name="_model" />
- </ContentView.BindingContext>
-
- <ContentView.Content>
- <Grid RowSpacing="0" Background="WhiteSmoke">
-
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <timesheets:MobileSearchBar
- x:Name="_search"
- PlaceHolder="Search"
- TextChanged="_search_OnTextChanged"
- TextSize="14"/>
-
- <timesheets:MobileList
- x:Name="_forms"
- Grid.Row="1"
- RowHeight="80"
- PullToRefresh="True"
- Refresh="_digitalforms_OnRefresh"
- ItemTapped="EditForm" >
-
- <timesheets:MobileList.ItemTemplate>
-
- <DataTemplate>
- <ui:MaterialCard
- CornerRadius="5"
- Elevation="0"
- HorizontalOptions="FillAndExpand"
- BorderColor="Silver"
- Margin="5,0,5,5"
- BackgroundColor="White"
- Padding="5">
-
- <Grid
- x:DataType="timesheets:IDigitalFormInstanceShell"
- RowSpacing="0"
- ColumnSpacing="0">
-
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
-
- <Image
- Grid.Row="0"
- Grid.Column="0"
- Grid.RowSpan="2"
- Margin="5"
- Source="forms.png"
- HeightRequest="48"
- WidthRequest="48"
- VerticalOptions="Center"
- HorizontalOptions="Center"/>
-
- <ui:MaterialLabel
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding Code}"
- TypeScale="H6"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Start"
- VerticalOptions="Fill"
- VerticalTextAlignment="Center"
- LineHeight="1.0"
- Margin="0,5,0,5"/>
-
- <ui:MaterialLabel
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding Description}"
- TypeScale="Body2"
- HorizontalOptions="Fill"
- HorizontalTextAlignment="Start"
- VerticalOptions="Fill"
- VerticalTextAlignment="Start"
- LineBreakMode="WordWrap"
- LineHeight="1.0"
- Margin="0"/>
-
- </Grid>
- </ui:MaterialCard>
- </DataTemplate>
- </timesheets:MobileList.ItemTemplate>
-
- </timesheets:MobileList>
-
- <Image
- Source="add"
- Grid.Row="1"
- HorizontalOptions="End"
- VerticalOptions="End"
- Margin="0,0,5,5">
- <Image.GestureRecognizers>
- <TapGestureRecognizer Tapped="AddForm_Tapped" />
- </Image.GestureRecognizers>
- </Image>
-
- </Grid>
-
- </ContentView.Content>
- </ContentView>
|