|
- <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="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown"
- Foreground="#FF2AB2E7" AllowsTransparency="True">
- <Window.DataContext>
- <vm:MaterialConfigureViewModel/>
- </Window.DataContext>
- <Window.Resources>
-
- </Window.Resources>
- <Border CornerRadius="20" Background="#264c73" >
- <Grid Width="900">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="17*"/>
- <ColumnDefinition Width="33*"/>
- <ColumnDefinition Width="40"/>
- <ColumnDefinition Width="400"/>
- </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" Background="Transparent" Foreground="Orange"
- VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"
- VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
- <ComboBox ItemsSource="{Binding MaterialTypes}"
- FontSize="18" Foreground="#FF2AB2E7"
- 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" Background="Transparent" Foreground="Orange"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
- VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"/>
- <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="保存" FontSize="22" Width="120" Height="36" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
- Command="{Binding SaveCommand}"/>
- <Button Content="取消" FontSize="22" Width="120" Height="36" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
- Click="Button_Click"/>
-
- </StackPanel>
- <Button x:Name="expand" Grid.Column="2" Grid.RowSpan="5" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource ButtonStyle}"
- Click="expand_Click" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition/>
- </Grid.RowDefinitions>
- <TextBlock Text="拓展属性" TextWrapping="Wrap" FontSize="18" HorizontalAlignment="Center" />
- <Image x:Name="expandImage" Source="../image/right.png" Grid.Row="1" Width="22" Margin="0,5"/>
- </Grid>
- </Button>
- <ScrollViewer Grid.Column="3"
- Grid.RowSpan="5"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" Margin="10,5">
- <Border Background="Transparent" BorderBrush="White" BorderThickness="1,0,0,0">
- <ListBox Margin="5,20" Background="Transparent" BorderBrush="Transparent" Foreground="#FF2AB2E7" FontSize="20" HorizontalAlignment="Left"
- VerticalAlignment="Top"
- ItemsSource="{Binding currentProperty}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="{Binding PropertyName}" Margin="0,5,2,0" >
- <TextBlock.ToolTip >
- <TextBlock Text="{Binding PropertyDescription}"/>
- </TextBlock.ToolTip>
- </TextBlock>
- <TextBlock Grid.Column="1" Text=":" Margin="0,5,0,0"/>
- <TextBox Grid.Column="2" Text="{Binding PropertyValue}" Background="Transparent" Foreground="Orange"
- BorderBrush="#FF2AB2E7" VerticalAlignment="Center" HorizontalContentAlignment="Center"
- Width="150" Margin="20,5"/>
- </Grid>
-
- </DataTemplate>
-
- </ListBox.ItemTemplate>
-
- </ListBox>
- </Border>
- </ScrollViewer>
-
-
- </Grid>
- </Border>
- </Window>
|