-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRockPaperScissors.xaml
22 lines (19 loc) · 1.31 KB
/
RockPaperScissors.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<UserControl x:Class="Clue.RockPaperScissors"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="400" Width="500">
<Grid>
<TextBlock Text="Rock-Paper-Scissors" FontSize="24" HorizontalAlignment="Center" Margin="0,20,0,0" />
<!-- Buttons for Player's Choices -->
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,50">
<Button Content="Rock" Width="100" Height="50" Margin="10" Click="Button_Click" Tag="Rock" />
<Button Content="Paper" Width="100" Height="50" Margin="10" Click="Button_Click" Tag="Paper" />
<Button Content="Scissors" Width="100" Height="50" Margin="10" Click="Button_Click" Tag="Scissors" />
</StackPanel>
<!-- Results -->
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,50">
<TextBlock Name="PlayerChoiceText" Text="Your Choice: " FontSize="16" Margin="0,10" />
<TextBlock Name="ComputerChoiceText" Text="Computer's Choice: " FontSize="16" Margin="0,10" />
<TextBlock Name="ResultText" Text="Result: " FontSize="18" FontWeight="Bold" Margin="0,10" />
</StackPanel>
</Grid>
</UserControl>