12345678910111213141516171819202122232425262728293031323334353637383940 |
- <UserControl x:Class="PDF_Master.Views.Scan.ScanViwer"
- 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_Master.Views.Scan" xmlns:scanviewcontrol="clr-namespace:PDF_Master.CustomControl.ScanViewControl" xmlns:scan="clr-namespace:PDF_Master.ViewModels.Scan" xmlns:customcontrol="clr-namespace:PDF_Master.CustomControl" d:DataContext="{d:DesignInstance Type=scan:ScanViwerViewModel}"
- mc:Ignorable="d"
- Loaded="UserControl_Loaded"
- Unloaded="UserControl_Unloaded"
- KeyDown="UserControl_KeyDown"
- >
- <Grid PreviewMouseWheel="Grid_MouseWheel" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="LightGray" MouseLeftButtonUp="BitmapPanel_MouseLeftButtonUp">
- <ScrollViewer HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Auto" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
- <Grid x:Name="ImageGrid" HorizontalAlignment="Center" VerticalAlignment="Center" Width="500" Height="500">
- <scanviewcontrol:CustomPanel x:Name="BitmapPanel"
- BGImage="{Binding BgImage}" OCRTextRectList="{Binding TextRectList}" IsShowRect="{Binding IsShowRect}"
- MouseDown="CustomPanel_MouseDown" MouseLeftButtonDown="BitmapPanel_MouseLeftButtonDown" MouseLeftButtonUp="BitmapPanel_MouseLeftButtonUp" MouseMove="BitmapPanel_MouseMove" MouseRightButtonDown="BitmapPanel_MouseRightButtonDown"/>
- <Canvas>
- <local:Redress x:Name="RedressControl" Visibility="Collapsed" IsVisibleChanged="RedressControl_IsVisibleChanged" ApplyCommandHandler="RedressControl_ApplyCommandHandler"/>
- </Canvas>
- </Grid>
- </ScrollViewer>
- <Grid Width="318" Height="128" Background="{StaticResource color.sys.layout.state.note}" VerticalAlignment="Top" HorizontalAlignment="Right" Visibility="{Binding ShowTooltip}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="8"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="8"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="8"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="8"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="1" Grid.Column="1" Text="增强扫描已完成"/>
- <Button Grid.Row="1" Grid.Column="1" Content="取消增强效果" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="50" Height="50" Command="{Binding CancelEnhancedCommand}"/>
- <Button Grid.Row="1" Grid.Column="1" Content="取消" HorizontalAlignment="Right" VerticalAlignment="Top" Width="20" Height="20" Command="{Binding CloseTooltipCommand}"/>
- </Grid>
- </Grid>
- </UserControl>
|