HalconToolAdvancedEditor.xaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <Window x:Class="Plugins.Halcon.Views.HalconToolAdvancedEditor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Halcon 算子高级编辑" Height="780" Width="1240"
  5. WindowStartupLocation="CenterScreen"
  6. Background="{DynamicResource SecondaryRegionBrush}">
  7. <DockPanel>
  8. <!-- 顶部工具栏 -->
  9. <Border DockPanel.Dock="Top" Height="46"
  10. Background="{DynamicResource RegionBrush}"
  11. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
  12. <Grid Margin="10,0">
  13. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  14. <TextBlock x:Name="TxtTitle" FontSize="14" FontWeight="Bold"
  15. Foreground="{DynamicResource PrimaryTextBrush}" VerticalAlignment="Center" Margin="0,0,16,0"/>
  16. <Button x:Name="BtnLoadImage" Content="加载图像" Width="88" Height="32" Margin="0,0,8,0"
  17. Click="BtnLoadImage_Click"
  18. ToolTip="从图片文件载入测试图像,注册为「图像」输入变量(算子绑定 &amp;{输入.图像} 时直接生效)"/>
  19. <Button x:Name="BtnRun" Content="▶ 执行" Width="88" Height="32" Margin="0,0,8,0" Click="BtnRun_Click"
  20. ToolTip="按当前参数执行一次该算子(与流程运行同一执行路径)"/>
  21. </StackPanel>
  22. <TextBlock x:Name="TxtStatus" HorizontalAlignment="Right" VerticalAlignment="Center"
  23. MaxWidth="520" FontSize="12" TextTrimming="CharacterEllipsis"
  24. Foreground="{DynamicResource SecondaryTextBrush}"
  25. Text="提示:左侧改参数 → 执行 → 右侧看结果;显示窗右键可画 ROI / 缩放 / 保存"/>
  26. </Grid>
  27. </Border>
  28. <!-- 左:普通参数(同一套模型属性);右:大显示窗 -->
  29. <Grid>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="360" MinWidth="280"/>
  32. <ColumnDefinition Width="4"/>
  33. <ColumnDefinition Width="*"/>
  34. </Grid.ColumnDefinitions>
  35. <Border Grid.Column="0" Background="{DynamicResource RegionBrush}"
  36. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,1,0">
  37. <ContentControl x:Name="PropertyHost" Margin="4"/>
  38. </Border>
  39. <GridSplitter Grid.Column="1" Width="4" HorizontalAlignment="Stretch"
  40. Background="{DynamicResource BorderBrush}"/>
  41. <ContentControl Grid.Column="2" x:Name="DisplayHost" Focusable="False"/>
  42. </Grid>
  43. </DockPanel>
  44. </Window>