Untitled

mail@pastecode.io avatar
unknown
xml
a year ago
1.7 kB
2
Indexable
Never
 <ContentPage.Resources>

        <DataTemplate x:Key="taskItemTemplate">

        
        </DataTemplate>

    </ContentPage.Resources>

    <!--GENERAL CONTAINER-->
    <StackLayout HorizontalOptions="FillAndExpand"
                 VerticalOptions="FillAndExpand"
                 Margin="10,50">

        <!--TITLE CONTAINER-->
        <StackLayout    Orientation="Horizontal"
                        HorizontalOptions="FillAndExpand"
                        VerticalOptions="StartAndExpand">

            <Label  Text="TASK LIST"
                    FontSize="Title"
                    VerticalOptions="End"
                    VerticalTextAlignment="Center"/>

            <Label  Text="{Binding Source={x:Static sys:DateTime.Now}, StringFormat='{0:dd MMMM yyyy, HH:mm}'}"
                    VerticalOptions="CenterAndExpand"
                    VerticalTextAlignment="Center"
                    HorizontalTextAlignment="Center"
                    HorizontalOptions="EndAndExpand"/>
        </StackLayout>
        <!--COINTAINER-->
        <StackLayout    HorizontalOptions="EndAndExpand"
                        VerticalOptions="EndAndExpand">

            <!--TASK LIST-->
            <ListView   x:Name="taskList"
                        ItemTemplate="{StaticResource taskItemTemplate}"/>

            <!--BUTTON ADD-->
            <Button     Text="+"
                        TextColor="Black"
                        BackgroundColor="Wheat"
                        x:Name="btnAdd"/>

            <!--BUTTON MINUS-->
            <Button     Text="-"
                        TextColor="Black"
                        BackgroundColor="Wheat"
                        x:Name="btnMin"/>

        </StackLayout>
    </StackLayout>