MobileGrid.xaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. <Frame
  25. Grid.Row="1"
  26. BorderColor="Gray"
  27. CornerRadius="5"
  28. HasShadow="False"
  29. Padding="0"
  30. BackgroundColor="WhiteSmoke">
  31. <xForms:SfDataGrid
  32. x:Name="Grid"
  33. AutoGenerateColumns="False"
  34. SelectionMode="Single"
  35. GridViewCreated="Grid_OnGridViewCreated"
  36. SelectionChanged="Grid_OnSelectionChanged"
  37. GridTapped="Grid_OnGridTapped"
  38. AllowPullToRefresh="True"
  39. >
  40. <xForms:SfDataGrid.GridStyle>
  41. <xForms:DefaultStyle
  42. GridCellBorderWidth="0"
  43. RowBackgroundColor="White"
  44. RowForegroundColor="Black"
  45. AlternatingRowColor="WhiteSmoke"
  46. SelectionBackgroundColor="Purple"
  47. SelectionForegroundColor="White"
  48. HeaderForegroundColor="DimGray"
  49. HeaderBackgroundColor="Transparent"
  50. HeaderCellBorderWidth="0"/>
  51. </xForms:SfDataGrid.GridStyle>
  52. </xForms:SfDataGrid>
  53. </Frame>
  54. </Grid>
  55. </ContentView.Content>
  56. </ContentView>