<!--  Copyright (c) Microsoft Corporation. All rights reserved.  -->
<!--  Licensed under the MIT License.  -->
<Page
    x:Class="ImageResizer.Views.ProgressPage"
    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"
    Loaded="Page_Loaded"
    mc:Ignorable="d">

    <StackPanel>
        <TextBlock
            x:Uid="Progress_MainInstruction"
            Margin="{StaticResource PageSectionMargin}"
            Style="{StaticResource SubtitleTextBlockStyle}" />
        <TextBlock
            Margin="{StaticResource PageSectionMargin}"
            Foreground="{ThemeResource TextFillColorSecondaryBrush}"
            Text="{x:Bind ViewModel.TimeRemainingDisplay, Mode=OneWay}" />
        <ProgressBar
            Height="16"
            Margin="{StaticResource PageSectionMargin}"
            Maximum="1"
            Value="{x:Bind ViewModel.Progress, Mode=OneWay}" />
        <Border
            Margin="0,12,0,0"
            Padding="12"
            Background="{ThemeResource LayerFillColorDefaultBrush}"
            BorderBrush="{ThemeResource DividerStrokeColorDefaultBrush}"
            BorderThickness="0,1,0,0">
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                <Button MinWidth="{StaticResource ButtonMinWidth}" Command="{x:Bind ViewModel.StopCommand}">
                    <Button.KeyboardAccelerators>
                        <KeyboardAccelerator Key="Escape" />
                    </Button.KeyboardAccelerators>
                    <TextBlock x:Uid="Progress_Stop" />
                </Button>
            </StackPanel>
        </Border>
    </StackPanel>
</Page>
