You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
<!-- Player Page -->
|
|
|
|
<Grid ColumnDefinition="*, *" RowDefinition="Auto, *">
|
|
<Grid BackgroundColor="Blue">
|
|
<VerticalStackLayout>
|
|
<Label Text="Ranking"/>
|
|
<Label Text="{Binding Rank}"/>
|
|
<Label Text="Singles"/>
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
<Grid BackgroundColor="Blue" Grid.Column="1">
|
|
<VerticalStackLayout>
|
|
<Entry Text="{Binding Player.FirstName, Mode=OneWayToSource}"/>
|
|
<Label Text="{Binding Player.FirstName}, Mode=(OneWay, TwoWay, OneWayToSource)"/> <!-- Automatically subscribed to the source's property change -->
|
|
<Label Text="{Binding Player.LastName}"/>
|
|
<Label Text="{Binding Player.Height, StringFormat=\{0\}m}"/>
|
|
<Button Text="=>" Clicked="ButtonClicked"/>
|
|
</VerticalStackLayout>
|
|
</Grid>
|
|
<Image Grid.RowSpan="2" Source="{Binding Player.ImageLarge}"/>
|
|
</Grid>
|
|
|
|
<!-- =================== -->
|
|
|
|
<!-- Players Page -->
|
|
|
|
<ListView ItemsSource="{Binding Players}">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<ViewCell>
|
|
<HorizontalStackLayout>
|
|
<Label Text="{Binding FirstName}"/>
|
|
<Label Text="{Binding LastName}"/>
|
|
<Label Text="{Binding Points}"/>
|
|
</HorizontalStackLayout>
|
|
</ViewCell>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
|
|
<!-- =================== --> |