DetailTrayBarcodeView.xaml 7.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <Window x:Class="TrayBarcodeManagement.View.DetailTrayBarcodeView"
  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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  7. mc:Ignorable="d"
  8. WindowStyle="None" WindowState="Normal" ResizeMode="NoResize" Width="630" Height="450" MouseMove="Window_MouseMove">
  9. <Window.Resources>
  10. <Style TargetType="StackPanel">
  11. <Setter Property="HorizontalAlignment" Value="Center"/>
  12. <Setter Property="VerticalAlignment" Value="Center"/>
  13. <Setter Property="Orientation" Value="Horizontal"/>
  14. </Style>
  15. </Window.Resources>
  16. <Grid>
  17. <GroupBox>
  18. <GroupBox.Header>
  19. <DockPanel>
  20. <Button x:Name="ExitButton" ToolTip="退出" Background="{x:Null}" BorderBrush="{x:Null}" Height="40" DockPanel.Dock="Right" Click="ExitButton_Click">
  21. <materialDesign:PackIcon Kind="ExitToApp" Width="30" Height="30"/>
  22. </Button>
  23. <Label Content="托盘条码:" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Red"/>
  24. <TextBox Width="150" Text="{Binding TrayBarcodeModel.TrayBarcode}" IsReadOnly="{Binding ReadOnly}" FontSize="20" Foreground="Red" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  25. </DockPanel>
  26. </GroupBox.Header>
  27. <Grid Background="white">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="50"></RowDefinition>
  30. <RowDefinition Height="50"></RowDefinition>
  31. <RowDefinition Height="50"></RowDefinition>
  32. <RowDefinition Height="50"></RowDefinition>
  33. <RowDefinition Height="50"></RowDefinition>
  34. <RowDefinition Height="50"></RowDefinition>
  35. <RowDefinition Height="80"></RowDefinition>
  36. </Grid.RowDefinitions>
  37. <Grid.ColumnDefinitions>
  38. <ColumnDefinition Width="300"/>
  39. <ColumnDefinition Width="300"/>
  40. </Grid.ColumnDefinitions>
  41. <StackPanel Grid.Row="0" Grid.Column="0">
  42. <Label Content="电表条码1:" FontSize="16"/>
  43. <TextBox Text="{Binding TrayBarcodeModel.Barcode1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  44. </StackPanel>
  45. <StackPanel Grid.Row="0" Grid.Column="1">
  46. <Label Content="电表条码2:" FontSize="16"/>
  47. <TextBox Text="{Binding TrayBarcodeModel.Barcode2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  48. </StackPanel>
  49. <StackPanel Grid.Row="1" Grid.Column="0">
  50. <Label Content="电表条码3:" FontSize="16"/>
  51. <TextBox Text="{Binding TrayBarcodeModel.Barcode3,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  52. </StackPanel>
  53. <StackPanel Grid.Row="1" Grid.Column="1">
  54. <Label Content="电表条码4:" FontSize="16"/>
  55. <TextBox Text="{Binding TrayBarcodeModel.Barcode4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  56. </StackPanel>
  57. <StackPanel Grid.Row="2" Grid.Column="0">
  58. <Label Content="电表条码5:" FontSize="16"/>
  59. <TextBox Text="{Binding TrayBarcodeModel.Barcode5,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  60. </StackPanel>
  61. <StackPanel Grid.Row="2" Grid.Column="1">
  62. <Label Content="电表条码6:" FontSize="16"/>
  63. <TextBox Text="{Binding TrayBarcodeModel.Barcode6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  64. </StackPanel>
  65. <StackPanel Grid.Row="3" Grid.Column="0">
  66. <Label Content="电表条码7:" FontSize="16"/>
  67. <TextBox Text="{Binding TrayBarcodeModel.Barcode7,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  68. </StackPanel>
  69. <StackPanel Grid.Row="3" Grid.Column="1">
  70. <Label Content="电表条码8:" FontSize="16"/>
  71. <TextBox Text="{Binding TrayBarcodeModel.Barcode8,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  72. </StackPanel>
  73. <StackPanel Grid.Row="4" Grid.Column="0">
  74. <Label Content="电表条码9:" FontSize="16"/>
  75. <TextBox Text="{Binding TrayBarcodeModel.Barcode9,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  76. </StackPanel>
  77. <StackPanel Grid.Row="4" Grid.Column="1">
  78. <Label Content="电表条码10:" FontSize="16"/>
  79. <TextBox Text="{Binding TrayBarcodeModel.Barcode10,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  80. </StackPanel>
  81. <StackPanel Grid.Row="5" Grid.Column="0">
  82. <Label Content="电表条码11:" FontSize="16"/>
  83. <TextBox Text="{Binding TrayBarcodeModel.Barcode11,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  84. </StackPanel>
  85. <StackPanel Grid.Row="5" Grid.Column="1">
  86. <Label Content="电表条码12:" FontSize="16"/>
  87. <TextBox Text="{Binding TrayBarcodeModel.Barcode12,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  88. </StackPanel>
  89. <StackPanel Grid.Row="6" Grid.ColumnSpan="2">
  90. <Button Width="200" Content="保存" HorizontalAlignment="Center" VerticalAlignment="Center" Command="{Binding SaveCommand}"/>
  91. </StackPanel>
  92. </Grid>
  93. </GroupBox>
  94. </Grid>
  95. </Window>