MobileGrid.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
  6. x:Class="InABox.Mobile.MobileGrid" Background="LightGray">
  7. <ContentView.Content>
  8. <Grid RowSpacing="0" Background="LightGray">
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="Auto"/>
  11. <RowDefinition Height="*"/>
  12. </Grid.RowDefinitions>
  13. <Grid x:Name="_searchGrid" Grid.Row="0" Background="Transparent" Padding="5">
  14. <Frame CornerRadius="5" Background="White" Padding="0,0,0,2">
  15. <SearchBar x:Name="Search"
  16. IsVisible="true"
  17. Placeholder="Search"
  18. TextChanged="Search_OnTextChanged"
  19. FontSize="14" BackgroundColor="White"/>
  20. </Frame>
  21. </Grid>
  22. <xForms:SfDataGrid
  23. x:Name="Grid"
  24. Grid.Row="1"
  25. AutoGenerateColumns="False"
  26. SelectionMode="Single"
  27. GridViewCreated="Grid_OnGridViewCreated"
  28. SelectionChanged="Grid_OnSelectionChanged"
  29. GridTapped="Grid_OnGridTapped"
  30. AllowPullToRefresh="True"
  31. Background="White">
  32. <xForms:SfDataGrid.GridStyle>
  33. <xForms:DefaultStyle
  34. GridCellBorderWidth="0"
  35. RowBackgroundColor="White"
  36. RowForegroundColor="Black"
  37. AlternatingRowColor="WhiteSmoke"
  38. SelectionBackgroundColor="Purple"
  39. SelectionForegroundColor="White"
  40. HeaderBackgroundColor="LightGray"/>
  41. </xForms:SfDataGrid.GridStyle>
  42. </xForms:SfDataGrid>
  43. </Grid>
  44. </ContentView.Content>
  45. </ContentView>