You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
306 lines
14 KiB
306 lines
14 KiB
<UserControl x:Class="AIK.Views.MenuPages.RemoteCopy.RemoteCopyPage"
|
|
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:AIK.Views.MenuPages.RemoteCopy"
|
|
mc:Ignorable="d"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:behaviors="clr-namespace:AIK.Behaviors;assembly=AIK.Behaviors"
|
|
xmlns:convert="clr-namespace:AIK.Views.Converters"
|
|
xmlns:commonPage="clr-namespace:AIK.Views.MenuPages.CommonPage"
|
|
d:DesignHeight="800" d:DesignWidth="1400">
|
|
|
|
<UserControl.Resources>
|
|
<convert:BoolToVisibilityInverseConverter x:Key="BoolToVisibilityInverseConverter"/>
|
|
<!-- 步骤框样式 -->
|
|
<Style x:Key="StepBorderStyle" TargetType="Border">
|
|
<Setter Property="Width" Value="120"/>
|
|
<Setter Property="Height" Value="100"/>
|
|
<Setter Property="Background" Value="#FFFFFF"/>
|
|
<Setter Property="BorderBrush" Value="#E3F2FD"/>
|
|
<Setter Property="BorderThickness" Value="2"/>
|
|
<Setter Property="CornerRadius" Value="12"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsActive}" Value="True">
|
|
<Setter Property="Background" Value="#E8F5E9"/>
|
|
<Setter Property="BorderBrush" Value="#4CAF50"/>
|
|
<Setter Property="BorderThickness" Value="3"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 步骤图标样式 -->
|
|
<Style x:Key="StepIconStyle" TargetType="TextBlock">
|
|
<Setter Property="FontFamily" Value="{StaticResource Iconfont}"/>
|
|
<Setter Property="FontSize" Value="46"/>
|
|
<Setter Property="Foreground" Value="#2196F3"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsActive}" Value="True">
|
|
<Setter Property="Foreground" Value="#4CAF50"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 步骤文字样式 -->
|
|
<Style x:Key="StepLabelStyle" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="#2196F3"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="Margin" Value="0,8,0,0"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsActive}" Value="True">
|
|
<Setter Property="Foreground" Value="#4CAF50"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 连接线样式 -->
|
|
<Style x:Key="ConnectorLineStyle" TargetType="Rectangle">
|
|
<Setter Property="Height" Value="3"/>
|
|
<Setter Property="Width" Value="110"/>
|
|
<Setter Property="Fill" Value="#E3F2FD"/>
|
|
<Setter Property="Margin" Value="10,0"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsActive}" Value="True">
|
|
<Setter Property="Fill" Value="#4CAF50"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
<!-- 按钮样式 -->
|
|
<Style x:Key="ModernButtonStyle" TargetType="Button">
|
|
<Setter Property="Background" Value="#2196F3"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
<Setter Property="Padding" Value="25,12"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Margin" Value="15,5"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="{TemplateBinding Background}"
|
|
CornerRadius="6"
|
|
Padding="{TemplateBinding Padding}">
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Background" Value="#1976D2"/>
|
|
<Setter Property="RenderTransform">
|
|
<Setter.Value>
|
|
<ScaleTransform ScaleX="1.05" ScaleY="1.05"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter Property="Background" Value="#1565C0"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<!-- 提示语小标题样式 -->
|
|
<Style x:Key="HintTitleStyle" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="#546E7A"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="Margin" Value="0,0,0,5"/>
|
|
</Style>
|
|
|
|
<!-- 提示语正文样式 -->
|
|
<Style x:Key="HintContentStyle" TargetType="TextBlock">
|
|
<Setter Property="Foreground" Value="#78909C"/>
|
|
<Setter Property="FontSize" Value="13"/>
|
|
<Setter Property="FontWeight" Value="Normal"/>
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
<Setter Property="LineHeight" Value="20"/>
|
|
<Setter Property="LineStackingStrategy" Value="BlockLineHeight"/>
|
|
</Style>
|
|
<!-- 步骤项数据模板 -->
|
|
<DataTemplate x:Key="StepItemTemplate">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- 步骤框 -->
|
|
<Border Style="{StaticResource StepBorderStyle}" Grid.Column="0">
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
<TextBlock Text="{Binding IconCode}" Style="{StaticResource StepIconStyle}"/>
|
|
<TextBlock Text="{Binding StepName}" Style="{StaticResource StepLabelStyle}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 连接线 -->
|
|
<Rectangle Grid.Column="1"
|
|
Style="{StaticResource ConnectorLineStyle}"
|
|
Visibility="{Binding IsLastStep,Converter={StaticResource BoolToVisibilityInverseConverter}}"
|
|
/>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="10,10,20,10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="200"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 标题 -->
|
|
<TextBlock Grid.Row="0" Text="{DynamicResource RemoteCopy}"
|
|
Foreground="#1976D2"
|
|
FontSize="32"
|
|
FontWeight="Bold"
|
|
HorizontalAlignment="Center"
|
|
Margin="0,0,0,40"
|
|
TextAlignment="Center"/>
|
|
<!-- 提示语区域 -->
|
|
<Border Grid.Row="1"
|
|
Background="#F5F7F9"
|
|
BorderBrush="#E0E0E0"
|
|
BorderThickness="1"
|
|
CornerRadius="8"
|
|
Padding="20,15"
|
|
Margin="0,0,0,30">
|
|
<StackPanel>
|
|
<TextBlock Style="{StaticResource HintTitleStyle}"
|
|
Text="{DynamicResource HCSFixedCodeCopy}"/>
|
|
<TextBlock Style="{StaticResource HintContentStyle}"
|
|
Text="{DynamicResource HCSFixedCodeCopyTips}"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 步骤条容器 -->
|
|
<!-- 动态步骤条 -->
|
|
<ItemsControl Grid.Row="2"
|
|
ItemsSource="{Binding Steps}"
|
|
ItemTemplate="{StaticResource StepItemTemplate}"
|
|
VerticalAlignment="Center">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"/>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
<Grid Grid.Row="3" HorizontalAlignment="Center">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
<RowDefinition Height="Auto"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"></ColumnDefinition>
|
|
<ColumnDefinition Width="200"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="2" Height="2" VerticalAlignment="Bottom" BorderBrush="#E3F2FD" Margin="0,20,0,5"></Border>
|
|
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="2" Height="2" VerticalAlignment="Bottom" BorderBrush="#E8F5E9" Margin="0,20,0,5"></Border>
|
|
<Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="2" Height="2" VerticalAlignment="Bottom" BorderBrush="#FFF3E0" Margin="0,20,0,5"></Border>
|
|
<Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="2" Height="2" VerticalAlignment="Bottom" BorderBrush="#FCE4EC" Margin="0,20,0,5"></Border>
|
|
<Border Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="2" Height="2" VerticalAlignment="Bottom" BorderBrush="#EDE7F6" Margin="0,20,0,5"></Border>
|
|
<TextBlock
|
|
FontSize="16" Foreground="#333"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="{DynamicResource Data}"/>
|
|
<TextBox
|
|
FontSize="16" Foreground="#2196F3"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Margin="0,0,0,10"
|
|
Text="133.6HZ"/>
|
|
<TextBlock
|
|
FontSize="16" Foreground="#333"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Text="{DynamicResource Type}"/>
|
|
<TextBox
|
|
FontSize="16" Foreground="#2196F3"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Margin="0,0,0,10"
|
|
Text="测试数据"/>
|
|
<TextBlock
|
|
FontSize="16" Foreground="#333"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Text="{DynamicResource ChannelCodeRate}"/>
|
|
<TextBox
|
|
FontSize="16" Foreground="#2196F3"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Margin="0,0,0,10"
|
|
Text="9999"/>
|
|
<TextBlock
|
|
FontSize="16" Foreground="#333"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Text="{DynamicResource Frequency}"/>
|
|
<TextBox
|
|
FontSize="16" Foreground="#2196F3"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Margin="0,0,0,10"
|
|
Text="433.09"/>
|
|
<TextBlock
|
|
FontSize="16" Foreground="#333"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Text="{DynamicResource BitCode}"/>
|
|
<TextBox
|
|
FontSize="16" Foreground="#2196F3"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
FontWeight="SemiBold"
|
|
BorderThickness="0"
|
|
IsReadOnly="True"
|
|
Margin="0,0,0,10"
|
|
Text="8bit"/>
|
|
</Grid>
|
|
<Border Grid.Row="4" >
|
|
<TextBlock Text="{Binding TipsMessage}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="28" Foreground="#EF6C00" FontWeight="SemiBold" Margin="0,10,0,10"></TextBlock>
|
|
</Border>
|
|
|
|
<!-- 控制按钮 -->
|
|
<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,50,0,0">
|
|
<!--<Button Content="上一步" Style="{StaticResource ModernButtonStyle}" Background="#9E9E9E" Command="{Binding PreviousStepCommand}"/>
|
|
<Button Content="下一步" Style="{StaticResource ModernButtonStyle}" Command="{Binding NextStepCommand}"/>
|
|
<Button Content="重置" Style="{StaticResource ModernButtonStyle}" Background="#FF9800" Command="{Binding ResetCommand}"/>-->
|
|
|
|
<Button Content="{DynamicResource SkipThisKey}" Style="{StaticResource ModernButtonStyle}" Background="#81D4FA" Command="{Binding NextStepCommand}"/>
|
|
<Button Content="{DynamicResource Recheck}" Style="{StaticResource ModernButtonStyle}" Background="#81D4FA" />
|
|
<Button Content="{DynamicResource StartCopying}" Style="{StaticResource ModernButtonStyle}"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|