123456789101112131415161718192021222324252627282930313233343536373839 |
- <UserControl x:Class="PDF_Office.Views.PropertyPanel.Scan.ScanPropertyPanel"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.Scan" xmlns:customcontrol="clr-namespace:PDF_Office.CustomControl" xmlns:scan="clr-namespace:PDF_Office.ViewModels.PropertyPanel.Scan" xmlns:dataconvert="clr-namespace:PDF_Office.DataConvert" d:DataContext="{d:DesignInstance Type=scan:ScanPropertyPanelViewModel}"
- mc:Ignorable="d" >
- <UserControl.Resources>
- <dataconvert:BoolToVisible x:Key="BoolToVisible"/>
- </UserControl.Resources>
- <Grid>
- <StackPanel>
- <TextBlock Text="识别文本"/>
- <customcontrol:PathRadioButton x:Name="BtnOCR" Command="{Binding UnknownCommand}"
- MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
- <customcontrol:PathRadioButton.Content >
- <TextBlock Text="页面识别"/>
- </customcontrol:PathRadioButton.Content>
- </customcontrol:PathRadioButton>
- <customcontrol:PathRadioButton x:Name="BtnArea" Command="{Binding AreaCommand}"
- MouseOverBackground="#EDEEF0" MouseDownBackground="#CED0D4" MouseDownBackgroundOpacity="0.6"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
- <customcontrol:PathRadioButton.Content >
- <TextBlock Text="区域识别"/>
- </customcontrol:PathRadioButton.Content>
- </customcontrol:PathRadioButton>
- <TextBlock Text="一个页面只会显示最后一次OCR的结果,不会显示多次结果。" TextWrapping="Wrap" Visibility="{Binding ElementName=BtnArea,Path=IsChecked,Converter={StaticResource BoolToVisible}}" />
- <ComboBox SelectedIndex="0">
- <TextBlock Text="English"/>
- <TextBlock Text="Chinese Simplified"/>
- <TextBlock Text="Chinese Traditional"/>
- <TextBlock Text="French"/>
- </ComboBox>
- <customcontrol:WritableComboBox SelectedIndex="0" MaxPageRange="{Binding PageCount}" PageIndexList="{Binding SetPageRange,Mode=TwoWay}"/>
- <Button Content="OCR" Command="{Binding OCRCommand}" IsEnabled="{Binding ElementName=BtnOCR,Path=IsChecked}"/>
- </StackPanel>
- </Grid>
- </UserControl>
|