| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?xml version="1.0" encoding="utf-8" ?>
- <mobile:MobilePage xmlns:local="clr-namespace:PRS.Mobile" xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
- x:Class="PRS.Mobile.ListSelectionPage">
- <mobile:MobilePage.PageContent>
- <Grid Margin="5" RowSpacing="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <local:FilterOptionsControl Grid.Row="0" IsVisible="false" x:Name="filterOptionsControl"/>
-
- <Frame Grid.Row="1" HasShadow="False" BorderColor="Gray" CornerRadius="5" Padding="0" Margin="1" BackgroundColor="White">
- <Entry x:Name="searchEnt" TextChanged="SearchEnt_Changed" Placeholder="Search" BackgroundColor="LightYellow"/>
- </Frame>
-
- <ListView Grid.Row="2" HasUnevenRows="True"
- x:Name="listView"
- BackgroundColor="Transparent"
- SeparatorVisibility="None">
- <ListView.ItemTemplate>
- <DataTemplate>
- <ViewCell Tapped="Item_Tapped">
- <Frame HasShadow="False" BorderColor="Gray" CornerRadius="5" Padding="3" Margin="1" BackgroundColor="White">
- <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="Small"
- TextColor="Black"
- />
- <Image Grid.Row="1"
- Source="{Binding ImageSource}" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
- </Grid>
- </Frame>
- </ViewCell>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </mobile:MobilePage.PageContent>
- </mobile:MobilePage>
|