终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

MaterialConfigure.xaml 8.4 KiB

2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
2年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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 >
  17. <Grid Width="900">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="500"/>
  20. <ColumnDefinition Width="*"/>
  21. </Grid.ColumnDefinitions>
  22. <Border Background="#264c73" CornerRadius="20" >
  23. <Grid >
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="17*"/>
  26. <ColumnDefinition Width="33*"/>
  27. <ColumnDefinition Width="40"/>
  28. </Grid.ColumnDefinitions>
  29. <Grid.RowDefinitions>
  30. <RowDefinition/>
  31. <RowDefinition />
  32. <RowDefinition />
  33. <RowDefinition Height="40"/>
  34. <RowDefinition />
  35. </Grid.RowDefinitions>
  36. <TextBlock Text="原料名称:" FontSize="22"
  37. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  38. <TextBlock Text="原料种类:" FontSize="22" Grid.Row="1"
  39. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  40. <TextBlock Text="原料位置:" FontSize="22" Grid.Row="2"
  41. HorizontalAlignment="Center" VerticalAlignment="Center" Height="28" Width="92"/>
  42. <TextBox Text="{Binding MaterialName}" FontSize="22" Grid.Column="1" Width="200" Height="40" Background="Transparent" Foreground="Orange"
  43. VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"
  44. VerticalContentAlignment="Center" HorizontalContentAlignment="Center"/>
  45. <ComboBox ItemsSource="{Binding MaterialTypes}"
  46. FontSize="18" Foreground="#FF2AB2E7"
  47. Grid.Column="1" Grid.Row="1" Width="200" Height="40"
  48. SelectedItem="{Binding MaterialType}" />
  49. <TextBox Text="{Binding MaterialPosion}" FontSize="22" Grid.Column="1" Grid.Row="2"
  50. Width="100" Height="40" Background="Transparent" Foreground="Orange"
  51. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
  52. VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="#FF2AB2E7"/>
  53. <TextBlock Text="{Binding ErrorMessage}" Grid.Row="3" Grid.ColumnSpan=" 2"
  54. Foreground="Red" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  55. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal"
  56. HorizontalAlignment="Center" VerticalAlignment="Center">
  57. <Button Content="保存" FontSize="18" Width="120" Height="28" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
  58. Command="{Binding SaveCommand}" Style="{DynamicResource ButtonStyle}"/>
  59. <Button Content="取消" FontSize="18" Width="120" Height="28" Margin="10" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7"
  60. Click="Button_Click" Style="{DynamicResource ButtonStyle}"/>
  61. </StackPanel>
  62. <Button x:Name="expand" Grid.Column="2" Grid.RowSpan="5" HorizontalAlignment="Right" VerticalAlignment="Center" Style="{DynamicResource ButtonStyle}"
  63. Click="expand_Click" BorderThickness="1,1,0,1">
  64. <Grid>
  65. <Grid.RowDefinitions>
  66. <RowDefinition />
  67. <RowDefinition/>
  68. </Grid.RowDefinitions>
  69. <TextBlock Text="拓展属性" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Center"
  70. VerticalAlignment="Center" Width="20" FontFamily="楷体"/>
  71. </Grid>
  72. </Button>
  73. </Grid>
  74. </Border>
  75. <Border Grid.Column="1" Background="#264c73" BorderThickness="1,0,0,0" CornerRadius="20,20,20,20">
  76. <Grid >
  77. <Grid.RowDefinitions>
  78. <RowDefinition Height="20"/>
  79. <RowDefinition Height="30"/>
  80. <RowDefinition Height="*"/>
  81. </Grid.RowDefinitions>
  82. <Border Grid.Row="1" Background="#dd2AB2E7" >
  83. <Grid >
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="120"/>
  86. <ColumnDefinition Width="*"/>
  87. </Grid.ColumnDefinitions>
  88. <TextBlock Text="属性名称" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="White"/>
  89. <TextBlock Grid.Column="1" Text="属性值" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,40,0" FontSize="20" Foreground="White"/>
  90. </Grid>
  91. </Border>
  92. <ScrollViewer Grid.Row="2"
  93. HorizontalScrollBarVisibility="Hidden"
  94. VerticalScrollBarVisibility="Hidden" Margin="10,5">
  95. <Border Background="Transparent" BorderBrush="Transparent" BorderThickness="1,0,0,0">
  96. <ListBox Margin="5,0" Width="380" Background="Transparent" BorderBrush="Transparent" Foreground="#FF2AB2E7" FontSize="16" HorizontalAlignment="Left"
  97. VerticalAlignment="Top"
  98. ItemsSource="{Binding currentProperty}">
  99. <ListBox.ItemTemplate>
  100. <DataTemplate>
  101. <Grid>
  102. <Grid.ColumnDefinitions>
  103. <ColumnDefinition Width="140"/>
  104. <ColumnDefinition Width="*"/>
  105. </Grid.ColumnDefinitions>
  106. <StackPanel Orientation="Horizontal">
  107. <TextBlock Text="{Binding PropertyName}" Margin="0,5,2,0" >
  108. <TextBlock.ToolTip >
  109. <TextBlock Text="{Binding PropertyDescription}"/>
  110. </TextBlock.ToolTip>
  111. </TextBlock>
  112. <TextBlock Text=":" Margin="0,5,0,0"/>
  113. </StackPanel>
  114. <TextBox Grid.Column="2" Text="{Binding PropertyValue}" Background="Transparent" Foreground="Orange"
  115. BorderBrush="#FF2AB2E7" VerticalAlignment="Center" HorizontalAlignment="Center" HorizontalContentAlignment="Center" MinWidth="110"
  116. Margin="20,5"/>
  117. </Grid>
  118. </DataTemplate>
  119. </ListBox.ItemTemplate>
  120. </ListBox>
  121. </Border>
  122. </ScrollViewer>
  123. </Grid>
  124. </Border>
  125. </Grid>
  126. </Border>
  127. </Window>