123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <UserControl x:Class="PDF_Office.Views.Dialog.ToolsDialogs.CompressDialogs.CompressDialog"
- 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"
- xmlns:prism="http://prismlibrary.com/" xmlns:compressdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.ToolsDialogs.CompressDialogs"
- prism:ViewModelLocator.AutoWireViewModel="True">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../../Styles/CustomBtnStyle.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Name="HeadRow" Height="40" />
- <RowDefinition Height="*"/>
- <RowDefinition Height="65" />
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Text="压缩PDF" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
- <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1">
- <StackPanel>
- <Button Style="{StaticResource CompressBtn}" Margin="0,10,0,16" Command="{Binding LargeQualityCommand}">
- <StackPanel Orientation="Horizontal" >
- <Border HorizontalAlignment="Right" Margin="0,0,350,0">
- <TextBlock Text="大型文件" FontSize="18"></TextBlock>
- </Border>
- <Border>
- <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 0L4 4 L12 -3" Height="10" Stretch="Fill" Visibility="{Binding CompressLargeStyle}"/>
- </Border>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource CompressBtn}" Margin="0,0,0,16" Command="{Binding StandardQualityCommand}">
- <StackPanel Orientation="Horizontal" >
- <Border HorizontalAlignment="Right" Margin="0,0,350,0">
- <TextBlock Text="标准文件" FontSize="18" Foreground="Black" ></TextBlock>
- </Border>
- <Border>
- <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 0L4 4 L12 -3" Height="10" Stretch="Fill" Visibility="{Binding CompressStandardStyle}"/>
- </Border>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource CompressBtn}" Margin="0,0,0,16" Command="{Binding LittleQualityCommand}">
- <StackPanel Orientation="Horizontal" >
- <Border HorizontalAlignment="Right" Margin="0,0,280,0">
- <TextBlock Text="小型文件(推荐)" FontSize="18" Foreground="Black"></TextBlock>
- </Border>
- <Border>
- <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 0L4 4 L12 -3" Height="10" Stretch="Fill" Visibility="{Binding CompressLittleStyle}"/>
- </Border>
- </StackPanel>
- </Button>
- <Button Style="{StaticResource CompressBtn}" Margin="0,0,0,64" Command="{Binding MicroQualityCommand}">
- <StackPanel Orientation="Horizontal" >
- <Border HorizontalAlignment="Right" Margin="0,0,350,0">
- <TextBlock Text="微型文件" FontSize="18" Foreground="Black"></TextBlock>
- </Border>
- <Border>
- <Path VerticalAlignment="Center" HorizontalAlignment="Center" Stroke="Black" Data="M0 0L4 4 L12 -3" Height="10" Stretch="Fill" Visibility="{Binding CompressMicroStyle}"/>
- </Border>
- </StackPanel>
- </Button>
- </StackPanel>
- </Border>
- <Grid Grid.Row="2" Width="568" VerticalAlignment="Center">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
- <Button Background="WhiteSmoke" Width="100" Height="25" Margin="10,0,0,0">
- <Border>
- <TextBlock Text="批量处理" ></TextBlock>
- </Border>
- </Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Background="WhiteSmoke" Width="100" Height="25" Margin="0,0,10,0" Command="{Binding CompressCommand}">
- <Border>
- <TextBlock Text="压缩"></TextBlock>
- </Border>
- </Button>
- <Button Background="WhiteSmoke" Width="100" Height="25" Margin="0,0,10,0" Command="{Binding ConfirmCompressCommand}">
- <Border>
- <TextBlock Text="取消" ></TextBlock>
- </Border>
- </Button>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|