You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <Window x:Class="BPASmart.RecipeManagement.View.MaterialConfigure"
- 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:BPASmart.RecipeManagement.View"
- xmlns:vm="clr-namespace:BPASmart.RecipeManagement.ViewModel"
- mc:Ignorable="d"
- Title="MaterialConfigure" Height="300" Width="500" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="White" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <Window.DataContext>
- <vm:MaterialConfigureViewModel/>
- </Window.DataContext>
- <Window.Resources>
-
- </Window.Resources>
- <Border CornerRadius="20" Background="White">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="17*"/>
- <ColumnDefinition Width="33*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="40"/>
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="原料名称:" FontSize="22"
- HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
- <TextBlock Text="原料种类:" FontSize="22" Grid.Row="1"
- HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
- <TextBlock Text="原料位置:" FontSize="22" Grid.Row="2"
- HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
- <TextBox Text="{Binding MaterialName}" FontSize="22" Grid.Column="1" Width="200" Height="40"
- VerticalAlignment="Center" HorizontalAlignment="Center"
- VerticalContentAlignment="Center"/>
- <ComboBox ItemsSource="{Binding MaterialTypes}"
- FontSize="18"
- Grid.Column="1" Grid.Row="1" Width="200" Height="40"
- SelectedItem="{Binding MaterialType}"/>
- <TextBox Text="{Binding MaterialPosion}" FontSize="22" Grid.Column="1" Grid.Row="2"
- Width="100" Height="40"
- VerticalAlignment="Center" HorizontalAlignment="Center"
- VerticalContentAlignment="Center"/>
- <TextBlock Text="{Binding ErrorMessage}" Grid.Row="3" Grid.ColumnSpan=" 2"
- Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal"
- HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Content="保存" Foreground="White" FontSize="22" Width="120" Height="40" Margin="10" Background="#58B0ED"
- Command="{Binding SaveCommand}"/>
- <Button Content="取消" Foreground="White" FontSize="22" Width="120" Height="40" Margin="10" Background="#58B0ED"
- Click="Button_Click"/>
-
- </StackPanel>
-
- </Grid>
- </Border>
- </Window>
|