mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
* Moving from ModernWPF to WpfUI * signing fix * Spellcheck * Sign fix 2 * Loc tweaks * sign fix 3 * Move titlebar * Tweaks * Debug * Fix again * Updating preview package * Fixes * Update notice.md --------- Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<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:behaviors="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:ImageResizer.Views"
|
|
xmlns:p="clr-namespace:ImageResizer.Properties">
|
|
|
|
<UserControl.Resources>
|
|
<local:TimeRemainingConverter x:Key="TimeRemainingConverter" />
|
|
</UserControl.Resources>
|
|
|
|
<behaviors:Interaction.Triggers>
|
|
<behaviors:EventTrigger EventName="Loaded">
|
|
<behaviors:InvokeCommandAction Command="{Binding StartCommand}" />
|
|
</behaviors:EventTrigger>
|
|
</behaviors:Interaction.Triggers>
|
|
|
|
<StackPanel>
|
|
<TextBlock
|
|
Margin="12,12,12,0"
|
|
FontSize="16"
|
|
Text="{x:Static p:Resources.Progress_MainInstruction}" />
|
|
<TextBlock
|
|
Margin="12,12,12,0"
|
|
Foreground="{DynamicResource TextFillColorSecondaryBrush}"
|
|
Text="{Binding TimeRemaining, Converter={StaticResource TimeRemainingConverter}}" />
|
|
<ProgressBar
|
|
Height="16"
|
|
Margin="12,12,12,0"
|
|
Maximum="1"
|
|
Value="{Binding Progress}" />
|
|
<Border
|
|
Margin="0,12,0,0"
|
|
Padding="12,12"
|
|
BorderThickness="0,1,0,0">
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
<Button
|
|
MinWidth="76"
|
|
Command="{Binding StopCommand}"
|
|
Content="{x:Static p:Resources.Progress_Stop}"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
</UserControl>
|