| | |
| | | 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" |
| | |
| | | <!--<UserControl.ToolTip> |
| | | <ToolTip Padding="5" BorderThickness="1" BorderBrush="Black" Background="Yellow" Content="{Binding tooltipContent}"/> |
| | | </UserControl.ToolTip>--> |
| | | |
| | | <UserControl.ContextMenu> |
| | | <ContextMenu> |
| | | <MenuItem IsCheckable="True" IsChecked="{Binding CellIsDisabled,Mode=TwoWay}" Header="禁用"/> |
| | | </ContextMenu> |
| | | </UserControl.ContextMenu> |
| | | |
| | | <UserControl.Style> |
| | | <Style TargetType="UserControl"> |
| | |
| | | <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"/> |
| | |
| | | </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"/> |