From 0701b8b3befd9d135cbc7a980366293b1565b120 Mon Sep 17 00:00:00 2001 From: nguyenha63321 <nguyenha63321@th-nuernberg.de> Date: Tue, 9 Jun 2020 22:21:40 +0200 Subject: [PATCH] Upload New File --- HighscorePage.xaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 HighscorePage.xaml diff --git a/HighscorePage.xaml b/HighscorePage.xaml new file mode 100644 index 0000000..881a4cf --- /dev/null +++ b/HighscorePage.xaml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8" ?> +<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" + xmlns:d="http://xamarin.com/schemas/2014/forms/design" + xmlns:local="clr-namespace:App3" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + + mc:Ignorable="d" + x:Class="App3.MainPage" + x:Name="Contentpage1" BackgroundColor="LightCoral"> + <ContentPage.BindingContext> + <local:HighscoreItem/> + </ContentPage.BindingContext> + <ContentPage.ToolbarItems> + <ToolbarItem Text= "Highscore Board" /> + </ContentPage.ToolbarItems> + + <ContentPage.Content> + <ListView x:Name="HighscoreList" ItemsSource="{Binding Source={x:Reference HighscoreList}, Path= BindingContext.Scores}" IsVisible="True"> + <ListView.ItemTemplate> + <DataTemplate> + <ViewCell> + <StackLayout Orientation="Horizontal"> + <Label Text="{Binding Index}"/> + <Label Text="{Binding Time}" /> + </StackLayout> + </ViewCell> + </DataTemplate> + </ListView.ItemTemplate> + </ListView> + </ContentPage.Content> + +</ContentPage> + -- GitLab