终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

144 linhas
6.5 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.View.RecipeReceiveView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
  16. <SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
  17. <SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
  18. <SolidColorBrush x:Key="CursorColor" Color="Aqua" />
  19. <SolidColorBrush x:Key="TitleBorderColor" Color="#FF2AB2E7" />
  20. <SolidColorBrush x:Key="TextBlockForeground" Color="#9934F7F7" />
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="20" />
  24. <Setter Property="Background" Value="Transparent" />
  25. <!--<Setter Property="Foreground" Value="{StaticResource FontColor}" />-->
  26. <Setter Property="VerticalAlignment" Value="Center" />
  27. <Setter Property="HorizontalAlignment" Value="Center" />
  28. </Style>
  29. <Style x:Key="buttonStyle" TargetType="Button">
  30. <Setter Property="Background" Value="Transparent" />
  31. <Setter Property="FontSize" Value="16" />
  32. <Setter Property="Foreground" Value="Aqua" />
  33. <Setter Property="HorizontalAlignment" Value="Center" />
  34. <Setter Property="BorderThickness" Value="0" />
  35. </Style>
  36. </UserControl.Resources>
  37. <UserControl.DataContext>
  38. <vm:RecipeReceiveViewModel />
  39. </UserControl.DataContext>
  40. <Grid>
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="50"/>
  43. <RowDefinition />
  44. </Grid.RowDefinitions>
  45. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  46. <pry:IcoButton
  47. Width="140"
  48. Margin="10"
  49. HorizontalAlignment="Left"
  50. Command="{Binding NewSimulateRecipe}"
  51. Content="新建模拟配方"
  52. FontSize="16"
  53. Foreground="Aqua"
  54. IcoText="&#xe626;"
  55. Style="{StaticResource IcoButtonStyle}" />
  56. <pry:IcoButton
  57. Grid.Column="3"
  58. Width="140"
  59. Margin="10"
  60. HorizontalAlignment="Left"
  61. Command="{Binding ClearAllRecipe}"
  62. Content="清除所有配方"
  63. FontSize="16"
  64. Foreground="Aqua"
  65. IcoText="&#xe635;"
  66. IsEnabled="True"
  67. Style="{StaticResource IcoButtonStyle}" />
  68. </StackPanel>
  69. <ScrollViewer Grid.Row="1">
  70. <ListView
  71. Margin="5"
  72. VerticalAlignment="Top"
  73. Background="Transparent"
  74. BorderThickness="0"
  75. ItemsSource="{Binding Recipes}"
  76. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  77. <ListView.ItemsPanel>
  78. <ItemsPanelTemplate>
  79. <UniformGrid
  80. HorizontalAlignment="Left"
  81. VerticalAlignment="Top"
  82. Columns="8" />
  83. </ItemsPanelTemplate>
  84. </ListView.ItemsPanel>
  85. <ListView.ItemTemplate>
  86. <DataTemplate>
  87. <Border Margin="5" Background="LightSkyBlue">
  88. <Grid>
  89. <Grid.RowDefinitions>
  90. <RowDefinition />
  91. <RowDefinition Height="0.25*" />
  92. <RowDefinition Height="0.2*" />
  93. </Grid.RowDefinitions>
  94. <Image Source="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  95. <TextBlock
  96. Grid.Row="1"
  97. Margin="2,0,0,0"
  98. HorizontalAlignment="Center"
  99. VerticalAlignment="Center"
  100. Foreground="#dd000000"
  101. Text="{Binding RecipeName}" />
  102. <Grid
  103. Name="gr"
  104. Grid.Row="2"
  105. Height="30">
  106. <Grid.ColumnDefinitions>
  107. <ColumnDefinition />
  108. </Grid.ColumnDefinitions>
  109. <pry:IcoButton
  110. Grid.Column="0"
  111. Width="{Binding ElementName=gr, Path=ActualWidth}"
  112. Height="{Binding ElementName=gr, Path=ActualHeight}"
  113. HorizontalAlignment="Center"
  114. VerticalAlignment="Center"
  115. BorderThickness="0"
  116. Command="{Binding DataContext.DetailsCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  117. CommandParameter="{Binding RecipeCode}"
  118. Content="详情"
  119. EnterBackground="#FF2AB2E7"
  120. Foreground="#dd000000"
  121. IcoText="&#xe636;"
  122. Style="{StaticResource IcoButtonStyle}" />
  123. </Grid>
  124. </Grid>
  125. </Border>
  126. </DataTemplate>
  127. </ListView.ItemTemplate>
  128. </ListView>
  129. </ScrollViewer>
  130. </Grid>
  131. </UserControl>