| | |
| | | xmlns:pu="https://opensource.panuon.com/wpf-ui" |
| | | xmlns:ui="clr-namespace:HMI.UI;assembly=HMI.UI" |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI" |
| | | xmlns:dc="clr-namespace:HMI.UI.Converter;assembly=HMI.UI" |
| | | mc:Ignorable="d" |
| | | Background="#FFF" |
| | | BorderBrush="Black" |
| | |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | | <UserControl.Resources> |
| | | <local:FontSizeConverter x:Key="FontSizeConverter"/> |
| | | <dc:ReverseBoolConverter x:Key="reverseConverter"/> |
| | | </UserControl.Resources> |
| | | <Grid x:Name="grid"> |
| | | <Grid.RowDefinitions> |
| | |
| | | <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> |
| | | <Label Grid.Row="0" Grid.RowSpan="1" FontSize="20" FontWeight="Bold" |
| | | Padding="0,0,20,0" |
| | | BorderThickness="0" |
| | | VerticalContentAlignment="Stretch" Background="Transparent" Content="{Binding title}"/> |
| | | |
| | | <TextBlock FontSize="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=UserControl}, |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='20,940'}" |
| | | FontWeight="Bold" |
| | | Margin="0" |
| | | HorizontalAlignment="Center" |
| | | 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}" |
| | | IsEnabled="{Binding IsTesting,Converter={StaticResource reverseConverter}}" |
| | | 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}, |
| | | Converter={StaticResource FontSizeConverter}, ConverterParameter='150,940'}" |
| | | SelectedValuePath="Content" |
| | | x:Name="CbProduct" SelectionChanged="CbProduct_SelectionChanged"/> |
| | | |
| | | <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" Columns="6" dp:UniformGridHelper.InnerBorder="1" |
| | | <UniformGrid x:Name="mainGrid" Grid.Row="1" dp:UniformGridHelper.InnerBorder="1" |
| | | dp:UniformGridHelper.InnerBorderIgnore="Left,Right,Bottom"> |
| | | </UniformGrid> |
| | | |
| | | <!--<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" Content="{DynamicResource App.ScannerSetting}"/> |
| | | </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 DockPanel.Dock="Right"> |
| | | <Button Click="Manual_Cooler_Opt" x:Name="coolerSetting"> |
| | | <Button.Style> |
| | | <Style TargetType="Button" BasedOn="{StaticResource LinkButton}"> |
| | | <Setter Property="Content" Value="{DynamicResource Tr.CoolerSetting}"/> |
| | | <Setter Property="Foreground" Value="{DynamicResource PrimaryColor}"/> |
| | | </Style> |
| | | </Button.Style> |
| | | </Button> |
| | | </StatusBarItem> |
| | | |
| | | <StatusBarItem > |
| | |
| | | </StatusBarItem> |
| | | </StatusBar> |
| | | |
| | | <Button Grid.Row="4" Click="SetStationGlobal_Click" Style="{StaticResource SuccessButton}">启动</Button> |
| | | <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="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> |
| | | </UserControl> |