58 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-09-20 18:20:01 +02:00
<!--
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see <http://www.gnu.org/licenses/>.
-->
<winlocal:WindowBase x:Class="dnSpy.Contracts.MVVM.Dialogs.ProgressDlg"
x:ClassModifier="internal"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:winlocal="clr-namespace:dnSpy.Contracts.Controls"
xmlns:p="clr-namespace:dnSpy.Contracts.DnSpy.Properties"
Height="200" Width="400"
Style="{StaticResource DialogWindowStyle}" WindowStartupLocation="CenterOwner"
MinHeight="150" MinWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="1" Margin="0 5 0 0" HorizontalAlignment="Center" TextWrapping="Wrap" Text="{Binding CurrentItemDescription}" />
<ProgressBar
Name="progressBar"
Grid.Row="2"
Margin="5 5 5 0"
Height="30"
HorizontalAlignment="Stretch"
IsIndeterminate="{Binding IsIndeterminate}"
Minimum="{Binding ProgressMinimum}"
Maximum="{Binding ProgressMaximum}"
Value="{Binding TotalProgress, Mode=OneWay}"
/>
<Grid Grid.Row="4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Grid.Column="1" Margin="5 5 5 5" Content="{x:Static p:dnSpy_Contracts_DnSpy_Resources.Button_Cancel}" Style="{StaticResource DialogButton}" Command="{Binding CancelCommand}" />
</Grid>
</Grid>
</winlocal:WindowBase>