MainWindow.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <Window x:Class="SegImgs.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:SegImgs"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="440" Width="620">
  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. <ColumnDefinition Width="0.5*"/>
  18. </Grid.ColumnDefinitions>
  19. <Grid Grid.Column="0">
  20. <Image x:Name="ImgOrig" Margin="4,4,4,4" Source="{Binding}"/>
  21. </Grid>
  22. <Grid Grid.Column="1">
  23. <Image x:Name="ImgCrop" Margin="4,4,4,4" Source="{Binding}"/>
  24. </Grid>
  25. </Grid>
  26. <Grid Grid.Row="1">
  27. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  28. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  29. <RadioButton x:Name="RadioBtnAlgoEmgu" Content="EmguCVCS" Margin="4,4,4,2"/>
  30. <RadioButton x:Name="RadioBtnAlgoOpenCV" Content="OpenCVCppdll" Margin="2,4,4,4" />
  31. <RadioButton x:Name="RadioBtnAlgoOpenCVAnother" Content="OpenCVCppdll_2" Margin="2,4,4,4" IsChecked="True"/>
  32. </StackPanel>
  33. <Button Margin="4,2,2,4" Content="CropOneImg" Width="120" FontSize="12" Click="CropOneImgClicked"/>
  34. <Button Margin="4,2,2,4" Content="CropImgsInFolder" Width="120" FontSize="12" Click="CropImgsInFolderClicked"/>
  35. </StackPanel>
  36. </Grid>
  37. </Grid>
  38. </Window>