MobileGrid.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:xForms="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
  5. x:Class="comal.timesheets.MobileGrid" Background="LightGray">
  6. <ContentView.Content>
  7. <Grid RowSpacing="0" Background="LightGray">
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="*"/>
  11. </Grid.RowDefinitions>
  12. <Frame Grid.Row="0" BorderColor="Transparent" Background="LightGray" Padding="5">
  13. <Frame CornerRadius="5" Background="White" Padding="0,0,0,2">
  14. <SearchBar x:Name="Search"
  15. IsVisible="true"
  16. Placeholder="Search"
  17. TextChanged="Search_OnTextChanged"
  18. FontSize="14" BackgroundColor="White"/>
  19. </Frame>
  20. </Frame>
  21. <xForms:SfDataGrid
  22. x:Name="Grid"
  23. Grid.Row="1"
  24. AutoGenerateColumns="False"
  25. SelectionMode="Single"
  26. GridViewCreated="Grid_OnGridViewCreated"
  27. SelectionChanged="Grid_OnSelectionChanged"
  28. GridTapped="Grid_OnGridTapped"
  29. AllowPullToRefresh="True"
  30. Background="White">
  31. <xForms:SfDataGrid.GridStyle>
  32. <xForms:DefaultStyle
  33. GridCellBorderWidth="0"
  34. RowBackgroundColor="White"
  35. RowForegroundColor="Black"
  36. AlternatingRowColor="WhiteSmoke"
  37. SelectionBackgroundColor="Purple"
  38. SelectionForegroundColor="White"
  39. HeaderBackgroundColor="LightGray"/>
  40. </xForms:SfDataGrid.GridStyle>
  41. </xForms:SfDataGrid>
  42. </Grid>
  43. </ContentView.Content>
  44. </ContentView>