Files
PowerToys/src/modules/imageresizer/ui/Views/ResultsPage.xaml
2020-11-08 20:09:07 +01:00

45 lines
2.0 KiB
XML

<UserControl x:Class="ImageResizer.Views.ResultsPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:p="clr-namespace:ImageResizer.Properties"
MinWidth="350"
Background="{DynamicResource PrimaryBackgroundBrush}">
<StackPanel>
<TextBlock Margin="12,12,12,0"
FontSize="16"
Foreground="{DynamicResource PrimaryForegroundBrush}"
Text="{x:Static p:Resources.Results_MainInstruction}"/>
<ScrollViewer MaxWidth="363"
MaxHeight="350"
HorizontalAlignment="Stretch"
VerticalScrollBarVisibility="Auto">
<ItemsControl Margin="12,4,12,0" ItemsSource="{Binding Errors}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="ResizeError">
<StackPanel>
<TextBlock Margin="0,8,0,0"
FontWeight="Bold"
Text="{Binding File}"/>
<TextBlock Text="{Binding Error}" TextWrapping="Wrap"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
<Border Margin="0,12,0,0"
Background="{DynamicResource SecondaryBackgroundBrush}"
BorderBrush="{DynamicResource PrimaryBorderBrush}"
BorderThickness="0,1,0,0"
Padding="12,12">
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button MinWidth="76"
Command="{Binding CloseCommand}"
Content="{x:Static p:Resources.Results_Close}"
IsCancel="True"
IsDefault="True"/>
</StackPanel>
</Border>
</StackPanel>
</UserControl>