| | |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | <Grid x:Name="infoGrid" Grid.Row="0" Background="LightBlue"> |
| | | <Grid x:Name="infoGrid" Grid.Row="0" Background="#a1eafb"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition/> |
| | | <RowDefinition/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition/> |
| | | </Grid.ColumnDefinitions> |
| | | |
| | | <TextBlock FontSize="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl}, |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='30,940'}" |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='20,940'}" |
| | | FontWeight="Bold" |
| | | Margin="0" |
| | | HorizontalAlignment="Center" |
| | | VerticalAlignment="Center" Background="Transparent" Text="{Binding title}"/> |
| | | VerticalAlignment="Center" Text="{Binding title}"/> |
| | | |
| | | <ComboBox Grid.Row="1" FontSize="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl}, |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='15,940'}" |
| | | Style="{StaticResource FormComboxStyle}" |
| | | pu:ComboBoxHelper.ClearButtonVisibility="Collapsed" |
| | | BorderBrush="Black" |
| | | Height="26" |
| | | BorderThickness="0,1,0,0" |
| | | pu:ComboBoxHelper.Watermark="{DynamicResource Tr.ProductInfo}" |
| | | Width="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl}, |
| | |
| | | <local:InfoTable x:Name="infoTable" Grid.Row="0" Grid.Column="1" |
| | | Grid.RowSpan="2" |
| | | FontSize="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl}, |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='15,940'}"></local:InfoTable> |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='12,940'}"></local:InfoTable> |
| | | </Grid> |
| | | |
| | | <UniformGrid x:Name="mainGrid" Grid.Row="1" dp:UniformGridHelper.InnerBorder="1" |
| | |
| | | <!--<local:Chart Grid.Row="2" x:Name="chart" BorderThickness="0,1,0,1" BorderBrush="Black" |
| | | MouseDoubleClick="chart_MouseDoubleClick"/>--> |
| | | |
| | | <StatusBar Grid.Row="3"> |
| | | <StatusBar FontSize="18" Grid.Row="3"> |
| | | <StatusBar.ItemsPanel> |
| | | <ItemsPanelTemplate> |
| | | <DockPanel/> |
| | | </ItemsPanelTemplate> |
| | | </StatusBar.ItemsPanel> |
| | | <StatusBarItem DockPanel.Dock="Left"> |
| | | <Button Style="{StaticResource LinkButton}" Click="Button_Click_1">扫码枪设置</Button> |
| | | </StatusBarItem> |
| | | |
| | | <StatusBarItem DockPanel.Dock="Right"> |
| | | <StackPanel Orientation="Horizontal"> |
| | | <Ellipse Width="10" Height="10"> |
| | | <Ellipse.Style> |
| | | <Style TargetType="Ellipse"> |
| | | <Setter Property="Fill" Value="Gray"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=control}" Value="ERROR"> |
| | | <Setter Property="Fill" Value="Red"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=control}" Value="RUNNING"> |
| | | <Setter Property="Fill" Value="Green"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Ellipse.Style> |
| | | </Ellipse> |
| | | <TextBlock Text="{Binding TcpServerInfo}"/> |
| | | <Button Padding="0" Margin="0" BorderThickness="0" Click="Button_Click">🔄</Button> |
| | | <StackPanel Orientation="Horizontal" dp:StackPanelHelper.ChildSpace="8"> |
| | | <!--<Button Style="{StaticResource DeleteLink}" Click="Button_Click_2" Content="停止测试"/>--> |
| | | |
| | | <StackPanel Orientation="Horizontal"> |
| | | <Ellipse Width="10" Height="10"> |
| | | <Ellipse.Style> |
| | | <Style TargetType="Ellipse"> |
| | | <Setter Property="Fill" Value="LightGray"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=control}" Value="ERROR"> |
| | | <Setter Property="Fill" Value="Red"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=control}" Value="RUNNING"> |
| | | <Setter Property="Fill" Value="Green"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Ellipse.Style> |
| | | </Ellipse> |
| | | <TextBlock Text="{Binding TcpServerInfo}"/> |
| | | <Button Padding="0" Margin="0" BorderThickness="0" Click="Button_Click">🔄</Button> |
| | | </StackPanel> |
| | | </StackPanel> |
| | | </StatusBarItem> |
| | | |
| | |
| | | </StatusBarItem> |
| | | </StatusBar> |
| | | |
| | | <Grid Grid.Row="4" > |
| | | <Grid Grid.Row="4"> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition/> |
| | | <ColumnDefinition/> |
| | | <ColumnDefinition/> |
| | | </Grid.ColumnDefinitions> |
| | | <Button Click="ScanWindow_Click" Style="{StaticResource PrimaryButton}" |
| | | Content="{DynamicResource Tr.Scan}"/> |
| | | <Button Grid.Column="1" Click="SetStationGlobal_Click" Style="{StaticResource SuccessButton}" |
| | | Content="{DynamicResource App.Start}"/> |
| | | <Button Grid.Column="1" Click="ClearAllSnr_Click" Style="{StaticResource DangerButton}" |
| | | Content="{DynamicResource Tr.ClearAllSNR}"/> |
| | | <!--<Button Grid.Column="2" Click="SetStationGlobal_Click" Style="{StaticResource SuccessButton}" |
| | | Content="{DynamicResource App.Start}"/>--> |
| | | <Button Grid.Column="2" Click="StartSingleClick"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource SuccessButton}"> |
| | | <Setter Property="Content" Value="{DynamicResource App.Start}"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding IsTesting}" Value="True"> |
| | | <Setter Property="Background" Value="{DynamicResource DangerVerBar}"/> |
| | | <Setter Property="Content" Value="停止测试"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | </Grid> |
| | | |
| | | </Grid> |