mirror of
https://github.com/sp-tarkov/patcher.git
synced 2025-02-13 02:10:47 -05:00
53 lines
1.8 KiB
XML
53 lines
1.8 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
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:model="using:PatchClient.Models"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="PatchClient.Views.PatcherView">
|
|
|
|
<UserControl.Styles>
|
|
|
|
<StyleInclude Source="/Assets/Styles.axaml"/>
|
|
|
|
<Style Selector="Label">
|
|
<Setter Property="Margin" Value="0 0 0 5"/>
|
|
</Style>
|
|
|
|
</UserControl.Styles>
|
|
|
|
<Grid RowDefinitions="AUTO,AUTO,AUTO,AUTO,AUTO" Margin="10">
|
|
|
|
<!-- Current Patch Text -->
|
|
<Label Content="{Binding ProgressMessage}"/>
|
|
<Label Content="{Binding ElapsedPatchTimeDetails}" HorizontalAlignment="Right"/>
|
|
<Label Content="{Binding PatchMessage}" Grid.Row="1"
|
|
Classes="dark"/>
|
|
<ProgressBar Grid.Row="2" Value="{Binding PatchPercent}"/>
|
|
|
|
<Separator Grid.Row="3"
|
|
VerticalAlignment="Bottom"
|
|
Height="1"
|
|
Margin="0 20"/>
|
|
|
|
<!-- Line Item Info -->
|
|
<ItemsControl Items="{Binding LineItems}" Grid.Row="4">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type model:LineItemProgress}">
|
|
<Grid ColumnDefinitions="AUTO,3*,AUTO,*,AUTO">
|
|
<Label Content="{Binding Info}"
|
|
/>
|
|
<Label Content="{Binding ProgressInfo}" Grid.Column="2"
|
|
FontSize="12"/>
|
|
<ProgressBar Value="{Binding Progress}" Grid.Column="4"
|
|
Margin="0 0 0 4"
|
|
VerticalAlignment="Center"
|
|
Width="200" MaxWidth="200"
|
|
Classes.done="{Binding Completed}"/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</Grid>
|
|
</UserControl>
|