1234567891011121314151617 |
- <UserControl x:Class="PDF_Office.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_Office.Views.Scan" xmlns:scanviewcontrol="clr-namespace:PDF_Office.CustomControl.ScanViewControl" xmlns:scan="clr-namespace:PDF_Office.ViewModels.Scan" d:DataContext="{d:DesignInstance Type=scan:ScanViwerViewModel}"
- mc:Ignorable="d"
- >
- <Grid PreviewMouseWheel="Grid_MouseWheel" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="LightGray">
- <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 BGImage="{Binding BgImage}" OCRTextRectList="{Binding TextRectList}"/>
- </Grid>
- </ScrollViewer>
- </Grid>
- </UserControl>
|