#0024 修复浮动工具箱
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<FontFamily x:Key="CsdFont">Microsoft YaHei UI</FontFamily>
|
||||
|
||||
<!-- 节点项样式 -->
|
||||
<Style x:Key="PipelineNodeItemStyle" TargetType="telerik:RadListBoxItem">
|
||||
<Style x:Key="PipelineNodeItemStyle" TargetType="ListBoxItem">
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||||
@@ -45,7 +45,7 @@
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="36" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="2*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
@@ -110,19 +110,19 @@
|
||||
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
||||
<Button
|
||||
Command="{Binding NewPipelineCommand}"
|
||||
Content="新"
|
||||
Content="新建"
|
||||
Style="{StaticResource ToolbarBtn}"
|
||||
ToolTip="新建流水线" />
|
||||
<Button
|
||||
Command="{Binding SavePipelineCommand}"
|
||||
Content="存"
|
||||
Content="保存"
|
||||
Style="{StaticResource ToolbarBtn}"
|
||||
ToolTip="保存流水线" />
|
||||
<Button
|
||||
Command="{Binding SaveAsPipelineCommand}"
|
||||
Content="另"
|
||||
Content="另存为"
|
||||
Style="{StaticResource ToolbarBtn}"
|
||||
ToolTip="另存为" />
|
||||
ToolTip="另存为" Width="43" />
|
||||
<Button
|
||||
Command="{Binding ExecutePipelineCommand}"
|
||||
Content="▶"
|
||||
@@ -145,83 +145,52 @@
|
||||
|
||||
|
||||
<!-- 流水线节点列表(拖拽目标) -->
|
||||
<telerik:RadListBox
|
||||
<ListBox
|
||||
x:Name="PipelineListBox"
|
||||
Grid.Row="2"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
ItemContainerStyle="{StaticResource PipelineNodeItemStyle}"
|
||||
ItemsSource="{Binding PipelineNodes}"
|
||||
SelectedItem="{Binding SelectedNode, Mode=TwoWay}">
|
||||
<telerik:RadListBox.ItemTemplate>
|
||||
SelectedItem="{Binding SelectedNode, Mode=TwoWay}"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid MinHeight="44">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="20" />
|
||||
<ColumnDefinition Width="28" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 竖线连接 -->
|
||||
<Canvas Grid.Column="0" Width="20">
|
||||
<Line
|
||||
Stroke="#5B9BD5"
|
||||
StrokeThickness="2"
|
||||
X1="10"
|
||||
X2="10"
|
||||
Y1="0"
|
||||
Y2="40" />
|
||||
<Rectangle
|
||||
Canvas.Left="3"
|
||||
Canvas.Top="12"
|
||||
Width="14"
|
||||
Height="14"
|
||||
Fill="White"
|
||||
RadiusX="2"
|
||||
RadiusY="2"
|
||||
Stroke="#5B9BD5"
|
||||
StrokeThickness="1.5" />
|
||||
</Canvas>
|
||||
<!-- 竖线连接 + 节点方块 -->
|
||||
<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>
|
||||
|
||||
<!-- 节点行 -->
|
||||
<Border
|
||||
Grid.Column="1"
|
||||
Padding="6,8"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0">
|
||||
<Border.Style>
|
||||
<Style TargetType="Border">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding IsSelected}" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource AccentBlue}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<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 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}" />
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
FontFamily="Microsoft YaHei UI" FontSize="12"
|
||||
Text="{Binding DisplayName}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</telerik:RadListBox.ItemTemplate>
|
||||
</telerik:RadListBox>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
<!-- 分隔线 -->
|
||||
<Rectangle
|
||||
Grid.Row="3"
|
||||
|
||||
Reference in New Issue
Block a user