| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <UserControl x:Class="LocalhostMES.Views.Tabs.ApiTestView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="400" d:DesignWidth="780"
- Unloaded="ApiTestView_OnUnloaded">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="400" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <GroupBox Grid.Column="0" Header="接口列表" Margin="10">
- <StackPanel>
- <Button Content="测试SN打印请求" Height="40" Margin="0,5" Command="{Binding TestSnPrintCommand}" />
- <Button Content="测试SN关键件绑定" Height="40" Margin="0,5" Command="{Binding TestSnComponentCommand}" />
- <Button Content="测试加工参数上报" Height="40" Margin="0,5" Command="{Binding TestProcessParamsCommand}" />
- <Separator Margin="0,10" />
- <Button Content="清空日志" Height="30" Margin="0,5" Style="{StaticResource DangerButtonStyle}" Command="{Binding ClearLogCommand}" />
- </StackPanel>
- </GroupBox>
- <GroupBox Grid.Column="1" Header="请求/响应日志" Margin="10">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <ListBox Grid.Row="0" ItemsSource="{Binding Logs}" BorderBrush="Transparent" />
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
- <TextBlock Text="{Binding StatusTxt}" Margin="5" Foreground="{Binding StatusForeground}" VerticalAlignment="Center" />
- </StackPanel>
- </Grid>
- </GroupBox>
- </Grid>
- </UserControl>
|