Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
3.2 kB
5
Indexable
Never
Wait for your teacher for further instructions



<SwipeView
    BackgroundColor="Transparent"
    HeightRequest="80"
    IsClippedToBounds="True">
    <SwipeView.RightItems>
        <SwipeItemView
            x:Name="itemleaveschool"
            Margin="5"
            BackgroundColor="{StaticResource Primary}"
            Invoked="Itemleaveschool_OnInvoked">
            <StackLayout Margin="5">
                <StackLayout
                    HorizontalOptions="CenterAndExpand"
                    Orientation="Vertical"
                    VerticalOptions="CenterAndExpand">
                    <Image
                        Aspect="AspectFit"
                        HeightRequest="20"
                        Source="leave"
                        WidthRequest="20" />
                    <Label
                        FontSize="Micro"
                        HorizontalOptions="CenterAndExpand"
                        Text="Leave"
                        TextColor="{StaticResource TextColorLight}"
                        VerticalOptions="CenterAndExpand" />
                </StackLayout>
            </StackLayout>
        </SwipeItemView>
    </SwipeView.RightItems>
    <Frame
        Margin="2"
        Padding="2"
        BackgroundColor="{StaticResource Primary}"
        CornerRadius="10"
        HeightRequest="80">
        <StackLayout
            Margin="2"
            Padding="10"
            BackgroundColor="Transparent"
            HorizontalOptions="FillAndExpand"
            Orientation="Horizontal">
            <StackLayout Orientation="Vertical" Spacing="0">
                <Label HorizontalOptions="Start" VerticalOptions="CenterAndExpand">
                    <Label.FormattedText>
                        <FormattedString>
                            <Span
                                FontSize="Medium"
                                Text="School ID: "
                                TextColor="{StaticResource TextSoft}" />
                            <Span
                                FontSize="Medium"
                                Text="{Binding SchoolID}"
                                TextColor="{StaticResource TextColorLight}" />
                        </FormattedString>
                    </Label.FormattedText>
                </Label>
                <Label HorizontalOptions="Start" VerticalOptions="CenterAndExpand">
                    <Label.FormattedText>
                        <FormattedString>
                            <Span
                                FontSize="Medium"
                                Text="School name: "
                                TextColor="{StaticResource TextSoft}" />
                            <Span
                                FontSize="Medium"
                                Text="{Binding SchoolName}"
                                TextColor="{StaticResource TextColorLight}" />
                        </FormattedString>
                    </Label.FormattedText>
                </Label>
            </StackLayout>
        </StackLayout>
    </Frame>
</SwipeView>
Leave a Comment