| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="utf-8"?>
- <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:xForms="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
- xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
- x:Class="InABox.Mobile.MobileGrid" Background="LightGray">
- <ContentView.Content>
- <Grid RowSpacing="0" Background="LightGray">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid x:Name="_searchGrid" Grid.Row="0" Background="Transparent" Padding="5">
- <Frame CornerRadius="5" Background="White" Padding="0,0,0,2">
- <SearchBar x:Name="Search"
- IsVisible="true"
- Placeholder="Search"
- TextChanged="Search_OnTextChanged"
- FontSize="14" BackgroundColor="White"/>
- </Frame>
- </Grid>
-
- <xForms:SfDataGrid
- x:Name="Grid"
- Grid.Row="1"
- AutoGenerateColumns="False"
- SelectionMode="Single"
- GridViewCreated="Grid_OnGridViewCreated"
- SelectionChanged="Grid_OnSelectionChanged"
- GridTapped="Grid_OnGridTapped"
- AllowPullToRefresh="True"
- Background="White">
- <xForms:SfDataGrid.GridStyle>
- <xForms:DefaultStyle
- GridCellBorderWidth="0"
- RowBackgroundColor="White"
- RowForegroundColor="Black"
- AlternatingRowColor="WhiteSmoke"
- SelectionBackgroundColor="Purple"
- SelectionForegroundColor="White"
- HeaderBackgroundColor="LightGray"/>
- </xForms:SfDataGrid.GridStyle>
- </xForms:SfDataGrid>
-
- </Grid>
- </ContentView.Content>
- </ContentView>
|