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