The TournamentViewer is quite ready, just the score-handling is left to wire up
This commit is contained in:
68
TrackerWPFUI/Views/TournamentViewerView.xaml
Normal file
68
TrackerWPFUI/Views/TournamentViewerView.xaml
Normal file
@ -0,0 +1,68 @@
|
||||
<UserControl x:Class="TrackerWPFUI.Views.TournamentViewerView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:TrackerWPFUI.Views"
|
||||
mc:Ignorable="d" Background="White"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!--Row 0-->
|
||||
<TextBlock x:Name="TournamentName" FontSize="28" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"/>
|
||||
<!--Row 1-->
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="0" >
|
||||
<TextBlock Margin="0 10 5 0" >Round</TextBlock>
|
||||
<ComboBox x:Name="Rounds" Margin="5 10 0 0"
|
||||
SelectedItem="{Binding Path=SelectedRound, Mode=TwoWay}"/>
|
||||
</StackPanel>
|
||||
<!--Row 2-->
|
||||
<CheckBox x:Name="UnplayedOnly" Grid.Row="2" Grid.Column="0" Margin="0 10 0 0">
|
||||
Unplayed Only
|
||||
</CheckBox>
|
||||
<!--Row 3-->
|
||||
<ListBox x:Name="Matchups" Grid.Row="3" Grid.Column="0"
|
||||
DisplayMemberPath="DisplayName" Grid.RowSpan="3"
|
||||
Margin="0 0 5 0"
|
||||
SelectedItem="{Binding Path=SelectedMatchup , Mode=TwoWay}"/>
|
||||
<StackPanel Grid.Column="1" Grid.Row="3" Orientation="Vertical" >
|
||||
<TextBlock x:Name="TeamOne" Margin="0 0 0 5"/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Margin="0 0 5 0">Score</TextBlock>
|
||||
<TextBox x:Name="TeamOneScore" MinWidth="50"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
<!--Row 4-->
|
||||
<TextBlock Margin="0 10 0 10" Grid.Row="4" Grid.Column="1"
|
||||
HorizontalAlignment="Center">
|
||||
- VS -
|
||||
</TextBlock>
|
||||
<Button x:Name="ScoreMatch" Grid.Row="4" Grid.Column="2"
|
||||
Margin="10 0 0 0" Padding="15 5" >
|
||||
Score
|
||||
</Button>
|
||||
<!--Row 5-->
|
||||
<StackPanel Grid.Column="1" Grid.Row="5" Orientation="Vertical" >
|
||||
<TextBlock x:Name="TeamTwo" Margin="0 0 0 5"/>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Margin="0 0 5 0">Score</TextBlock>
|
||||
<TextBox x:Name="TeamTwoScore" MinWidth="50"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user