12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <UserControl x:Class="PDF_Master.Views.Dialog.ConverterDialogs.ConverterRTFDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- 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/" xmlns:converterdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ConverterDialogs"
- Width="468"
- Height="454"
- d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterRTFDialogViewModel}"
- d:DesignHeight="454"
- 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="212"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" VerticalAlignment="Top">
- <cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded"></cus:PageTurningPreview>
- </Grid>
- <Grid Grid.Column="1">
- <StackPanel Orientation="Vertical" Margin="16,2,0,0">
- <StackPanel Orientation="Vertical" Visibility="Collapsed">
- <TextBlock Text="RTF Recognition Settings" HorizontalAlignment="Left" Style="{StaticResource PropertyHeaderLv2}" Height="20"/>
- <CheckBox Name="OCRCheckBox" Margin="0,10,0,0" IsChecked="{Binding OCRCheckBoxIsCheckBox}" Padding="8,0,0,0">
- <TextBlock Text="Recognize text if needed"/>
- </CheckBox>
- <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,8,0,0" Width="228" Height="32" HorizontalAlignment="Left" SelectedIndex="{Binding LanguageSelectedIndex}">
- <ComboBoxItem Content="Chinese Simplified"/>
- <ComboBoxItem Content="Chinese Traditional"/>
- <ComboBoxItem Content="English"/>
- <ComboBoxItem Content="Japan"/>
- <ComboBoxItem Content="Korean"/>
- </ComboBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="0,0,0,0">
- <TextBlock Text="Page Range" Height="20" Style="{StaticResource PropertyHeaderLv2}" HorizontalAlignment="Left"/>
- <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,10,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" MaxPageRange="{Binding MaxPageRange}" Loaded="PageRangeComboBox_Loaded">
- <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>
- </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"
- Content="{Binding T_No}"
- Command="{Binding CancelCommand}" Style="{StaticResource btn.sec}"/>
- <Button
- Width="98"
- Height="32"
- Margin="124,0"
- HorizontalAlignment="Right"
- Content="{Binding T_YES}"
- Command = "{Binding ConverterCommnad}" Style="{StaticResource Btn.cta}"/>
- </Grid>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|