C3032
2025-12-20 15492363f898704b51afce5f1c88fa3b754cbabc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Window x:Class="SmartScanner.ImageDisplayWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:opencvsharp1="http://schemas.microsoft.com/netfx/2009/xaml/presentation"
        mc:Ignorable="d"
        Title="ImageDisplayWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="10*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
        <opencvsharp1:Image x:Name="ResultImage" Grid.Column="1" Grid.Row="0" Stretch="Uniform"/>
            <!--<StackPanel Grid.Row="0" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Center">-->
            <Button x:Name="PrevButton" Content="&lt;" Grid.Row="0" Grid.Column="0"  HorizontalAlignment="Stretch"
                    BorderThickness="0" FontSize="48" Click="PrevButton_Click" Background="{x:Null}" BorderBrush="{x:Null}" >
                    <!--<TextBox Text="&lt;" HorizontalAlignment="Center"  VerticalAlignment="Center" FontSize="48" BorderBrush="{x:Null}">
                    </TextBox>-->
                </Button>
            <!--</StackPanel>-->
            <!--<StackPanel Grid.Row="0" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Center">-->
            <Button x:Name="NextButton" Content=">" Click="NextButton_Click"  FontSize="48"
                    BorderThickness="0" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Stretch" Background="White" BorderBrush="{x:Null}" >
                    <!--<TextBox Text=">" HorizontalAlignment="Center"  VerticalAlignment="Center" FontSize="48" BorderBrush="{x:Null}">
                    </TextBox>-->
                </Button>
            <!--</StackPanel>-->
        </Grid>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <!--<Button x:Name="PrevButton" Content="上一张" Width="80" Margin="10" Click="PrevButton_Click"/>-->
            <!--<Button x:Name="NextButton" Content="下一张" Width="80" Margin="10" Click="NextButton_Click"/>-->
        </StackPanel>
    </Grid>
</Window>