AddScrewView.xaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <Window x:Class="TeamAAS_VP.Views.AddScrewView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:TeamAAS_VP.Views"
  7. mc:Ignorable="d"
  8. Title="AddScrewView" Height="450" Width="800">
  9. <Grid Margin="20">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="Auto"/>
  14. </Grid.RowDefinitions>
  15. <TextBlock Grid.Row="0"
  16. Text="请扫描螺丝条码:"
  17. FontSize="14"
  18. Margin="0,0,0,10"/>
  19. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  20. <TextBox x:Name="BarcodeTextBox"
  21. Grid.Row="1"
  22. Height="30"
  23. FontSize="14"
  24. Margin="0,0,0,20"/>
  25. <StackPanel Grid.Row="2"
  26. Orientation="Horizontal"
  27. HorizontalAlignment="Right">
  28. <Button x:Name="OkButton"
  29. Content="确定"
  30. Width="80"
  31. Height="30"
  32. Margin="0,0,10,0"
  33. Click="OkButton_Click"/>
  34. <Button x:Name="CancelButton"
  35. Content="取消"
  36. Width="80"
  37. Height="30"
  38. Click="CancelButton_Click"/>
  39. </StackPanel>
  40. </Grid>
  41. </Window>