ScanContent.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl x:Class="PDF_Master.Views.Tools.ScanContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Master.Views.Tools" xmlns:customcontrol="clr-namespace:PDF_Master.CustomControl" xmlns:tools="clr-namespace:PDF_Master.ViewModels.Tools" d:DataContext="{d:DesignInstance Type=tools:ScanContentViewModel}"
  7. mc:Ignorable="d" >
  8. <Grid>
  9. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <customcontrol:ImageRadioButton HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  11. Padding="3" Command="{Binding EnhancedCommand}" GroupName="enhance" CommandParameter="{Binding RelativeSource={ RelativeSource Mode=Self}}"
  12. MouseOverBackground="{StaticResource color.item-state.sel.bg.lv2}"
  13. Icon="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/enhance.png"
  14. IconChecked="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/enhance.png"
  15. IconPress="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/enhance.png"
  16. IconMouseOver="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/enhance.png"
  17. Background="Transparent" Content="增强扫描"/>
  18. <customcontrol:ImageRadioButton HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  19. Padding="3" Command="{Binding NavigationCommand}" GroupName="ocr"
  20. MouseOverBackground="{StaticResource color.item-state.sel.bg.lv2}"
  21. Icon="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/ocr.png"
  22. IconChecked="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/ocr.png"
  23. IconPress="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/ocr.png"
  24. IconMouseOver="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/ocr.png"
  25. Background="Transparent" Content="识别文本"/>
  26. <customcontrol:ImageButton HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  27. Padding="3"
  28. MouseOverBackground="#000000" MouseOverBackgroundOpacity="0.25"
  29. Icon="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/batch.png"
  30. IconPress="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/batch.png"
  31. IconMouseOver="pack://application:,,,/PDF Master;component/Resources/ToolBarIcon/Scan/batch.png"
  32. Background="Transparent" Content="批量识别文本"/>
  33. </StackPanel>
  34. </Grid>
  35. </UserControl>