#0025 新增加载按钮;修复线居中
This commit is contained in:
@@ -123,6 +123,11 @@
|
||||
Content="另存为"
|
||||
Style="{StaticResource ToolbarBtn}"
|
||||
ToolTip="另存为" Width="43" />
|
||||
<Button
|
||||
Command="{Binding LoadPipelineCommand}"
|
||||
Content="加载"
|
||||
Style="{StaticResource ToolbarBtn}"
|
||||
ToolTip="加载流水线" Width="43" />
|
||||
<Button
|
||||
Command="{Binding ExecutePipelineCommand}"
|
||||
Content="▶"
|
||||
@@ -156,38 +161,47 @@
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid MinHeight="44">
|
||||
<Grid MinHeight="48">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="28" />
|
||||
<ColumnDefinition Width="44" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 竖线连接 + 节点方块 -->
|
||||
<Grid Grid.Column="0">
|
||||
<Line Stroke="#5B9BD5" StrokeThickness="2"
|
||||
X1="14" X2="14" Y1="0" Y2="44"
|
||||
HorizontalAlignment="Left" />
|
||||
<Border Width="16" Height="16"
|
||||
Background="White"
|
||||
BorderBrush="#5B9BD5" BorderThickness="1.5"
|
||||
CornerRadius="2"
|
||||
VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||||
</Grid>
|
||||
<!-- 连接线列:上半段 + 下半段 -->
|
||||
<Line x:Name="TopLine"
|
||||
Stroke="#5B9BD5" StrokeThickness="2"
|
||||
X1="0" X2="0" Y1="0" Y2="10"
|
||||
VerticalAlignment="Top"
|
||||
HorizontalAlignment="Center" />
|
||||
<Line Stroke="#5B9BD5" StrokeThickness="2"
|
||||
X1="0" X2="0" Y1="0" Y2="14"
|
||||
VerticalAlignment="Bottom"
|
||||
HorizontalAlignment="Center" />
|
||||
|
||||
<!-- 节点行 -->
|
||||
<Border Grid.Column="1" Padding="6,8">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Border Width="28" Height="28" Margin="0,0,8,0"
|
||||
Background="#E8F0FE" CornerRadius="3">
|
||||
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="13" Text="⚙" />
|
||||
</Border>
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
FontFamily="Microsoft YaHei UI" FontSize="12"
|
||||
Text="{Binding DisplayName}" />
|
||||
</StackPanel>
|
||||
<!-- 算子图标 -->
|
||||
<Border Grid.Column="0"
|
||||
Width="28" Height="28"
|
||||
Background="#E8F0FE"
|
||||
BorderBrush="#5B9BD5" BorderThickness="1.5"
|
||||
CornerRadius="4"
|
||||
VerticalAlignment="Center"
|
||||
HorizontalAlignment="Center">
|
||||
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
FontSize="13" Text="⚙" />
|
||||
</Border>
|
||||
|
||||
<!-- 算子名称 -->
|
||||
<TextBlock Grid.Column="1"
|
||||
VerticalAlignment="Center"
|
||||
Margin="6,0,0,0"
|
||||
FontFamily="Microsoft YaHei UI" FontSize="12"
|
||||
Text="{Binding DisplayName}" />
|
||||
</Grid>
|
||||
<DataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Order}" Value="0">
|
||||
<Setter TargetName="TopLine" Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
|
||||
Reference in New Issue
Block a user