12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <Window x:Class="TrayBarcodeManagement.View.DetailTrayBarcodeView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- mc:Ignorable="d"
- WindowStyle="None" WindowState="Normal" ResizeMode="NoResize" Width="630" Height="450" MouseMove="Window_MouseMove">
- <Window.Resources>
- <Style TargetType="StackPanel">
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Orientation" Value="Horizontal"/>
- </Style>
- </Window.Resources>
-
- <Grid>
- <GroupBox>
- <GroupBox.Header>
- <DockPanel>
- <Button x:Name="ExitButton" ToolTip="退出" Background="{x:Null}" BorderBrush="{x:Null}" Height="40" DockPanel.Dock="Right" Click="ExitButton_Click">
- <materialDesign:PackIcon Kind="ExitToApp" Width="30" Height="30"/>
- </Button>
- <Label Content="托盘条码:" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="Red"/>
- <TextBox Width="150" Text="{Binding TrayBarcodeModel.TrayBarcode}" IsReadOnly="{Binding ReadOnly}" FontSize="20" Foreground="Red" HorizontalAlignment="Left" VerticalAlignment="Center"/>
- </DockPanel>
- </GroupBox.Header>
- <Grid Background="white">
- <Grid.RowDefinitions>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition Height="80"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="300"/>
- <ColumnDefinition Width="300"/>
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="0" Grid.Column="0">
- <Label Content="电表条码1:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode1,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="0" Grid.Column="1">
- <Label Content="电表条码2:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="0">
- <Label Content="电表条码3:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode3,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="1">
- <Label Content="电表条码4:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode4,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="0">
- <Label Content="电表条码5:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode5,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="2" Grid.Column="1">
- <Label Content="电表条码6:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode6,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="3" Grid.Column="0">
- <Label Content="电表条码7:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode7,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="3" Grid.Column="1">
- <Label Content="电表条码8:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode8,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="4" Grid.Column="0">
- <Label Content="电表条码9:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode9,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="4" Grid.Column="1">
- <Label Content="电表条码10:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode10,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="5" Grid.Column="0">
- <Label Content="电表条码11:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode11,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="5" Grid.Column="1">
- <Label Content="电表条码12:" FontSize="16"/>
- <TextBox Text="{Binding TrayBarcodeModel.Barcode12,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Width="150" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </StackPanel>
- <StackPanel Grid.Row="6" Grid.ColumnSpan="2">
- <Button Width="200" Content="保存" HorizontalAlignment="Center" VerticalAlignment="Center" Command="{Binding SaveCommand}"/>
- </StackPanel>
- </Grid>
- </GroupBox>
- </Grid>
- </Window>
|