|
- <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 >
- <Grid Width="900">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="500"/>
- <ColumnDefinition Width="*"/>
-
- </Grid.ColumnDefinitions>
- <Border Background="#264c73" CornerRadius="20" >
-
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="17*"/>
- <ColumnDefinition Width="33*"/>
- <ColumnDefinition Width="40"/>
- </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="18" Width="120" Height="28" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
- Command="{Binding SaveCommand}" Style="{DynamicResource ButtonStyle}"/>
- <Button Content="取消" FontSize="18" Width="120" Height="28" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
- Click="Button_Click" Style="{DynamicResource ButtonStyle}"/>
-
- </StackPanel>
- <Button x:Name="expand" Grid.Column="2" Grid.RowSpan="5" HorizontalAlignment="Right" VerticalAlignment="Center" Style="{DynamicResource ButtonStyle}"
- Click="expand_Click" BorderThickness="1,1,0,1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition/>
- </Grid.RowDefinitions>
- <TextBlock Text="拓展属性" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Center"
- VerticalAlignment="Center" Width="20" FontFamily="楷体"/>
-
- </Grid>
- </Button>
-
-
- </Grid>
- </Border>
-
-
- <Border Grid.Column="1" Background="#264c73" BorderThickness="1,0,0,0" CornerRadius="20,20,20,20">
- <Grid >
- <Grid.RowDefinitions>
- <RowDefinition Height="20"/>
- <RowDefinition Height="30"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Border Grid.Row="1" Background="#dd2AB2E7" >
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120"/>
- <ColumnDefinition Width="*"/>
-
- </Grid.ColumnDefinitions>
- <TextBlock Text="属性名称" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="White"/>
- <TextBlock Grid.Column="1" Text="属性值" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,40,0" FontSize="20" Foreground="White"/>
- </Grid>
- </Border>
-
- <ScrollViewer Grid.Row="2"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" Margin="10,5">
- <Border Background="Transparent" BorderBrush="Transparent" BorderThickness="1,0,0,0">
- <ListBox Margin="5,0" Width="380" Background="Transparent" BorderBrush="Transparent" Foreground="#FF2AB2E7" FontSize="16" HorizontalAlignment="Left"
- VerticalAlignment="Top"
- ItemsSource="{Binding currentProperty}">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="140"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding PropertyName}" Margin="0,5,2,0" >
- <TextBlock.ToolTip >
- <TextBlock Text="{Binding PropertyDescription}"/>
- </TextBlock.ToolTip>
- </TextBlock>
- <TextBlock Text=":" Margin="0,5,0,0"/>
- </StackPanel>
-
- <TextBox Grid.Column="2" Text="{Binding PropertyValue}" Background="Transparent" Foreground="Orange"
- BorderBrush="#FF2AB2E7" VerticalAlignment="Center" HorizontalAlignment="Center" HorizontalContentAlignment="Center" MinWidth="110"
- Margin="20,5"/>
- </Grid>
-
- </DataTemplate>
-
- </ListBox.ItemTemplate>
-
- </ListBox>
- </Border>
- </ScrollViewer>
-
- </Grid>
- </Border>
-
- </Grid>
-
- </Border>
- </Window>
|