1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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"
- x:Class="comal.timesheets.ListSelectionPage">
- <timesheets:BasePage.PageContent>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <timesheets:FilterOptionsControl Grid.Row="0" IsVisible="false" x:Name="filterOptionsControl"/>
-
- <Entry Grid.Row="1" x:Name="searchEnt" TextChanged="SearchEnt_Changed" Placeholder="Search"/>
-
- <ListView Grid.Row="2" HasUnevenRows="True"
- x:Name="listView">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell Tapped="Item_Tapped">
- <Frame HasShadow="False" BorderColor="#15C7C1" CornerRadius="5" Padding="3" Margin="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="{Binding ExtraRowHeight}"/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0"
- Text="{Binding Value}" HorizontalOptions="Center" LineBreakMode="CharacterWrap" Margin="5"
- HorizontalTextAlignment="Center"
- VerticalOptions="Center" FontSize="Medium"/>
- <Image Grid.Row="1"
- Source="{Binding ImageSource}" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
- </Grid>
- </Frame>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </timesheets:BasePage.PageContent>
- </timesheets:BasePage>
|