终端一体化运控平台
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.

MaterialConfigure.xaml 6.5 KiB

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <Window x:Class="BPASmart.RecipeManagement.View.MaterialConfigure"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmart.RecipeManagement.View"
  7. xmlns:vm="clr-namespace:BPASmart.RecipeManagement.ViewModel"
  8. mc:Ignorable="d"
  9. Title="MaterialConfigure" Height="300" Width="500" WindowStartupLocation="CenterScreen" WindowStyle="None" Background="Transparent" MouseLeftButtonDown="Window_MouseLeftButtonDown"
  10. Foreground="#FF2AB2E7" AllowsTransparency="True">
  11. <Window.DataContext>
  12. <vm:MaterialConfigureViewModel/>
  13. </Window.DataContext>
  14. <Window.Resources>
  15. </Window.Resources>
  16. <Border CornerRadius="20" Background="#264c73" >
  17. <Grid Width="900">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="17*"/>
  20. <ColumnDefinition Width="33*"/>
  21. <ColumnDefinition Width="40"/>
  22. <ColumnDefinition Width="400"/>
  23. </Grid.ColumnDefinitions>
  24. <Grid.RowDefinitions>
  25. <RowDefinition/>
  26. <RowDefinition />
  27. <RowDefinition />
  28. <RowDefinition Height="40"/>
  29. <RowDefinition />
  30. </Grid.RowDefinitions>
  31. <TextBlock Text="原料名称:" FontSize="22"
  32. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  33. <TextBlock Text="原料种类:" FontSize="22" Grid.Row="1"
  34. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  35. <TextBlock Text="原料位置:" FontSize="22" Grid.Row="2"
  36. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  37. <TextBox Text="{Binding MaterialName}" FontSize="22" Grid.Column="1" Width="200" Height="40" Background="Transparent" Foreground="Orange"
  38. VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"
  39. VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
  40. <ComboBox ItemsSource="{Binding MaterialTypes}"
  41. FontSize="18" Foreground="#FF2AB2E7"
  42. Grid.Column="1" Grid.Row="1" Width="200" Height="40"
  43. SelectedItem="{Binding MaterialType}" />
  44. <TextBox Text="{Binding MaterialPosion}" FontSize="22" Grid.Column="1" Grid.Row="2"
  45. Width="100" Height="40" Background="Transparent" Foreground="Orange"
  46. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  47. VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"/>
  48. <TextBlock Text="{Binding ErrorMessage}" Grid.Row="3" Grid.ColumnSpan=" 2"
  49. Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  50. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal"
  51. HorizontalAlignment="Center" VerticalAlignment="Center">
  52. <Button Content="保存" FontSize="22" Width="120" Height="36" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
  53. Command="{Binding SaveCommand}"/>
  54. <Button Content="取消" FontSize="22" Width="120" Height="36" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
  55. Click="Button_Click"/>
  56. </StackPanel>
  57. <Button x:Name="expand" Grid.Column="2" Grid.RowSpan="5" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{DynamicResource ButtonStyle}"
  58. Click="expand_Click" >
  59. <Grid>
  60. <Grid.RowDefinitions>
  61. <RowDefinition />
  62. <RowDefinition/>
  63. </Grid.RowDefinitions>
  64. <TextBlock Text="拓展属性" TextWrapping="Wrap" FontSize="18" HorizontalAlignment="Center" />
  65. <Image x:Name="expandImage" Source="../image/right.png" Grid.Row="1" Width="22" Margin="0,5"/>
  66. </Grid>
  67. </Button>
  68. <ScrollViewer Grid.Column="3"
  69. Grid.RowSpan="5"
  70. HorizontalScrollBarVisibility="Hidden"
  71. VerticalScrollBarVisibility="Hidden" Margin="10,5">
  72. <Border Background="Transparent" BorderBrush="White" BorderThickness="1,0,0,0">
  73. <ListBox Margin="5,20" Background="Transparent" BorderBrush="Transparent" Foreground="#FF2AB2E7" FontSize="20" HorizontalAlignment="Left"
  74. VerticalAlignment="Top"
  75. ItemsSource="{Binding currentProperty}">
  76. <ListBox.ItemTemplate>
  77. <DataTemplate>
  78. <Grid>
  79. <Grid.ColumnDefinitions>
  80. <ColumnDefinition Width="auto"/>
  81. <ColumnDefinition Width="auto"/>
  82. <ColumnDefinition Width="*"/>
  83. </Grid.ColumnDefinitions>
  84. <TextBlock Text="{Binding PropertyName}" Margin="0,5,2,0" >
  85. <TextBlock.ToolTip >
  86. <TextBlock Text="{Binding PropertyDescription}"/>
  87. </TextBlock.ToolTip>
  88. </TextBlock>
  89. <TextBlock Grid.Column="1" Text=":" Margin="0,5,0,0"/>
  90. <TextBox Grid.Column="2" Text="{Binding PropertyValue}" Background="Transparent" Foreground="Orange"
  91. BorderBrush="#FF2AB2E7" VerticalAlignment="Center" HorizontalContentAlignment="Center"
  92. Width="150" Margin="20,5"/>
  93. </Grid>
  94. </DataTemplate>
  95. </ListBox.ItemTemplate>
  96. </ListBox>
  97. </Border>
  98. </ScrollViewer>
  99. </Grid>
  100. </Border>
  101. </Window>