优化流水线属性检查器布局
This commit is contained in:
@@ -41,6 +41,19 @@
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<!-- 属性检查器分区:统一节点列表与参数面板的浅色卡片风格 -->
|
||||
<Style x:Key="InspectorExpanderStyle" TargetType="Expander">
|
||||
<Setter Property="Margin" Value="0,8,0,0" />
|
||||
<Setter Property="Padding" Value="8,6" />
|
||||
<Setter Property="Background" Value="White" />
|
||||
<Setter Property="BorderBrush" Value="{StaticResource NovaOutlineVariantBrush}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Foreground" Value="{StaticResource NovaOnSurfaceBrush}" />
|
||||
<Setter Property="FontSize" Value="{StaticResource NovaFontSizeCaption}" />
|
||||
<Setter Property="FontWeight" Value="SemiBold" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
</Style>
|
||||
|
||||
</UserControl.Resources>
|
||||
|
||||
<Border
|
||||
@@ -520,7 +533,7 @@
|
||||
<DataTemplate>
|
||||
<Grid Margin="0,4">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="84" />
|
||||
<ColumnDefinition Width="92" />
|
||||
<ColumnDefinition Width="*" MinWidth="110" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
@@ -528,10 +541,11 @@
|
||||
Grid.Column="0"
|
||||
Margin="0,0,6,0"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="{StaticResource NovaFontSizeCaption}"
|
||||
Text="{Binding DisplayName}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
TextWrapping="Wrap" />
|
||||
FontSize="{StaticResource NovaFontSizeCaption}"
|
||||
Text="{Binding DisplayName}"
|
||||
TextTrimming="CharacterEllipsis"
|
||||
TextWrapping="NoWrap"
|
||||
ToolTip="{Binding DisplayName}" />
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.Style>
|
||||
@@ -659,10 +673,15 @@
|
||||
</ItemsControl>
|
||||
|
||||
<!-- 输出控制项分组(仅当存在 OutputXxx 参数时显示) -->
|
||||
<GroupBox Header="输出控制" Margin="0,10,0,0" Padding="6,4"
|
||||
FontSize="{StaticResource NovaFontSizeCaption}"
|
||||
<Expander Header="输出字段" Style="{StaticResource InspectorExpanderStyle}"
|
||||
IsExpanded="True"
|
||||
Visibility="{Binding SelectedNode.HasOutputControls, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||
<ItemsControl ItemsSource="{Binding SelectedNode.Parameters}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel Orientation="Horizontal" />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemContainerStyle>
|
||||
<Style TargetType="ContentPresenter">
|
||||
<Setter Property="Visibility" Value="Collapsed" />
|
||||
@@ -676,17 +695,18 @@
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<CheckBox
|
||||
Margin="0,2"
|
||||
Width="112"
|
||||
Margin="0,3,8,3"
|
||||
FontWeight="Normal"
|
||||
FontSize="{StaticResource NovaFontSizeCaption}"
|
||||
Content="{Binding DisplayName}"
|
||||
IsChecked="{Binding BoolValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</GroupBox>
|
||||
</Expander>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user