#0030 优化图像处理窗体页面布局,简洁清晰
This commit is contained in:
@@ -44,64 +44,22 @@
|
||||
CornerRadius="4">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<!-- Row 0: 工具栏 -->
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="2*" />
|
||||
<!-- Row 1: 流水线节点列表 -->
|
||||
<RowDefinition Height="3*" />
|
||||
<!-- Row 2: 分隔线 -->
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<!-- Row 3: 参数面板 -->
|
||||
<RowDefinition Height="2*" MinHeight="80" />
|
||||
<!-- Row 4: 状态栏 -->
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 标题栏:流水线名称 + 设备选择 -->
|
||||
<Border
|
||||
Grid.Row="0"
|
||||
Padding="8,5"
|
||||
Background="#F0F0F0"
|
||||
BorderBrush="{StaticResource PanelBorder}"
|
||||
BorderThickness="0,0,0,1">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="120" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock
|
||||
Grid.Column="0"
|
||||
Margin="0,0,8,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="{StaticResource CsdFont}"
|
||||
FontSize="12"
|
||||
FontWeight="Bold"
|
||||
Foreground="#1c1c1b"
|
||||
Text="图像处理 ▾" />
|
||||
<TextBox
|
||||
Grid.Column="1"
|
||||
VerticalAlignment="Center"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
FontFamily="{StaticResource CsdFont}"
|
||||
FontSize="11"
|
||||
Text="{Binding PipelineName, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock
|
||||
Grid.Column="2"
|
||||
Margin="0,0,4,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="{StaticResource CsdFont}"
|
||||
FontSize="11"
|
||||
Text="设备:" />
|
||||
<telerik:RadComboBox
|
||||
Grid.Column="3"
|
||||
Height="22"
|
||||
FontFamily="{StaticResource CsdFont}"
|
||||
FontSize="11"
|
||||
ItemsSource="{Binding AvailableDevices}"
|
||||
SelectedItem="{Binding SelectedDevice}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<!-- 工具栏 -->
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Row="0"
|
||||
Padding="6,4"
|
||||
Background="#F5F5F5"
|
||||
BorderBrush="{StaticResource PanelBorder}"
|
||||
@@ -150,11 +108,10 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
|
||||
<!-- 流水线节点列表(拖拽目标) -->
|
||||
<ListBox
|
||||
x:Name="PipelineListBox"
|
||||
Grid.Row="2"
|
||||
Grid.Row="1"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
ItemContainerStyle="{StaticResource PipelineNodeItemStyle}"
|
||||
@@ -280,13 +237,13 @@
|
||||
</ListBox>
|
||||
<!-- 分隔线 -->
|
||||
<Rectangle
|
||||
Grid.Row="3"
|
||||
Grid.Row="2"
|
||||
Height="1"
|
||||
Fill="{StaticResource SeparatorBrush}" />
|
||||
|
||||
<!-- 参数面板 -->
|
||||
<ScrollViewer
|
||||
Grid.Row="4"
|
||||
Grid.Row="3"
|
||||
HorizontalScrollBarVisibility="Disabled"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Margin="8,6">
|
||||
@@ -340,20 +297,20 @@
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
|
||||
|
||||
<!-- 状态栏 -->
|
||||
<Border
|
||||
Grid.Row="5"
|
||||
Padding="3,3"
|
||||
Background="#F5F5F5">
|
||||
Grid.Row="4"
|
||||
Padding="6,4"
|
||||
Background="#F5F5F5"
|
||||
BorderBrush="{StaticResource PanelBorder}"
|
||||
BorderThickness="0,1,0,0">
|
||||
<TextBlock
|
||||
FontFamily="{StaticResource CsdFont}"
|
||||
FontSize="11"
|
||||
Foreground="#555"
|
||||
Text="{Binding StatusMessage}"
|
||||
Text="{Binding StatusMessage, StringFormat='Status: {0}'}"
|
||||
TextTrimming="CharacterEllipsis" />
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</UserControl>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user