Untitled
unknown
plain_text
3 years ago
6.9 kB
11
Indexable
<Grid RowDefinitions="Auto,Auto,Auto,*"> <Frame HeightRequest="100" CornerRadius="50" BackgroundColor="{StaticResource FrameColor_1}" Margin="0,-50,0,0"/> <Label Grid.Row="0" Text="Registered Schools" Margin="20" FontSize="Large" FontAttributes="Bold" VerticalOptions="Center" TextColor="{StaticResource TextColorWhite}"/> <ImageButton Grid.Row="0" HorizontalOptions="EndAndExpand" Source="add" HeightRequest="30" WidthRequest="40" VerticalOptions="Center" Margin="20" BackgroundColor="Transparent" Clicked="ImageButton_Clicked" xct:IconTintColorEffect.TintColor="{StaticResource ButtonColor}"/> <SearchBar Grid.Row="1" Margin="10" Placeholder="Find School" BackgroundColor="{StaticResource FrameColor_1}" xct:CornerRadiusEffect.CornerRadius="10" 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="ListSchools"> <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" Invoked="itemOnEdit_Invoked" Margin="5" x:Name="itemOnEdit"> <StackLayout Margin="5"> <StackLayout Orientation="Vertical" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"> <ff:CachedImage Source="edit" HeightRequest="20" WidthRequest="20" xct:IconTintColorEffect.TintColor="{StaticResource ButtonColor}" 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="School ID:" TextColor="{StaticResource TextSoft}" FontSize="Medium" LineBreakMode="TailTruncation" HorizontalOptions="Start" Grid.Row="0" Grid.Column="0" /> <Label Grid.Row="0" Grid.Column="1" Text="{Binding SchoolID}" 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>
Editor is loading...