/
MainWindow.xaml
41 lines (33 loc) · 2.27 KB
/
MainWindow.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
<Window x:Class="ThroneSeed.MainWindow"
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:ThroneSeed"
mc:Ignorable="d"
ResizeMode="CanMinimize"
Background="#291255"
Title="ThroneSeed" Height="300" Width="525" Icon="Assets/barrel.png">
<StackPanel Margin="0,0,0,1">
<StackPanel.Background>
<ImageBrush ImageSource="Assets\guns.png" Stretch="Uniform" AlignmentX="Left" AlignmentY="Bottom" Opacity=".5">
</ImageBrush>
</StackPanel.Background>
<Image Height="60" Margin="5" Source="Assets/nt_logo.png"/>
<TextBlock Foreground="#fff" TextAlignment="Center" VerticalAlignment="Center" Text="{Binding Mode=TwoWay, Path=SeedMessage}" Margin="10" Height="20">
</TextBlock>
<TextBox Name="Seed" FontSize="30" Margin="25 5" Text="{Binding Mode=TwoWay, Path=SeedValue, UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="False" TextAlignment="Center"></TextBox>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10">
<Button Name="Save" Click="Save_Click" IsEnabled="{Binding Mode=OneWay, Path=IsValidSeed}" Width="220" Margin="0 0 10 0" Padding="30 15" Content="Set Seed"></Button>
<Button Name="Clear" Click="Clear_Click" Width="220" Margin="10 0 0 0" Padding="30 15" Content="Clear Seed"></Button>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Image Height="15" Margin="5" Source="Assets/harrewarre.png" VerticalAlignment="Center" />
<TextBlock FontSize="10" VerticalAlignment="Center" Margin="5 0" Foreground="#fff">
harrewarre |
<Hyperlink NavigateUri="https://github.com/harrewarre/ThroneSeed" RequestNavigate="Hyperlink_RequestNavigate">github</Hyperlink> |
<Hyperlink NavigateUri="https://twitter.com/harrewarre" RequestNavigate="Hyperlink_RequestNavigate">twitter</Hyperlink>
</TextBlock>
</StackPanel>
</StackPanel>
</Window>