使用新框架与技术代替旧框架与技术,实现涂装车间后道标签扫码程序
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<UserControl x:Class="RIZO_Application.Modules.ModuleName.Views.MqttControl"
|
||||
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:RIZO_Application.Modules.ModuleName.Views"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True">
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Windows.Controls;
|
||||
using RIZO_Application.Infrastructure.CustomAttribute;
|
||||
|
||||
namespace RIZO_Application.Modules.ModuleName.Views
|
||||
{
|
||||
[AutoRegisterView(ViewName = "MqttControl")]
|
||||
/// <summary>
|
||||
/// MqttController.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MqttControl : UserControl
|
||||
{
|
||||
public MqttControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<UserControl x:Class="RIZO_Application.Modules.ModuleName.Views.PrintControl"
|
||||
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:RIZO_Application.Modules.ModuleName.Views"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True">
|
||||
<Grid>
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Windows.Controls;
|
||||
using RIZO_Application.Infrastructure.CustomAttribute;
|
||||
|
||||
namespace RIZO_Application.Modules.ModuleName.Views
|
||||
{
|
||||
[AutoRegisterView(ViewName = "PrintControl")]
|
||||
/// <summary>
|
||||
/// PrintControl.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class PrintControl : UserControl
|
||||
{
|
||||
public PrintControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<UserControl x:Class="RIZO_Application.Modules.ModuleName.Views.ScanControl"
|
||||
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:RIZO_Application.Modules.ModuleName.Views"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True">
|
||||
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<!-- 状态指示灯 -->
|
||||
<Ellipse Width="24" Height="24" Margin="0,0,20,0">
|
||||
<Ellipse.Style>
|
||||
<Style TargetType="Ellipse">
|
||||
<Setter Property="Fill" Value="Red"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding IsConnected}" Value="True">
|
||||
<Setter Property="Fill" Value="Green"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Ellipse.Style>
|
||||
</Ellipse>
|
||||
|
||||
<!-- 状态文字描述 -->
|
||||
<TextBlock Text="{Binding ConnectionStatusText}"
|
||||
VerticalAlignment="Center"
|
||||
Foreground="{Binding ConnectionStatusForeground}"
|
||||
FontSize="24"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Windows.Controls;
|
||||
using RIZO_Application.Infrastructure.CustomAttribute;
|
||||
|
||||
namespace RIZO_Application.Modules.ModuleName.Views
|
||||
{
|
||||
[AutoRegisterView(ViewName = "ScanControl")]
|
||||
/// <summary>
|
||||
/// ScanControl.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ScanControl : UserControl
|
||||
{
|
||||
public ScanControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<UserControl x:Class="RIZO_Application.Modules.ModuleName.Views.ViewA"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:RIZO_Application.Modules.ModuleName.Views"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
xmlns:system="clr-namespace:System;assembly=netstandard"
|
||||
xmlns:core="clr-namespace:RIZO_Application.Core;assembly=RIZO_Application.Core"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True" >
|
||||
|
||||
<StackPanel Orientation="Vertical">
|
||||
<GroupBox HorizontalAlignment="Stretch" Header="扫码枪功能区"
|
||||
Padding="10" Margin="16" >
|
||||
<ContentControl prism:RegionManager.RegionName="{x:Static core:RegionNames.ScanRegion}" />
|
||||
|
||||
</GroupBox>
|
||||
<GroupBox HorizontalAlignment="Stretch" Header="打印功能区"
|
||||
Padding="10" Margin="16"></GroupBox>
|
||||
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,17 @@
|
||||
using RIZO_Application.Infrastructure.CustomAttribute;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace RIZO_Application.Modules.ModuleName.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for ViewA.xaml
|
||||
/// </summary>
|
||||
[AutoRegisterView(ViewName = "ViewA")]
|
||||
public partial class ViewA : UserControl
|
||||
{
|
||||
public ViewA()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user