-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e47b270
commit dbb1109
Showing
2 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
<Window x:Class="Ra3.BattleNet.Downloader.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:Ra3.BattleNet.Downloader" | ||
mc:Ignorable="d" | ||
Title="{Binding Caption}" Height="270" Width="480" SizeToContent="Height" | ||
Loaded="Window_Loaded"> | ||
<Window | ||
x:Class="Ra3.BattleNet.Downloader.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:local="clr-namespace:Ra3.BattleNet.Downloader" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Title="{Binding Caption}" | ||
Width="460" | ||
Height="240" | ||
Loaded="Window_Loaded" | ||
ResizeMode="CanMinimize" | ||
SizeToContent="Height" | ||
Topmost="True" | ||
mc:Ignorable="d"> | ||
<Window.DataContext> | ||
<local:ViewModel /> | ||
</Window.DataContext> | ||
<StackPanel Margin="16"> | ||
<StackPanel.Resources> | ||
<Style TargetType="{x:Type TextBlock}"> | ||
<Setter Property="Margin" Value="0,0,0,8"/> | ||
</Style> | ||
</StackPanel.Resources> | ||
<TextBlock TextWrapping="Wrap" Text="{Binding DownloadText}" /> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="0.5*" /> | ||
<ColumnDefinition Width="0.25*" /> | ||
<ColumnDefinition Width="0.25*" /> | ||
</Grid.ColumnDefinitions> | ||
<TextBlock Grid.Column="0" Text="{Binding DownloadedSize}" HorizontalAlignment="Left" /> | ||
<TextBlock Grid.Column="1" Text="{Binding Progress}" HorizontalAlignment="Right" /> | ||
<TextBlock Grid.Column="2" Text="{Binding DownloadSpeed}" HorizontalAlignment="Right" /> | ||
<StackPanel Margin="24,12,24,24"> | ||
<TextBlock Text="{Binding DownloadText}" TextWrapping="Wrap" /> | ||
<Grid Margin="0,2,0,10"> | ||
<TextBlock | ||
HorizontalAlignment="Left" | ||
FontSize="16" | ||
Text="{Binding Progress}" /> | ||
<StackPanel | ||
HorizontalAlignment="Right" | ||
VerticalAlignment="Bottom" | ||
Orientation="Horizontal"> | ||
<TextBlock Text="{Binding DownloadedSize}" /> | ||
<TextBlock Margin="5,0,5,0" Text="-" /> | ||
<TextBlock Text="{Binding DownloadSpeed}" /> | ||
</StackPanel> | ||
</Grid> | ||
<TextBlock TextWrapping="Wrap" Text="{Binding Description}" /> | ||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0"> | ||
<ProgressBar x:Name="DownloadProgressBar" Height="16" /> | ||
<TextBlock Text="{Binding Description}" TextWrapping="Wrap" Margin="0,10,0,0"/> | ||
<StackPanel | ||
Margin="0,16,0,0" | ||
HorizontalAlignment="Right" | ||
Orientation="Horizontal"> | ||
<StackPanel.Resources> | ||
<Style TargetType="{x:Type RadioButton}"> | ||
<Setter Property="Margin" Value="8,0,0,0"/> | ||
<Setter Property="Margin" Value="8,0,0,0" /> | ||
</Style> | ||
</StackPanel.Resources> | ||
<RadioButton x:Name="ChineseCheckbox" Content="中文" Checked="ChineseCheckbox_Checked" /> | ||
<RadioButton x:Name="EnglishCheckbox" Content="English" Checked="EnglishCheckbox_Checked" /> | ||
<RadioButton | ||
x:Name="ChineseCheckbox" | ||
Checked="ChineseCheckbox_Checked" | ||
Content="中文" /> | ||
<RadioButton | ||
x:Name="EnglishCheckbox" | ||
Checked="EnglishCheckbox_Checked" | ||
Content="English" /> | ||
</StackPanel> | ||
</StackPanel> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters