首次上传
This commit is contained in:
@@ -0,0 +1,144 @@
|
||||
<UserControl
|
||||
x:Class="MECF.Framework.Simulator.Core.Robots.BrooksMag7RobotView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:commons="clr-namespace:MECF.Framework.Simulator.Core.Commons"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
|
||||
xmlns:local="clr-namespace:MECF.Framework.Simulator.Core.Aligners"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Width="900"
|
||||
Height="900">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="100" />
|
||||
<RowDefinition Height="150" />
|
||||
<RowDefinition Height="50" />
|
||||
<RowDefinition Height="400" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<commons:SocketTitleView Grid.Row="0" />
|
||||
|
||||
<Canvas Grid.Row="1" Width="900">
|
||||
|
||||
<CheckBox
|
||||
Canvas.Left="36"
|
||||
Canvas.Top="31"
|
||||
Content="Fail"
|
||||
IsChecked="{Binding IsFailed}" />
|
||||
|
||||
<TextBlock
|
||||
Canvas.Left="225"
|
||||
Canvas.Top="11"
|
||||
Text="_ERR {Code}" />
|
||||
<TextBlock
|
||||
Canvas.Left="129"
|
||||
Canvas.Top="45"
|
||||
Text="Error Code:" />
|
||||
<!--<TextBox Text="{Binding ResultValue, UpdateSourceTrigger=PropertyChanged }" Canvas.Left="358" Canvas.Top="31" Margin="0" Width="284"></TextBox>
|
||||
<TextBlock Text="Error:" Canvas.Left="310" Canvas.Top="45"></TextBlock>-->
|
||||
|
||||
<TextBox
|
||||
Canvas.Left="225"
|
||||
Canvas.Top="31"
|
||||
Width="74"
|
||||
Margin="0"
|
||||
Text="{Binding ErrorCode, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
|
||||
<CheckBox
|
||||
Canvas.Left="36"
|
||||
Canvas.Top="100"
|
||||
Content="Event"
|
||||
IsChecked="{Binding EventChecked}" />
|
||||
|
||||
<TextBlock
|
||||
Canvas.Left="229"
|
||||
Canvas.Top="80"
|
||||
Text="_Event {Code}" />
|
||||
<TextBlock
|
||||
Canvas.Left="129"
|
||||
Canvas.Top="110"
|
||||
Text="Event Code:" />
|
||||
|
||||
|
||||
<TextBox
|
||||
Canvas.Left="225"
|
||||
Canvas.Top="100"
|
||||
Width="550"
|
||||
Margin="0"
|
||||
IsReadOnly="False"
|
||||
Text="{Binding EventCode, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
</Canvas>
|
||||
|
||||
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Width="900"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="100"
|
||||
Height="35"
|
||||
Command="{Binding ClearLogCommand}"
|
||||
Content="Clear Log" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<DataGrid
|
||||
Grid.Row="3"
|
||||
Width="900"
|
||||
Height="380"
|
||||
VerticalAlignment="Top"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
CanUserResizeRows="False"
|
||||
CanUserSortColumns="False"
|
||||
FontSize="16"
|
||||
ItemsSource="{Binding TransactionLogItems}"
|
||||
ScrollViewer.CanContentScroll="True"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Auto">
|
||||
<DataGrid.Columns>
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="160"
|
||||
Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"
|
||||
Header="Time"
|
||||
IsReadOnly="True" />
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="350"
|
||||
Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}"
|
||||
Header="Incoming"
|
||||
IsReadOnly="True">
|
||||
<DataGridTextColumn.ElementStyle>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="TextWrapping" Value="Wrap" />
|
||||
<Setter Property="Height" Value="auto" />
|
||||
</Style>
|
||||
</DataGridTextColumn.ElementStyle>
|
||||
</DataGridTextColumn>
|
||||
|
||||
|
||||
<DataGridTextColumn
|
||||
Width="350"
|
||||
Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}"
|
||||
Header="Outgoing"
|
||||
IsReadOnly="True">
|
||||
<DataGridTextColumn.ElementStyle>
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="TextWrapping" Value="Wrap" />
|
||||
<Setter Property="Height" Value="auto" />
|
||||
</Style>
|
||||
</DataGridTextColumn.ElementStyle>
|
||||
</DataGridTextColumn>
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user