VpTerminalEditorWindow.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <Window x:Class="Plugins.Vpp.Views.VpTerminalEditorWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="输出终端编辑" Height="680" Width="920"
  5. WindowStartupLocation="CenterScreen"
  6. Background="{DynamicResource SecondaryRegionBrush}">
  7. <DockPanel>
  8. <!-- 顶部:标题 + 类型筛选 -->
  9. <Border DockPanel.Dock="Top" Height="44" Background="{DynamicResource RegionBrush}"
  10. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1">
  11. <Grid Margin="10,0">
  12. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  13. <TextBlock x:Name="TxtTitle" FontSize="14" FontWeight="Bold"
  14. Foreground="{DynamicResource PrimaryTextBrush}" VerticalAlignment="Center" Margin="0,0,16,0"/>
  15. <TextBlock Text="勾选要作为输出终端的项(树 = 工具的全部属性/结果,带实时值)" FontSize="11"
  16. Foreground="{DynamicResource SecondaryTextBrush}" VerticalAlignment="Center"/>
  17. </StackPanel>
  18. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  19. <TextBlock Text="类型筛选:" FontSize="12"
  20. Foreground="{DynamicResource SecondaryTextBrush}" VerticalAlignment="Center" Margin="0,0,6,0"/>
  21. <ComboBox x:Name="TypeFilterCombo" Width="180" Height="28" FontSize="12"
  22. ToolTip="按类型筛选树节点(默认 ALL 显示全部)"/>
  23. </StackPanel>
  24. </Grid>
  25. </Border>
  26. <!-- 底部按钮 -->
  27. <Border DockPanel.Dock="Bottom" Height="52" Background="{DynamicResource RegionBrush}"
  28. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,1,0,0">
  29. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="10,0">
  30. <Button x:Name="BtnOk" Content="确定" Width="88" Height="32" Margin="0,0,8,0" Click="BtnOk_Click"/>
  31. <Button Content="取消" Width="88" Height="32" Click="BtnCancel_Click"/>
  32. </StackPanel>
  33. </Border>
  34. <!-- 工具属性/结果树 -->
  35. <TreeView x:Name="TermTree" Margin="8" Background="{DynamicResource RegionBrush}"
  36. VirtualizingPanel.IsVirtualizing="True"/>
  37. </DockPanel>
  38. </Window>