MobileGrid.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  7. x:Class="InABox.Mobile.MobileGrid"
  8. >
  9. <ContentView.Content>
  10. <Grid RowSpacing="0">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <mobile:MobileSearchBar
  16. x:Name="Search"
  17. Grid.Row="0"
  18. IsVisible="true"
  19. PlaceHolder="Search"
  20. TextChanged="Search_OnTextChanged"
  21. BackgroundColor="Transparent"
  22. Margin="0,0,0,5"
  23. />
  24. <mobile:MobileCard
  25. Grid.Row="1"
  26. BackgroundColor="WhiteSmoke">
  27. <xForms:SfDataGrid
  28. x:Name="Grid"
  29. AutoGenerateColumns="False"
  30. SelectionMode="Single"
  31. GridViewCreated="Grid_OnGridViewCreated"
  32. SelectionChanged="Grid_OnSelectionChanged"
  33. GridTapped="Grid_OnGridTapped"
  34. AllowPullToRefresh="True"
  35. >
  36. <xForms:SfDataGrid.GridStyle>
  37. <xForms:DefaultStyle
  38. GridCellBorderWidth="0"
  39. RowBackgroundColor="White"
  40. RowForegroundColor="Black"
  41. AlternatingRowColor="WhiteSmoke"
  42. SelectionBackgroundColor="Purple"
  43. SelectionForegroundColor="White"
  44. HeaderForegroundColor="DimGray"
  45. HeaderBackgroundColor="Transparent"
  46. HeaderCellBorderWidth="0"/>
  47. </xForms:SfDataGrid.GridStyle>
  48. </xForms:SfDataGrid>
  49. </mobile:MobileCard>
  50. </Grid>
  51. </ContentView.Content>
  52. </ContentView>