source: 2013/30/MiskaK/MW2(My Warfare 2)/My Warfare 2 Launcher/MainWindow.xaml @ 10335

Revision 4507, 3.5 KB checked in by anlakane, 6 years ago (diff)

Talletus.

Line 
1<Window x:Class="My_Warfare_2_Launcher.MainWindow"
2        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4        Title="My Warfare 2 Launcher" Height="350" Width="525" xmlns:my="clr-namespace:System;assembly=mscorlib">
5    <Window.Resources>
6        <my:Double x:Key="downloadBarValue">0</my:Double>
7        <my:String x:Key="changelogText">textBlock1</my:String>
8        <Visibility x:Key="progressBarVisibility">Visible</Visibility>
9        <my:String x:Key="statusBoxText">Ready</my:String>
10        <my:String x:Key="versionLabelNumber">Number</my:String>
11        <my:Boolean x:Key="isLaunchButtonClickable">True</my:Boolean>
12    </Window.Resources>
13    <Grid Width="513" Background="#46000000">
14        <Border BorderBrush="Silver" BorderThickness="1" Height="178" HorizontalAlignment="Left" Margin="13,92,0,0" Name="border1" VerticalAlignment="Top" Width="362" Background="#1E000000">
15            <ScrollViewer Height="147" Name="changelog" Width="358" VerticalAlignment="Bottom"></ScrollViewer>
16        </Border>
17        <Button Content="Launch!" Height="23" HorizontalAlignment="Left" Margin="416,276,0,0" Name="launchButton" VerticalAlignment="Top" Width="75" Click="launchButton_Click" FontStretch="Normal" FontWeight="SemiBold" IsEnabled="{StaticResource isLaunchButtonClickable}" />
18        <Button Content="Update!" Height="23" HorizontalAlignment="Left" Margin="416,246,0,0" Name="updateButton" VerticalAlignment="Top" Width="75" Click="updateButton_Click" />
19        <Image Height="47" HorizontalAlignment="Left" Margin="12,12,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="479" Source="file:///C:/MyTemp/kurssit/ohj1/ht/MW2%28My%20Warfare%202%29/My%20Warfare%202%20Launcher/Images/2dWARFARE2.png" />
20        <RadioButton Content="Development" Height="16" HorizontalAlignment="Left" Margin="392,225,0,0" Name="isDevelopmentVersion" VerticalAlignment="Top" Checked="radioButton1_Checked" />
21        <RadioButton Content="Stable" Height="16" HorizontalAlignment="Left" Margin="392,202,0,0" Name="isStableVersion" VerticalAlignment="Top" Checked="radioButton2_Checked" IsChecked="True" />
22        <Label Content="News and changes:" Name="label1" Width="131" FontSize="14" FontStyle="Normal" AllowDrop="True" BorderBrush="Black" BorderThickness="0" Margin="12,92,370,189" />
23        <ProgressBar Height="10" HorizontalAlignment="Left" Margin="13,276,0,0" Name="updateProgressBar" VerticalAlignment="Top" Width="362" Value="{StaticResource downloadBarValue}" Visibility="{StaticResource progressBarVisibility}" />
24        <Label Height="27" HorizontalAlignment="Left" Margin="0,284,0,0" Name="statusBox" VerticalAlignment="Top" Width="375" Content="{StaticResource statusBoxText}" />
25        <Label Content="Game version:" HorizontalAlignment="Left" Margin="379,94,0,189" Name="versionTitle" />
26        <Label Content="{StaticResource versionLabelNumber}" Height="28" HorizontalAlignment="Left" Margin="392,113,0,0" Name="versionNumber" VerticalAlignment="Top" Width="109" />
27        <Label Content="Launcher version:" Height="28" HorizontalAlignment="Left" Margin="379,147,0,0" Name="launcherVersionTitle" VerticalAlignment="Top" />
28        <Border BorderBrush="#1E000000" BorderThickness="1" Name="border2" Margin="379,95,14,115" />
29        <Label Content="Number" Height="28" HorizontalAlignment="Left" Margin="392,0,0,115" Name="launcherVersion" VerticalAlignment="Bottom" />
30    </Grid>
31</Window>
Note: See TracBrowser for help on using the repository browser.