RfidReaderControl.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="Aitex.Sorter.UI.Controls.RfidReaderControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:style="clr-namespace:MECF.Framework.UI.Core.Style;assembly=MECF.Framework.UI.Core"
  7. xmlns:common="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  8. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  9. mc:Ignorable="d"
  10. d:DesignHeight="300" d:DesignWidth="300">
  11. <Grid x:Name="root" style:GridHelper.Column0="LightBlue" style:GridHelper.Column1="Transparent">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="250" />
  14. <ColumnDefinition Width="*"/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="*" />
  18. <RowDefinition Height="*" />
  19. <RowDefinition Height="*" />
  20. </Grid.RowDefinitions>
  21. <Label Grid.Row="0" Grid.Column="0" Content="Status" Margin="18,6,17,6" />
  22. <Label Content="{Binding RfidStatus}" Grid.Row="0" Grid.Column="1" />
  23. <TextBox Text="{Binding ID}" Grid.Row="1" Grid.Column="0" Margin="8,8,8,2" IsReadOnly="True" />
  24. <Button Grid.Row="1" Grid.Column="1" Content="Read" Command="{Binding RFReaderCommand}" common:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" Margin="25,5,24,0" />
  25. <TextBox x:Name="txtFoupBID" Margin="8,8,8,2" Grid.Row="2" Grid.Column="0" />
  26. <Button Content="Write" Grid.Row="2" Grid.Column="1" Command="{Binding RFReaderCommand}" common:CommandHelper.CommandName="{x:Static Common:OperationName.Write}" common:CommandHelper.Parameter1="{Binding Text, ElementName=txtFoupBID}" Margin="25,5,24,0" />
  27. </Grid>
  28. </UserControl>