From c4a3f8db90530a727ffab77c3bb5bb7d782792bf Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 25 八月 2025 15:50:27 +0800
Subject: [PATCH] 上传代码;
---
Plugin.TestResult/SingleCell.xaml | 28 +++++++++++++++++++---------
1 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/Plugin.TestResult/SingleCell.xaml b/Plugin.TestResult/SingleCell.xaml
index 35448dc..57c824f 100644
--- a/Plugin.TestResult/SingleCell.xaml
+++ b/Plugin.TestResult/SingleCell.xaml
@@ -5,6 +5,8 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Plugin.TestResult_WPF"
mc:Ignorable="d"
+ xmlns:pw="https://opensource.panuon.com/wpf"
+xmlns:pu="https://opensource.panuon.com/wpf-ui"
x:Name="uc"
Padding="5"
MouseDoubleClick="UserControl_MouseDoubleClick"
@@ -13,9 +15,15 @@
<local:FontSizeConverter x:Key="FontSizeConverter"/>
</UserControl.Resources>
- <UserControl.ToolTip>
+ <!--<UserControl.ToolTip>
<ToolTip Padding="5" BorderThickness="1" BorderBrush="Black" Background="Yellow" Content="{Binding tooltipContent}"/>
- </UserControl.ToolTip>
+ </UserControl.ToolTip>-->
+
+ <UserControl.ContextMenu>
+ <ContextMenu>
+ <MenuItem IsCheckable="True" IsChecked="{Binding CellIsDisabled,Mode=TwoWay}" Header="绂佺敤"/>
+ </ContextMenu>
+ </UserControl.ContextMenu>
<UserControl.Style>
<Style TargetType="UserControl">
@@ -36,7 +44,7 @@
<Setter Property="Background" Value="#1296db"/>
</DataTrigger>
<DataTrigger Binding="{Binding status}" Value="waiting">
- <Setter Property="Background" Value="#6e6e6e"/>
+ <Setter Property="Background" Value="#A5A5A5"/>
</DataTrigger>
<DataTrigger Binding="{Binding status}" Value="alert">
<Setter Property="Background" Value="#e04733"/>
@@ -51,20 +59,22 @@
</Style>
</UserControl.Style>
<Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition/>
+ <ColumnDefinition/>
+ </Grid.ColumnDefinitions>
<!--<TextBox Grid.Row="0" IsReadOnly="True" TextAlignment="Center" Margin="0,0,0,3" FontSize="15"
Background="Transparent" BorderThickness="0" Text="{Binding title}"/>-->
- <Label Grid.Row="0" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" Padding="0" Margin="0,0,0,3"
+ <Label Grid.Column="0" HorizontalContentAlignment="Left" VerticalContentAlignment="Top" Padding="0" Margin="0"
FontSize="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl},
Converter={StaticResource FontSizeConverter}, ConverterParameter='15,103'}"
FontWeight="Bold"
Background="Transparent" BorderThickness="0" Content="{Binding title}"/>
- <Image Grid.Row="1">
+ <Image Grid.Column="1">
<Image.Style>
<Style TargetType="Image">
+ <Setter Property="HorizontalAlignment" Value="Center"/>
+ <Setter Property="VerticalAlignment" Value="Bottom"/>
<Style.Triggers>
<DataTrigger Binding="{Binding status}" Value="ok">
<Setter Property="Source" Value="Resource/ok2.png"/>
--
Gitblit v1.9.1