12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?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"
- xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
- x:Class="InABox.Mobile.MobileGrid"
- >
- <ContentView.Content>
- <Grid RowSpacing="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <mobile:MobileSearchBar
- x:Name="Search"
- Grid.Row="0"
- IsVisible="true"
- PlaceHolder="Search"
- TextChanged="Search_OnTextChanged"
- BackgroundColor="Transparent"
- Margin="0,0,0,5"
- />
- <mobile:MobileCard
- Grid.Row="1"
- BackgroundColor="WhiteSmoke">
-
- <xForms:SfDataGrid
- x:Name="Grid"
- AutoGenerateColumns="False"
- SelectionMode="Single"
- GridViewCreated="Grid_OnGridViewCreated"
- SelectionChanged="Grid_OnSelectionChanged"
- GridTapped="Grid_OnGridTapped"
- AllowPullToRefresh="True"
- >
- <xForms:SfDataGrid.GridStyle>
- <xForms:DefaultStyle
- GridCellBorderWidth="0"
- RowBackgroundColor="White"
- RowForegroundColor="Black"
- AlternatingRowColor="WhiteSmoke"
- SelectionBackgroundColor="Purple"
- SelectionForegroundColor="White"
- HeaderForegroundColor="DimGray"
- HeaderBackgroundColor="Transparent"
- HeaderCellBorderWidth="0"/>
- </xForms:SfDataGrid.GridStyle>
- </xForms:SfDataGrid>
-
- </mobile:MobileCard>
-
- </Grid>
- </ContentView.Content>
- </ContentView>
|