GenericSelectionPage.xaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <timesheets:BasePage
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:material="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. xmlns:timesheets="clr-namespace:comal.timesheets"
  7. material:MaterialNavigationPage.AppBarTitleTextFontSize="16.0"
  8. x:Class="comal.timesheets.GenericSelectionPage">
  9. <timesheets:BasePage.PageContent>
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition Width="*"/>
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <material:MaterialTextField Grid.Row="0" Grid.Column="0" Margin="10,10,10,0" Placeholder="Search" HorizontalOptions="Fill" TextChanged="MaterialTextField_TextChanged"/>
  19. <Frame BorderColor="Gray" Grid.Row="1" Grid.Column="0" CornerRadius="0" HasShadow="false" BackgroundColor="WhiteSmoke" Padding="0" VerticalOptions="FillAndExpand" Margin="10">
  20. <ListView x:Name="Items" VerticalOptions="FillAndExpand" Margin="1" ItemSelected="Item_Selected" HasUnevenRows="True" BackgroundColor="WhiteSmoke">
  21. <ListView.ItemTemplate>
  22. <DataTemplate>
  23. <ViewCell>
  24. <Grid BackgroundColor="WhiteSmoke" >
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="*" />
  27. </Grid.ColumnDefinitions>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="Auto"/>
  30. </Grid.RowDefinitions>
  31. <Label Text="{Binding Key}" Grid.Column="0" Padding="10" VerticalTextAlignment="Center" Margin="5" HorizontalTextAlignment="Center" TextColor="Black"/>
  32. </Grid>
  33. </ViewCell>
  34. </DataTemplate>
  35. </ListView.ItemTemplate>
  36. </ListView>
  37. </Frame>
  38. </Grid>
  39. </timesheets:BasePage.PageContent>
  40. </timesheets:BasePage>