MainWindow.xaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="RasonicSignalDetectionDemo.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:RasonicSignalDetectionDemo"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="80"/>
  13. </Grid.RowDefinitions>
  14. <Grid Grid.Row="0">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="0.5*"/>
  17. </Grid.ColumnDefinitions>
  18. <Grid Grid.Column="0">
  19. <Image x:Name="ImgOrig" Margin="4,4,4,4" Source="{Binding}"/>
  20. </Grid>
  21. <Grid Grid.Column="1">
  22. <Image x:Name="ImgCrop" Margin="4,4,4,4" Source="{Binding}"/>
  23. </Grid>
  24. </Grid>
  25. <Grid Grid.Row="1">
  26. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  27. <Button Margin="4,2,2,4" Content="检测单张" Width="120" FontSize="16" Click="DetectImage"/>
  28. <TextBlock x:Name="StatusText1" Width="80" Margin="4,4,4,4" VerticalAlignment="Center"/>
  29. </StackPanel>
  30. </Grid>
  31. </Grid>
  32. </Window>