添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<UserControl x:Class="MainShell.ToolBox.View.DownCamLightView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View"
|
||||
xmlns:customControl="clr-namespace:MainShell.Resources.CustomControl"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid Margin="5">
|
||||
<UniformGrid HorizontalAlignment="Center" Columns="1" Rows="5">
|
||||
<customControl:LightControl Value="{Binding DownCamLightConfig.PointRedLight}"
|
||||
Header="{DynamicResource PointRedLight}"/>
|
||||
<customControl:LightControl Value="{Binding DownCamLightConfig.PointBlueLight}"
|
||||
Header="{DynamicResource PointBlueLight}"/>
|
||||
<customControl:LightControl Value="{Binding DownCamLightConfig.RingRedLight}"
|
||||
Header="{DynamicResource RingRedLight}"/>
|
||||
<customControl:LightControl Value="{Binding DownCamLightConfig.RingBlueLight}"
|
||||
Header="{DynamicResource RingBlueLight}"/>
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// DownCamLightView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DownCamLightView : UserControl
|
||||
{
|
||||
public DownCamLightView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<UserControl x:Class="MainShell.ToolBox.View.FootView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d" Height="60"
|
||||
>
|
||||
<Border CornerRadius="10" >
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal" IsEnabled="{Binding IsEnabled}">
|
||||
<Button Style="{StaticResource DarkCrystalButtonStyle}" Click="{mw:Action ToolBoxClick}" Margin="2,4" Content="{DynamicResource ToolBox}"/>
|
||||
<Button Style="{StaticResource DarkCrystalButtonStyle}" Margin="2,4" Content="{DynamicResource MainAxisHome}"/>
|
||||
<Button Style="{StaticResource GreenCrystalButtonStyle}" Click="{mw:Action ManualMotionOperateClick}" Margin="2,4" Content="{DynamicResource ManualModeOperation}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// FootView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class FootView : UserControl
|
||||
{
|
||||
public FootView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<Window x:Class="MainShell.ToolBox.View.ManualMotionWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View"
|
||||
xmlns:mw="http://www.maxwell.com/controls"
|
||||
mc:Ignorable="d"
|
||||
Title="ManualMotionWindow" Height="800" Width="1100">
|
||||
<Grid>
|
||||
<mw:ManualControlView/>
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// ManualMotionWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ManualMotionWindow : Window
|
||||
{
|
||||
public ManualMotionWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Closing += ManualMotionWindow_Closing ;
|
||||
}
|
||||
|
||||
private void ManualMotionWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
if (!IoC.Get<MachineState>().IsExiting)
|
||||
{
|
||||
e.Cancel = true;
|
||||
this.Hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<UserControl x:Class="MainShell.ToolBox.View.MapCamLightView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View" xmlns:customControl="clr-namespace:MainShell.Resources.CustomControl"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid Margin="5">
|
||||
<UniformGrid HorizontalAlignment="Center" Columns="1" Rows="5">
|
||||
<customControl:LightControl Value="{Binding MapCamLightConfig.RedLight}"
|
||||
Header="{DynamicResource RingRedLight}"/>
|
||||
<customControl:LightControl Value="{Binding MapCamLightConfig.BlueLight}"
|
||||
Header="{DynamicResource RingBlueLight}"/>
|
||||
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// MapCamLightView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MapCamLightView : UserControl
|
||||
{
|
||||
public MapCamLightView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<Window x:Class="MainShell.ToolBox.View.ToolBoxWindowView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View"
|
||||
xmlns:vm="clr-namespace:MainShell.Models"
|
||||
xmlns:toolvm="clr-namespace:MainShell.ToolBox.ViewModel"
|
||||
AllowsTransparency="False"
|
||||
WindowStyle="None"
|
||||
|
||||
mc:Ignorable="d"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
Closing="Window_Closing"
|
||||
Height="450" Width="800">
|
||||
<WindowChrome.WindowChrome>
|
||||
|
||||
<WindowChrome
|
||||
CaptionHeight="0"
|
||||
CornerRadius="10"
|
||||
UseAeroCaptionButtons="False"
|
||||
ResizeBorderThickness="6"
|
||||
GlassFrameThickness="-1" />
|
||||
|
||||
</WindowChrome.WindowChrome>
|
||||
<Window.Resources>
|
||||
<Style TargetType="ListBoxItem">
|
||||
<!-- 让内容水平拉伸,内边距等 -->
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Padding" Value="12,10"/>
|
||||
<Setter Property="Margin" Value="0"/>
|
||||
<Setter Property="Background" Value="{StaticResource BackgroundBrush}"/>
|
||||
|
||||
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ListBoxItem">
|
||||
<Border x:Name="bd" Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
>
|
||||
<ContentPresenter Margin="6,0"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsMouseOver" Value="True"/>
|
||||
<Condition Property="IsSelected" Value="False"/>
|
||||
</MultiTrigger.Conditions>
|
||||
|
||||
<Setter TargetName="bd" Property="Background" Value="#DAE4F1"/>
|
||||
|
||||
</MultiTrigger>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
|
||||
<Setter TargetName="bd" Property="Background" Value="#5880B2"/>
|
||||
|
||||
<Setter Property="BorderBrush" Value="#3688F1"/>
|
||||
|
||||
<Setter Property="Foreground" Value="White"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- DataTemplate:不要显式绑定到模型的 Foreground,改为继承 ListBoxItem 的 Foreground -->
|
||||
<DataTemplate DataType="{x:Type vm:ToolNavItem}">
|
||||
<DockPanel>
|
||||
<TextBlock Text="{Binding Icon}"
|
||||
FontFamily="{StaticResource ttfFont}"
|
||||
Foreground="{Binding Foreground}"
|
||||
FontSize="16" Margin="2,0,8,0" />
|
||||
<StackPanel>
|
||||
<TextBlock Text="{Binding Title}" FontWeight="SemiBold"/>
|
||||
<TextBlock Text="{Binding Subtitle}" FontSize="11"/>
|
||||
</StackPanel>
|
||||
</DockPanel>
|
||||
</DataTemplate>
|
||||
|
||||
<!-- 其余 DataTemplate 保持不变 -->
|
||||
<DataTemplate DataType="{x:Type toolvm:UpCamLightViewModel}">
|
||||
<local:UpCamLightView/>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type toolvm:DownCamLightViewModel}">
|
||||
<local:DownCamLightView/>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type toolvm:MapCamLightViewModel}">
|
||||
<local:MapCamLightView/>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type toolvm:VisionDisplayTestViewModel}">
|
||||
<local:VisionDisplayTestView/>
|
||||
</DataTemplate>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Border BorderThickness="1" BorderBrush="#8829F5" Grid.RowSpan="2"/>
|
||||
<Grid MouseDown="Border_MouseDown" Opacity="0.8" Background="#205496">
|
||||
|
||||
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{DynamicResource ToolBox}" FontSize="18" FontWeight="Bold" Foreground="White" Margin="20,5"/>
|
||||
<Button Margin="34,2" Click="MinClick" BorderBrush="White" FontSize="18" HorizontalAlignment="Right" Style="{StaticResource TitleBarMinButtonStyle}"/>
|
||||
<Button Margin="4,2" Click="CloseClick" BorderBrush="White" FontSize="18" HorizontalAlignment="Right" Style="{StaticResource TitleBarCloseButtonStyle}"/>
|
||||
|
||||
</Grid>
|
||||
<Grid Background="{StaticResource BackgroundBrush}" Grid.Row="1">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<ListBox x:Name="ToolBoxListBox"
|
||||
Style="{x:Null}"
|
||||
Background="#E4E8EA"
|
||||
BorderThickness="0"
|
||||
SelectedItem="{Binding SelectedTool}"
|
||||
ItemsSource="{Binding Tools}"
|
||||
>
|
||||
|
||||
</ListBox>
|
||||
<ContentControl Grid.Column="1"
|
||||
Content="{Binding SelectedTool.ContentViewModel}"
|
||||
Margin="10,0,0,0"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// ToolBoxWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ToolBoxWindowView : Window
|
||||
{
|
||||
public ToolBoxWindowView()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = new ViewModel.ToolBoxWindowViewModel();
|
||||
}
|
||||
|
||||
private void Border_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
this.DragMove();
|
||||
}
|
||||
|
||||
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
||||
{
|
||||
if(!IoC.Get<MachineState>().IsExiting)
|
||||
{
|
||||
e.Cancel = true;
|
||||
this.Hide();
|
||||
}
|
||||
}
|
||||
|
||||
private void MinClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.WindowState = WindowState.Minimized;
|
||||
}
|
||||
|
||||
private void CloseClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<UserControl x:Class="MainShell.ToolBox.View.UpCamLightView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.ToolBox.View"
|
||||
xmlns:customControl="clr-namespace:MainShell.Resources.CustomControl"
|
||||
mc:Ignorable="d"
|
||||
>
|
||||
<Grid Margin="5">
|
||||
<UniformGrid HorizontalAlignment="Center" Columns="1" Rows="5">
|
||||
<customControl:LightControl Value="{Binding UpCamLightConfig.PointRedLight}"
|
||||
Header="{DynamicResource PointRedLight}"/>
|
||||
<customControl:LightControl Value="{Binding UpCamLightConfig.PointBlueLight}"
|
||||
Header="{DynamicResource PointBlueLight}"/>
|
||||
<customControl:LightControl Value="{Binding UpCamLightConfig.RingRedLight}"
|
||||
Header="{DynamicResource RingRedLight}"/>
|
||||
<customControl:LightControl Value="{Binding UpCamLightConfig.RingBlueLight}"
|
||||
Header="{DynamicResource RingBlueLight}"/>
|
||||
<customControl:LightControl Value="{Binding UpCamLightConfig.RedBackLight}"
|
||||
Header="{DynamicResource RedBackLight}"/>
|
||||
</UniformGrid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
/// <summary>
|
||||
/// UpCamLightView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class UpCamLightView : UserControl
|
||||
{
|
||||
public UpCamLightView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
<UserControl x:Class="MainShell.ToolBox.View.VisionDisplayTestView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800">
|
||||
<Grid Margin="12">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Padding="12" BorderBrush="#C7C7C7" BorderThickness="1" Background="#F8FAFC">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="180"/>
|
||||
<ColumnDefinition Width="24"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock VerticalAlignment="Center" Text="目标相机:" FontWeight="SemiBold"/>
|
||||
<ComboBox Grid.Column="1"
|
||||
Margin="8,0,0,0"
|
||||
ItemsSource="{Binding CameraTypes}"
|
||||
SelectedItem="{Binding State.SelectedCameraType}"
|
||||
VerticalAlignment="Center"/>
|
||||
|
||||
<CheckBox Grid.Column="3"
|
||||
VerticalAlignment="Center"
|
||||
IsChecked="{Binding State.ClearShapesBeforeDisplay}"
|
||||
Content="显示前清空图形"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<StackPanel Grid.Row="1" Margin="0,12,0,0" Orientation="Horizontal">
|
||||
<Button MinWidth="120"
|
||||
Height="32"
|
||||
Margin="0,0,12,0"
|
||||
Content="发送图片事件"
|
||||
mw:View.ActionTarget="{Binding}"
|
||||
Click="{mw:Action SendImageEvent}"/>
|
||||
<Button MinWidth="140"
|
||||
Height="32"
|
||||
Margin="0,0,12,0"
|
||||
Content="发送显示事件"
|
||||
mw:View.ActionTarget="{Binding}"
|
||||
Click="{mw:Action SendDisplayEvent}"/>
|
||||
<Button MinWidth="120"
|
||||
Height="32"
|
||||
Content="清空显示"
|
||||
mw:View.ActionTarget="{Binding}"
|
||||
Click="{mw:Action ClearDisplayEvent}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Border Grid.Row="2" Margin="0,12,0,0" Padding="12" BorderBrush="#C7C7C7" BorderThickness="1" Background="#FFFFFF">
|
||||
<StackPanel>
|
||||
<TextBlock Text="测试说明" FontSize="16" FontWeight="Bold" Foreground="#0B4A8B"/>
|
||||
<TextBlock Margin="0,10,0,0" TextWrapping="Wrap" Text="1. 发送图片事件后,主界面对应相机区域应显示一张 320x240 的模拟彩色图。"/>
|
||||
<TextBlock Margin="0,6,0,0" TextWrapping="Wrap" Text="2. 发送显示事件后,主界面对应相机区域应叠加点、文本、矩形、圆和线。"/>
|
||||
<TextBlock Margin="0,6,0,0" TextWrapping="Wrap" Text="3. 清空显示用于验证 Shapes 清理是否生效。"/>
|
||||
<Border Margin="0,16,0,0" Padding="10" Background="#EFF6FF" BorderBrush="#BFDBFE" BorderThickness="1">
|
||||
<TextBlock TextWrapping="Wrap" Text="{Binding State.StatusMessage}" Foreground="#1D4ED8"/>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MainShell.ToolBox.View
|
||||
{
|
||||
public partial class VisionDisplayTestView : UserControl
|
||||
{
|
||||
public VisionDisplayTestView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user