VppToolBlockEditView.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <UserControl x:Class="Plugins.Vpp.Views.VppToolBlockEditView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Plugins.Vpp.Views"
  7. xmlns:vpp="clr-namespace:Plugins.Vpp.Views"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. mc:Ignorable="d"
  10. Background="{DynamicResource SecondaryRegionBrush}"
  11. d:DesignHeight="560" d:DesignWidth="1100">
  12. <DockPanel>
  13. <!-- 顶部工具栏 -->
  14. <Border DockPanel.Dock="Top" Height="36"
  15. Background="{DynamicResource RegionBrush}"
  16. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
  17. <Grid>
  18. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="8,0">
  19. <TextBlock x:Name="TxtTitle" Text="VPP工具块" FontSize="14" FontWeight="Bold"
  20. Foreground="{DynamicResource PrimaryTextBrush}" VerticalAlignment="Center" Margin="0,0,16,0"/>
  21. <TextBlock Text="· 双击节点配置输入映射 · 配置 ToolBlock 工具链"
  22. FontSize="11"
  23. Foreground="{DynamicResource ForegroundSecondaryBrush}"
  24. VerticalAlignment="Center"/>
  25. </StackPanel>
  26. <Button x:Name="BtnProperties" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,8,0"
  27. Width="Auto" Height="Auto" ToolTip="模块属性 - 配置输入参数映射" Cursor="Hand"
  28. Background="Transparent" BorderThickness="0"
  29. Click="BtnProperties_Click">
  30. <Path Data="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.97,5.03C9.38,5.27,8.85,5.59,8.35,5.97L5.96,5.01C5.73,4.92,5.49,5.01,5.37,5.23L3.45,8.55 c-0.12,0.21-0.08,0.47,0.12,0.61l2.03,1.58C5.55,11.04,5.53,11.36,5.53,11.69c0,0.32,0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.37,2.22 c0.04,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.43-0.17,0.47-0.41l0.37-2.22c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.75c-2.07,0-3.75-1.68-3.75-3.75 c0-2.07,1.68-3.75,3.75-3.75c2.07,0,3.75,1.68,3.75,3.75C15.75,14.07,14.07,15.75,12,15.75z"
  31. Width="22" Height="22" Stretch="Uniform"
  32. Fill="{DynamicResource PrimaryTextBrush}"/>
  33. </Button>
  34. </Grid>
  35. </Border>
  36. <!-- 主区域:ToolBlock 编辑器 + 底部运行按钮 -->
  37. <vpp:ToolBlockEdit Grid.Row="0" x:Name="ToolBlockEditor"/>
  38. </DockPanel>
  39. </UserControl>