mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
|
|
<UserControl x:Class="ImageResizer.Views.ProgressPage"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||
|
|
xmlns:local="clr-namespace:ImageResizer.Views"
|
||
|
|
xmlns:p="clr-namespace:ImageResizer.Properties"
|
||
|
|
MinWidth="350">
|
||
|
|
|
||
|
|
<UserControl.Resources>
|
||
|
|
<local:TimeRemainingConverter x:Key="TimeRemainingConverter"/>
|
||
|
|
</UserControl.Resources>
|
||
|
|
|
||
|
|
<i:Interaction.Triggers>
|
||
|
|
<i:EventTrigger EventName="Loaded">
|
||
|
|
<i:InvokeCommandAction Command="{Binding StartCommand}"/>
|
||
|
|
</i:EventTrigger>
|
||
|
|
</i:Interaction.Triggers>
|
||
|
|
|
||
|
|
<StackPanel>
|
||
|
|
<TextBlock Margin="11,11,11,0"
|
||
|
|
Style="{StaticResource MainInstructionTextBlockStyle}"
|
||
|
|
Text="{x:Static p:Resources.Progress_MainInstruction}"/>
|
||
|
|
<TextBlock Margin="11,11,11,0" Text="{Binding TimeRemaining,Converter={StaticResource TimeRemainingConverter}}"/>
|
||
|
|
<ProgressBar Height="15"
|
||
|
|
Margin="11,11,11,0"
|
||
|
|
Value="{Binding Progress}"
|
||
|
|
Maximum="1"/>
|
||
|
|
<Border Margin="0,11,0,0"
|
||
|
|
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
|
||
|
|
BorderBrush="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}"
|
||
|
|
BorderThickness="0,1,0,0"
|
||
|
|
Padding="11,11">
|
||
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||
|
|
<Button Height="23"
|
||
|
|
MinWidth="75"
|
||
|
|
Command="{Binding StopCommand}"
|
||
|
|
Content="{x:Static p:Resources.Progress_Stop}"
|
||
|
|
IsCancel="True"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
</UserControl>
|