50 lines
2.8 KiB
XML
50 lines
2.8 KiB
XML
<Window x:Class="Cowain.Bake.Main.Views.AddBatteryView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Cowain.Bake.Main.Views"
|
|
xmlns:prism ="http://prismlibrary.com/"
|
|
|
|
mc:Ignorable="d"
|
|
Title="添加电芯" Height="336" Width="380" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
|
|
<Grid Background="DodgerBlue">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="4*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel>
|
|
<WrapPanel Margin="10,30,0,0" >
|
|
<TextBlock Text="电芯条码:" Margin="50,10,10,0" ></TextBlock>
|
|
<TextBox HorizontalAlignment="Center" Text="{Binding BatteryCode}" Width="230" ></TextBox>
|
|
</WrapPanel>
|
|
<WrapPanel Margin="10,10,0,0" >
|
|
<TextBlock Text="夹具行号:" Margin="50,10,10,0" ></TextBlock>
|
|
<ComboBox HorizontalAlignment="Center" ItemsSource="{Binding PositionXRange}" SelectedValue="{Binding SelectedPositionX, Mode=TwoWay}" VerticalAlignment="Center" Width="230"></ComboBox>
|
|
</WrapPanel>
|
|
<WrapPanel Margin="10,10,0,0" >
|
|
<TextBlock Text="夹具列号:" Margin="50,10,10,0" ></TextBlock>
|
|
<ComboBox HorizontalAlignment="Center" ItemsSource="{Binding PositionYRange}" SelectedValue="{Binding SelectedPositionY, Mode=TwoWay}" VerticalAlignment="Center" Width="230"></ComboBox>
|
|
</WrapPanel>
|
|
<WrapPanel Margin="10,10,0,0" >
|
|
<TextBlock Text="电芯状态:" Margin="50,10,10,0" ></TextBlock>
|
|
<ComboBox HorizontalAlignment="Center" ItemsSource="{Binding EnumOptions}"
|
|
DisplayMemberPath="Value"
|
|
SelectedValuePath="Key"
|
|
SelectedValue="{Binding SelectedEnum, Mode=TwoWay}" VerticalAlignment="Center" Width="230"></ComboBox>
|
|
</WrapPanel>
|
|
<WrapPanel Margin="10,10,0,0" >
|
|
<TextBlock Text="是否水含量电芯:" Margin="15,10,10,0" ></TextBlock>
|
|
<ComboBox HorizontalAlignment="Center" VerticalAlignment="Center" Width="230" SelectedItem="{Binding SelectedOption}" ItemsSource="{Binding Options}">
|
|
</ComboBox>
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
|
|
<Grid Grid.Row="1">
|
|
<WrapPanel Margin="10,10,0,0" >
|
|
<Button Content="增 加" Margin="135,10,10,0" Width="80" Command="{Binding AddCommand}"></Button>
|
|
</WrapPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</Window>
|