AddScrewView.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <UserControl 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:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  10. xmlns:enums="clr-namespace:TeamAAS_VP.Enums"
  11. xmlns:valRules="clr-namespace:TeamAAS_VP.Identity"
  12. xmlns:ext="clr-namespace:TeamAAS_VP.Extension"
  13. xmlns:c="clr-namespace:TeamAAS_VP.ValueConverter"
  14. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  15. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels"
  16. lex:LocalizeDictionary.DesignCulture="zh-CN"
  17. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  18. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  19. mc:Ignorable="d"
  20. d:Background="White"
  21. d:Height="500"
  22. d:Width="800"
  23. prism:ViewModelLocator.AutoWireViewModel="True"
  24. FontFamily="{DynamicResource DefaultFont}">
  25. <Grid Margin="20">
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="Auto"/>
  28. <RowDefinition Height="Auto"/>
  29. <RowDefinition Height="Auto"/>
  30. <RowDefinition Height="Auto"/>
  31. <RowDefinition Height="Auto"/>
  32. </Grid.RowDefinitions>
  33. <TextBlock Grid.Row="0"
  34. Text="请扫描螺丝条码:"
  35. FontSize="14"
  36. Margin="0,0,0,10"/>
  37. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  38. <TextBox x:Name="BarcodeTextBox"
  39. Grid.Row="1"
  40. Height="30"
  41. FontSize="14"
  42. Text="{Binding ScrewsizeCode, Mode=TwoWay}"
  43. Margin="0,0,0,20"/>
  44. <TextBlock Grid.Row="2"
  45. Text="请扫描员工工号:"
  46. FontSize="14"
  47. Margin="0,0,0,10"/>
  48. <!-- 输入框会自动接收并显示扫码枪的结果 -->
  49. <TextBox x:Name="BarcodeTextBox1"
  50. Grid.Row="3"
  51. Height="30"
  52. FontSize="14"
  53. Text="{Binding UserID, Mode=TwoWay}"
  54. Margin="0,0,0,20"/>
  55. <StackPanel Grid.Row="4"
  56. Orientation="Horizontal"
  57. HorizontalAlignment="Right">
  58. <Button x:Name="OkButton"
  59. Content="确定"
  60. Width="80"
  61. Height="30"
  62. Margin="0,0,10,0"
  63. Command="{Binding OkCommand}"/>
  64. <Button x:Name="CancelButton"
  65. Content="取消"
  66. Width="80"
  67. Height="30"
  68. Command="{Binding CancelCommand}"/>
  69. </StackPanel>
  70. </Grid>
  71. </UserControl>