12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <UserControl
- x:Class="PDF_Office.Views.Dialog.ConverterDialogs.ConverterCSVDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converterdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.ConverterDialogs"
- 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="416"
- d:DataContext="{d:DesignInstance Type=converterdialogs:ConverterCSVDialogViewModel}"
- d:DesignHeight="416"
- d:DesignWidth="529"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <cus:DialogContent Header="PDF转CSV">
- <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" />
- </Grid>
- <Grid Grid.Column="1">
- <StackPanel Margin="18,16,0,0">
- <StackPanel>
- <RadioButton
- Name="ForEachPageRadioBtn"
- Command="{Binding RadioButtonCommand}"
- CommandParameter="{Binding ElementName=ForEachPageRadioBtn, Path=Name}">
- <TextBlock Text="将每个页面转换为一个单独的文档" />
- </RadioButton>
- <RadioButton
- Name="OnlyTableRadioBtn"
- Margin="0,6,0,0"
- Command="{Binding RadioButtonCommand}"
- CommandParameter="{Binding ElementName=ForTheDocRadioBtn, Path=Name}">
- <TextBlock Text="只提取表格" />
- </RadioButton>
- </StackPanel>
- <StackPanel Margin="0,14,0,0" Orientation="Vertical">
- <TextBlock
- Width="48"
- Height="20"
- HorizontalAlignment="Left"
- Text="页面范围" />
- <cus:WritableComboBox
- x:Name="PageRangeComboBox"
- Width="228"
- Height="32"
- Margin="0,4,0,0"
- HorizontalAlignment="Left"
- IsCurrentPage="True"
- 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:Interaction.Triggers>
- </cus:WritableComboBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </cus:DialogContent.Content>
- <cus:DialogContent.BottmBar>
- <Grid>
- <Button
- Width="98"
- Height="32"
- Margin="0,0,124,0"
- HorizontalAlignment="Right"
- Command="{Binding CancelCommand}"
- Content="取消" />
- <Button
- Width="98"
- Height="32"
- Margin="16,0"
- HorizontalAlignment="Right"
- Command="{Binding ConverterCommnad}"
- Content="转换" />
- </Grid>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|