Refactor design for the second task

This commit is contained in:
Manuel Thalmann 2024-03-22 00:43:26 +01:00
parent f130b631fc
commit 94cb10b3df

View file

@ -14,9 +14,14 @@
</Style>
<Style TargetType="Button" BasedOn="{StaticResource CommonStyle}">
<Setter Property="Padding"
Value="15,0,15,0"/>
Value="15,0,15,0" />
</Style>
<Style TargetType="TextBox" BasedOn="{StaticResource CommonStyle}" />
<Style TargetType="TextBlock" BasedOn="{StaticResource CommonStyle}" />
<Style TargetType="ProgressBar" BasedOn="{StaticResource CommonStyle}">
<Setter Property="Height"
Value="20" />
</Style>
</Window.Resources>
<Border>
<Grid>
@ -46,6 +51,29 @@
<TextBlock x:Name="bytesBox" />
<TextBlock x:Name="timeBox" />
</StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ProgressBar x:Name="timeBar"
Minimum="0"
Maximum="1000"
Grid.ColumnSpan="3" />
<TextBlock Grid.Row="1"
Grid.Column="1"
TextAlignment="Center"
Text="500 ms" />
<TextBlock Grid.Row="1"
Grid.Column="2"
TextAlignment="Right"
Text="1000 ms" />
</Grid>
</StackPanel>
</Grid>
</Border>