Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
6.9 kB
3
Indexable
Never
<Grid RowDefinitions="Auto,Auto,Auto,*">
        <Frame HeightRequest="100" CornerRadius="50" BackgroundColor="{StaticResource FrameColor_1}"
               Margin="0,-50,0,0"/>
        <Label Grid.Row="0" Text="Users" Margin="20" FontSize="Large"
               FontAttributes="Bold" VerticalOptions="Center" TextColor="{StaticResource TextColorWhite}"/>
        <ImageButton Grid.Row="0" HorizontalOptions="EndAndExpand"
                     Source="add.png" HeightRequest="30" WidthRequest="40"
                     VerticalOptions="Center"
                     Margin="20" BackgroundColor="Transparent"/>
        <SearchBar Grid.Row="1" Margin="10" Placeholder="Find School"
                   BackgroundColor="{StaticResource FrameColor_1}"
                   TextColor="{StaticResource TextColorWhite}"
                   CancelButtonColor="{StaticResource TextColorWhite}"
                   PlaceholderColor="{StaticResource TextSoft}"/>
        <Label Grid.Row="2" BackgroundColor="{StaticResource Primary}" x:Name="loader" TextColor="{StaticResource TextSoft}"
               HorizontalOptions="CenterAndExpand"/>
        <CollectionView Grid.Row="3" x:Name="ListUsers">
            <CollectionView.ItemsLayout>
                <GridItemsLayout Orientation="Vertical" Span="1" />
            </CollectionView.ItemsLayout>
            <CollectionView.ItemTemplate>
                <DataTemplate>
                    <ContentView Padding="2">
                        <!--<SwipeView HeightRequest="96" 
                                   WidthRequest="50" 
                                   BackgroundColor="Transparent"
                                   IsClippedToBounds="True">
                            <SwipeView.LeftItems>
                                <SwipeItems Mode="Execute">
                                    <SwipeItemView BackgroundColor="Transparent"
                                                   Margin="5" x:Name="itemOnEdit">
                                        <StackLayout Margin="5">
                                            <StackLayout Orientation="Vertical"
                                                         VerticalOptions="CenterAndExpand"
                                                         HorizontalOptions="CenterAndExpand">
                                                <Image Source="edit" HeightRequest="20"
                                                                    WidthRequest="20"
                                                                    Aspect="AspectFit" />
                                                <Label Text="Edit" 
                                                       HorizontalOptions="CenterAndExpand"
                                                       VerticalOptions="CenterAndExpand"
                                                       TextColor="{StaticResource TextColorWhite}"
                                                       FontSize="Micro"/>
                                            </StackLayout>
                                        </StackLayout>
                                    </SwipeItemView>
                                </SwipeItems>
                            </SwipeView.LeftItems>-->
                            <Frame CornerRadius="10" HeightRequest="95" Padding="0" Margin="2" IsClippedToBounds="True"
                                               BackgroundColor="{StaticResource Primary}" HasShadow="False">
                                <!--Must add expander so the client can view if the renter has an advance payment-->
                                <Grid ColumnDefinitions="Auto, *">
                                    <Line Grid.Column="0" WidthRequest="5" BackgroundColor="{StaticResource ButtonColor}"/>
                                    <StackLayout Grid.Column="1" Margin="15" Orientation="Horizontal" HorizontalOptions="FillAndExpand"
                                                 BackgroundColor="Transparent">
                                        <Grid RowSpacing="0" RowDefinitions="Auto, Auto, Auto"
                                              ColumnDefinitions="Auto, *">
                                            <Label VerticalOptions="CenterAndExpand" Text="First Name:"
                                                   TextColor="{StaticResource TextSoft}"
                                                   FontSize="Medium" LineBreakMode="TailTruncation"
                                                   HorizontalOptions="Start" Grid.Row="0" Grid.Column="0" />
                                            <Label Grid.Row="0" Grid.Column="1" Text="{Binding FirstName}"
                                                   FontSize="Medium"
                                                   FontAttributes="Bold" LineBreakMode="TailTruncation"
                                                   TextColor="{StaticResource TextColorWhite}" />

                                            <Label VerticalOptions="CenterAndExpand" Text="School name:"
                                                   TextColor="{StaticResource TextSoft}"
                                                   FontSize="Medium"
                                                   HorizontalOptions="Start" Grid.Row="1" Grid.Column="0" />
                                            <Label Grid.Row="1" Grid.Column="1" Text="{Binding SchoolName}"
                                                   FontSize="Medium"
                                                   FontAttributes="Bold" LineBreakMode="TailTruncation"
                                                   TextColor="{StaticResource TextColorWhite}" />

                                            <Label VerticalOptions="CenterAndExpand" Text="School address:"
                                                   TextColor="{StaticResource TextSoft}"
                                                   FontSize="Medium"
                                                   HorizontalOptions="Start" Grid.Row="2" Grid.Column="0" />
                                            <Label Grid.Row="2" Grid.Column="1" Text="{Binding SchoolAddress}"
                                                   FontSize="Medium"
                                                   FontAttributes="Bold" LineBreakMode="TailTruncation"
                                                   TextColor="{StaticResource TextColorWhite}" />
                                        </Grid>
                                    </StackLayout>
                                </Grid>
                            </Frame>
                        <!--</SwipeView>-->
                    </ContentView>
                </DataTemplate>
            </CollectionView.ItemTemplate>
        </CollectionView>
    </Grid>