43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<Window x:Class="SpineViewer.Views.ProgressDialog"
|
|
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:SpineViewer.Views"
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
xmlns:vm="clr-namespace:SpineViewer.ViewModels"
|
|
d:DataContext="{d:DesignInstance Type=vm:ProgressDialogViewModel}"
|
|
mc:Ignorable="d"
|
|
Title="{Binding Title}"
|
|
Background="{DynamicResource RegionBrush}"
|
|
Width="550"
|
|
Height="250"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
WindowStartupLocation="CenterOwner"
|
|
WindowStyle="ToolWindow">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height ="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{Binding ProgressText}"
|
|
Foreground="{DynamicResource PrimaryTextBrush}"
|
|
Padding="20"
|
|
LineHeight="25"
|
|
TextWrapping="Wrap"/>
|
|
<ProgressBar Grid.Row="1"
|
|
Value="{Binding Done}"
|
|
Maximum="{Binding Total}"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
Margin="20 5"/>
|
|
<Button Grid.Row="2"
|
|
Content="{DynamicResource Str_Cancel}"
|
|
Command="{Binding Cmd_Cancel}"
|
|
Width="100"
|
|
Margin="15"/>
|
|
</Grid>
|
|
</Window>
|