AddScrewView.xaml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. WindowStartupLocation="CenterOwner"
  8. mc:Ignorable="d"
  9. Title="AddScrewView" Height="450" Width="800">
  10. <Grid Margin="20">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <TextBlock Grid.Row="0"
  17. Text="请扫描螺丝条码:"
  18. FontSize="14"
  19. Margin="0,0,0,10"/>
  20. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  21. <TextBox x:Name="BarcodeTextBox"
  22. Grid.Row="1"
  23. Height="30"
  24. FontSize="14"
  25. Margin="0,0,0,20"/>
  26. <StackPanel Grid.Row="2"
  27. Orientation="Horizontal"
  28. HorizontalAlignment="Right">
  29. <Button x:Name="OkButton"
  30. Content="确定"
  31. Width="80"
  32. Height="30"
  33. Margin="0,0,10,0"
  34. Command="{Binding OkCommand}"/>
  35. <Button x:Name="CancelButton"
  36. Content="取消"
  37. Width="80"
  38. Height="30"
  39. Command="{Binding CancelCommand}"/>
  40. </StackPanel>
  41. </Grid>
  42. </Window>