123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.ConverterDialogs.ConverterImgDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:PDF_Master.Views.Dialog.PageEditDialogs"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
- xmlns:prism="http://prismlibrary.com/"
- Width="468"
- Height="478"
- d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterImgDialogViewModel}"
- d:DesignHeight="478"
- d:DesignWidth="468"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <cus:DialogContent Header="{Binding T_Title}">
- <cus:DialogContent.Content>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="244" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" VerticalAlignment="Top">
- <cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded" PageIsForm="False"/>
- </Grid>
- <Grid Grid.Column="1">
- <StackPanel Margin="0,2,0,0">
- <StackPanel>
- <TextBlock
- Style="{StaticResource PropertyHeaderLv2}"
- Height="20"
- HorizontalAlignment="Left"
- Text="{Binding T_Format}" />
- <ComboBox
- Name="ImageTypeComboBox"
- Width="208"
- Height="32"
- Margin="0,10,0,0"
- HorizontalAlignment="Left"
- ItemsSource="{Binding ImageTypeFamily}"
- SelectedIndex="{Binding ImageTypeSelectedIndex, Mode=TwoWay}"
- />
- <ComboBox
- Name="ImageDPIComboBox"
- Width="208"
- Height="32"
- Margin="0,8,0,0"
- HorizontalAlignment="Left"
- ItemsSource="{Binding ImageDPIFamily}"
- SelectedIndex="{Binding ImageDPISelectedIndex, Mode=TwoWay}"
- />
- </StackPanel>
- <StackPanel Margin="0,18,0,0">
- <TextBlock
- Style="{StaticResource PropertyHeaderLv2}"
- Height="20"
- HorizontalAlignment="Left"
- Text="{Binding T_PageRange}" />
- <cus:WritableComboBox
- x:Name="PageRangeComboBox"
- Width="208"
- Height="32"
- Margin="0,10,0,0"
- HorizontalAlignment="Left"
- IsCurrentPage="True"
- MaxPageRange="{Binding MaxPageRange}"
- Loaded="PageRangeComboBox_Loaded"
- SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}"
- Text="{Binding PageRangeText, Mode=TwoWay}" >
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding CmbPageSelectionChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />
- </i:EventTrigger>
- <i:EventTrigger EventName="TextChanged">
- <i:InvokeCommandAction Command="{Binding CmbPageTextChanged}" CommandParameter="{Binding ElementName=ConverterPreview}" />
- </i:EventTrigger>
- <i:KeyTrigger FiredOn="KeyDown" Key="Return">
- <i:InvokeCommandAction Command="{Binding SetCustomPageRangeCommand}" ></i:InvokeCommandAction>
- </i:KeyTrigger>
- </i:Interaction.Triggers>
- </cus:WritableComboBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- <StackPanel Orientation="Horizontal" Width="245" Panel.ZIndex="2" Grid.ColumnSpan="2" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,16,8" Visibility="{Binding LimitationsConvertVisible}">
- <Grid Width="16" Height="16" >
- <Ellipse Width="13" Height="13" Fill="white" Stroke="#CED0D4"/>
- <Path Data="M7.4701 8.91H8.5001L8.7601 5.49L8.8101 4H7.1601L7.2101 5.49L7.4701 8.91ZM7.9901 11.58C8.4901 11.58 8.8701 11.21 8.8701 10.69C8.8701 10.17 8.4901 9.81 7.9901 9.81C7.4801 9.81 7.1001 10.17 7.1001 10.69C7.1001 11.21 7.4701 11.58 7.9901 11.58Z" Fill="#94989C"/>
- </Grid>
- <TextBlock
- Margin="4,0,0,0"
- FontFamily="Segoe UI"
- FontSize="12"
- Foreground="#94989C"
- Text="First 10 pages for free conversion."
- Height="20"
- />
- <TextBlock FontFamily="Segoe UI"
- FontSize="12" Height="20" Foreground="{StaticResource color.light.blue.5}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseDown">
- <i:InvokeCommandAction Command="{Binding UnlockMouseDownCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <Underline >
- <TextBlock Text="Unlock"/>
- </Underline>
- </TextBlock>
- </StackPanel>
- </Grid>
- </cus:DialogContent.Content>
- <cus:DialogContent.BottmBar>
- <Grid>
- <!--<Button Background="WhiteSmoke" Width="98" Height="32" Margin="0,0,350,0" Command="{Binding BatchConverterCommand}" Style="{StaticResource btn.sec}">
- <Border>
- <TextBlock Text="批量处理" ></TextBlock>
- </Border>
- </Button>-->
- <Button
- Width="98"
- Height="32"
- Margin="0,0,16,0"
- HorizontalAlignment="Right"
- Command="{Binding CancelCommand}"
- Content="{Binding T_No}" Style="{StaticResource btn.sec}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="PreviewMouseDown">
- <i:InvokeCommandAction Command="{Binding PreviewCancelDownCommand}" CommandParameter="{Binding ElementName=PageRangeComboBox}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button
- Width="98"
- Height="32"
- Margin="124,0"
- HorizontalAlignment="Right"
- Command="{Binding ConverterCommnad}"
- Content="{Binding T_YES}"
- Style="{StaticResource Btn.cta}"/>
- </Grid>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|