-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettings.xaml
76 lines (72 loc) · 5.02 KB
/
Settings.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<Window x:Class="BlackjackGame.Settings"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:BlackjackGame"
mc:Ignorable="d"
Title="Settings" Height="512" Width="683" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" Icon="Assets/Other/icon.png" FontFamily="./#Poker">
<Window.Background>
<ImageBrush ImageSource="Assets\Settings\background.png"/>
</Window.Background>
<Window.Resources>
<Style TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent" BorderBrush="Transparent" BorderThickness="0">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Transparent"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Grid x:Name="SettingsGrid" Height="412" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="25"/>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
<RowDefinition Height="70"/>
<RowDefinition Height="35"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="205"/>
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="heading" Grid.Row="0" Grid.Column="1" TextAlignment="Center" FontSize="35" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White" LineStackingStrategy="BlockLineHeight" Text="Settings"/>
<TextBlock Grid.Row="2" Grid.Column="0" TextAlignment="Center" FontSize="20" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" LineStackingStrategy="BlockLineHeight" Text="Change Username" TextWrapping="Wrap" Width="90" Height="50"/>
<TextBox x:Name="userTextbox" Grid.Row="2" Grid.Column="1" TextAlignment="Left" FontSize="22" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Foreground="Black" Height="40" Width="200"/>
<Button x:Name="userBtn" Click="SaveUser" Grid.Row="2" Grid.Column="2" HorizontalAlignment="Center" Width="80">
<Image Source="Assets\Settings\button_save.png"/>
</Button>
<TextBlock Grid.Row="3" Grid.Column="0" TextAlignment="Center" FontSize="20" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" LineStackingStrategy="BlockLineHeight" Text="Change Password" TextWrapping="Wrap" Width="90" Height="50"/>
<PasswordBox x:Name="pwTextbox" Grid.Row="3" Grid.Column="1" FontSize="22" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Center" VerticalContentAlignment="Center" Foreground="Black" Height="40" Width="200"/>
<Button x:Name="pwBtn" Click="SavePw" Grid.Row="3" Grid.Column="2" HorizontalAlignment="Center" Width="80">
<Image Source="Assets\Settings\button_save.png"/>
</Button>
<TextBlock Grid.Row="4" Grid.Column="0" TextAlignment="Center" FontSize="17" FontFamily="Poker" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" LineStackingStrategy="BlockLineHeight" Text="Change Background" TextWrapping="Wrap" Width="90" Height="50"/>
<Button x:Name="previousBg" Click="SwitchBg" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" Width="20" Margin="20,0,0,0">
<Image Source="Assets\Settings\button_left.png"/>
</Button>
<Image x:Name="bgDisplay" Grid.Row="4" Grid.Column="1" Source="Assets\Backgrounds\default.png"/>
<Button x:Name="nextBg" Click="SwitchBg" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" Width="20" Margin="0,0,20,0">
<Image Source="Assets\Settings\button_right.png"/>
</Button>
<Button x:Name="bgBtn" Click="SaveBg" Grid.Row="4" Grid.Column="2" HorizontalAlignment="Center" Width="80">
<Image Source="Assets\Settings\button_save.png"/>
</Button>
<Button Click="CloseSettings" Grid.Row="6" Grid.Column="1" HorizontalAlignment="Center" Width="110">
<Image Source="Assets\Settings\button_ok.png"/>
</Button>
</Grid>
</Window>