123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <UserControl x:Class="PDF_Office.Views.Dialog.ConverterDialogs.ConverterExcelDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
- xmlns:prism="http://prismlibrary.com/"
- Width="529"
- Height="482"
- d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
- d:DesignHeight="482"
- d:DesignWidth="529"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <cus:DialogContent Header="PDF转Excel">
- <cus:DialogContent.Content>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="212"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <cus:PageTurningPreview x:Name="ConverterPreview" Loaded="ConverterPreview_Loaded"></cus:PageTurningPreview>
- </Grid>
- <Grid Grid.Column="1">
- <StackPanel Orientation="Vertical" Margin="18,16,0,0">
- <StackPanel Orientation="Vertical">
- <TextBlock Text="Excel工作簿设置:" Height="20"/>
- <StackPanel Orientation="Vertical" Margin="0,7,0,0">
- <RadioButton Name="ForEachPageRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=ForEachPageRadioBtn,Path=Name}" IsChecked="True">
- <TextBlock Text="将每个页面转换为一个单独的工作表"/>
- </RadioButton>
- <RadioButton Margin="0,6,0,0" Name="ForTheDocRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=ForTheDocRadioBtn,Path=Name}">
- <TextBlock Text="将所有页面转换为一个工作表格式"/>
- </RadioButton>
- <RadioButton Margin="0,10,0,0" Name="OnlyTableRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTableRadioBtn,Path=Name}">
- <TextBlock Text="只提取表格"/>
- </RadioButton>
- <ComboBox Name="OnlyTableComboBox" Margin="0,8,0,0" Width="258" Height="32" IsEnabled="{Binding ElementName=OnlyTableRadioBtn,Path=IsChecked}" SelectionChanged="OnlyTableComboBox_SelectionChanged" SelectedIndex="0">
- <ComboBoxItem Content="支持一个表格提取到单独的工作表"/>
- <ComboBoxItem Content="支持按页面提取表格到单独的工作表"/>
- <ComboBoxItem Content="支持将所有表格提取到一个工作表"/>
- </ComboBox>
- <RadioButton Margin="0,10,0,0" Name="OnlyTextRadioBtn" Command="{Binding RadioButtonCommand}" CommandParameter="{Binding ElementName=OnlyTextRadioBtn,Path=Name}">
- <TextBlock Text="只提取文字"></TextBlock>
- </RadioButton>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="0,16,0,0">
- <StackPanel Orientation="Vertical">
- <TextBlock Text="文本识别设置:" HorizontalAlignment="Left" Width="84" Height="20"/>
- <CheckBox Name="OCRCheckBox" Margin="0,5,0,0">
- <TextBlock Text="在需要时识别文本"/>
- </CheckBox>
- <ComboBox IsEnabled="{Binding ElementName=OCRCheckBox,Path=IsChecked}" Margin="0,6,0,0" Width="228" Height="28.55" HorizontalAlignment="Left">
- </ComboBox>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="0,14,0,0">
- <TextBlock Text="页面范围" Height="20" Width="48" HorizontalAlignment="Left"/>
- <cus:WritableComboBox x:Name="PageRangeComboBox" Margin="0,4,0,0" Width="228" Height="32" HorizontalAlignment="Left" IsCurrentPage="True" Text="{Binding PageRangeText, Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" 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:Interaction.Triggers>
- </cus:WritableComboBox>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </cus:DialogContent.Content>
- <cus:DialogContent.BottmBar>
- <Grid>
- <Button
- Width="98"
- Height="32"
- Margin="0,0,124,0"
- HorizontalAlignment="Right"
- Content="取消"
- Command="{Binding CancelCommand}"/>
- <Button
- Width="98"
- Height="32"
- Margin="16,0"
- HorizontalAlignment="Right"
- Content="转换"
- Command = "{Binding ConverterCommnad}"/>
- </Grid>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|