|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
|
|
|
|
xmlns:local="clr-namespace:SocketExample"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.07" Height="450" Width="800"
|
|
|
|
|
Title="RFID读写器多终端监控软件v1.08" Height="680" Width="1180"
|
|
|
|
|
Background="Transparent" AllowsTransparency="True" WindowStyle="None" WindowStartupLocation="CenterScreen">
|
|
|
|
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
@ -63,6 +63,7 @@
|
|
|
|
|
</LinearGradientBrush>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<Border CornerRadius="30">
|
|
|
|
|
<!--
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<DrawingBrush Opacity="0.2" TileMode="Tile" Viewport="0,0,300,80" ViewportUnits="Absolute">
|
|
|
|
|
<DrawingBrush.Transform>
|
|
|
|
@ -72,22 +73,25 @@
|
|
|
|
|
<DrawingGroup>
|
|
|
|
|
<GeometryDrawing Brush="Transparent">
|
|
|
|
|
<GeometryDrawing.Geometry>
|
|
|
|
|
<RectangleGeometry Rect="0,0,110,75"/>
|
|
|
|
|
<RectangleGeometry Rect="30,70,300,300"/>
|
|
|
|
|
</GeometryDrawing.Geometry>
|
|
|
|
|
</GeometryDrawing>
|
|
|
|
|
<ImageDrawing ImageSource="/海威图标-横.png" Rect="5,5,100,60"/>
|
|
|
|
|
<ImageDrawing ImageSource="/海威图标-横.png" Rect="5,5,100,100"/>
|
|
|
|
|
</DrawingGroup>
|
|
|
|
|
</DrawingBrush.Drawing>
|
|
|
|
|
</DrawingBrush>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
-->
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="90"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border Grid.Row="0" CornerRadius="20" Background="{StaticResource PrimaryBrush}" Margin="10" Cursor="">
|
|
|
|
|
<Border Grid.Row="0" CornerRadius="20" Background="{StaticResource PrimaryBrush}" Margin="10">
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="400"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
@ -97,15 +101,24 @@
|
|
|
|
|
<Button Content="生成" Click="GenerateButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
<Button Content="清空" Click="ClearButton_Click" Height="40" Width="50" Margin="10 0 0 0" Style="{StaticResource FlatButton}"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Grid.Column="1" HorizontalAlignment="Right" Margin="0 0 10 0" VerticalAlignment="Center">
|
|
|
|
|
<StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
|
|
|
|
<TextBlock Text="RFID设备监控平台" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="25" FontWeight="SemiBold"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<Grid Grid.Column="2" HorizontalAlignment="Right" Margin="0 0 10 0" VerticalAlignment="Center">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Button x:Name="Minimize_Button" Grid.Column="0" Content="最小化" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 16 0" Click="Minimize_Button_Click"/>
|
|
|
|
|
<Button x:Name="Maxmize_Button" Grid.Column="1" Content="最大化" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Maxmize_Button_Click"/>
|
|
|
|
|
<Button x:Name="Shutdown_Button" Grid.Column="2" Content="关闭" Height="40" Width="50" Style="{StaticResource FlatButton}" Click="Shutdown_Button_Click"/>
|
|
|
|
|
<Button x:Name="Minimize_Button" Grid.Column="0" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Minimize_Button_Click">
|
|
|
|
|
<Image Source="/减号.png" />
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Maxmize_Button" Grid.Column="1" Height="40" Width="50" Style="{StaticResource FlatButton}" Margin="0 0 0 0" Click="Maxmize_Button_Click">
|
|
|
|
|
<Image x:Name="MaxMinImage" Source="/全屏.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
<Button x:Name="Shutdown_Button" Grid.Column="2" Height="40" Width="50" Style="{StaticResource FlatButton}" Click="Shutdown_Button_Click">
|
|
|
|
|
<Image Source="/关闭.png"/>
|
|
|
|
|
</Button>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
@ -191,7 +204,7 @@
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
|
|
|
<Label Content="标签:"/>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" FontSize="15" FontWeight="Bold" Foreground="Green" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
<TextBlock Text="{Binding EPCinfo}" FontSize="15" FontWeight="Bold" Foreground="{Binding InfoColor}" VerticalAlignment="Center"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
|
|
|
|
<Label Content="HEX:"/>
|
|
|
|
@ -225,7 +238,7 @@
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="1 2 1 2">
|
|
|
|
|
<Label Content="触发动作:" FontWeight="Bold" FontSize="13"/>
|
|
|
|
|
<TextBox Text="{Binding ActionType}" Width="70" TextAlignment="Center" VerticalContentAlignment="Center" FontSize="13"/>
|
|
|
|
|
<ComboBox x:Name="TextComboBox" Width="20" Height="20" ItemsSource="{Binding SendTextComboBox,Mode=TwoWay}">
|
|
|
|
|
<ComboBox x:Name="TextComboBox" Width="20" Height="25" ItemsSource="{Binding SendTextComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
@ -387,7 +400,7 @@
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO1}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO1ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<ComboBox x:Name="GPO1ComboBox" Width="20" Height="25" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
@ -402,7 +415,7 @@
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO2}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO2ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<ComboBox x:Name="GPO2ComboBox" Width="20" Height="25" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
@ -417,7 +430,7 @@
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO3}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO3ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<ComboBox x:Name="GPO3ComboBox" Width="20" Height="25" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
@ -432,7 +445,7 @@
|
|
|
|
|
<Border BorderBrush="Black" BorderThickness="0.5">
|
|
|
|
|
<Label Content="{Binding GPO4}"></Label>
|
|
|
|
|
</Border>
|
|
|
|
|
<ComboBox x:Name="GPO4ComboBox" Width="20" Height="20" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<ComboBox x:Name="GPO4ComboBox" Width="20" Height="25" ItemsSource="{Binding GPOComboBox,Mode=TwoWay}">
|
|
|
|
|
<i:Interaction.Triggers>
|
|
|
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
|
|
|
<i:InvokeCommandAction
|
|
|
|
|