终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

83 lines
5.2 KiB

  1. <UserControl x:Class="FryPot_DosingSystem.View.RecipeSendDownView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:FryPot_DosingSystem.View"
  8. xmlns:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <UserControl.DataContext>
  12. <vm:RecipeSetDownViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  18. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  19. </ResourceDictionary.MergedDictionaries>
  20. </ResourceDictionary>
  21. </UserControl.Resources>
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="50"/>
  25. <RowDefinition/>
  26. </Grid.RowDefinitions>
  27. <Button HorizontalAlignment="Right" VerticalAlignment="Center" Content="配方一键下发" Width="110" Height="30" Margin="0,0,10,0" Cursor="Hand" Command="{Binding AllRecipeSetDownCommand}"></Button>
  28. <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  29. <ItemsControl ItemsSource="{Binding Recipes}">
  30. <ItemsControl.ItemsPanel>
  31. <ItemsPanelTemplate>
  32. <StackPanel></StackPanel>
  33. </ItemsPanelTemplate>
  34. </ItemsControl.ItemsPanel>
  35. <ItemsControl.ItemTemplate>
  36. <DataTemplate>
  37. <Border BorderBrush="Aqua" BorderThickness="2" CornerRadius="14" Height="120" Margin="5,5">
  38. <RadioButton>
  39. <RadioButton.Template>
  40. <ControlTemplate>
  41. <Grid>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="*"></ColumnDefinition>
  44. <ColumnDefinition Width="0.01*"></ColumnDefinition>
  45. <ColumnDefinition Width="4*"></ColumnDefinition>
  46. <ColumnDefinition Width="1.2*"/>
  47. </Grid.ColumnDefinitions>
  48. <Grid>
  49. <Grid.RowDefinitions>
  50. <RowDefinition Height="70"></RowDefinition>
  51. <RowDefinition></RowDefinition>
  52. </Grid.RowDefinitions>
  53. <TextBlock Text="{Binding RecipeName}" FontSize="35" HorizontalAlignment="Center"></TextBlock>
  54. <Button Grid.Row="1" Width="100" Content="配方下发" Command="{Binding DataContext.RecipeSetDownCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ItemsControl}}"
  55. CommandParameter="{Binding RecipeId}" Cursor="Hand"></Button>
  56. </Grid>
  57. <Line StrokeThickness="3" Grid.Column="1" HorizontalAlignment="Left" Stroke="LawnGreen" X1="0" Y1="5" X2="0" Y2="110"></Line>
  58. <Grid Grid.Column="2">
  59. <!--后续添加内容-->
  60. </Grid>
  61. <Grid Grid.Column="3">
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition Width="3"/>
  64. <ColumnDefinition/>
  65. </Grid.ColumnDefinitions>
  66. <Line StrokeThickness="3" Grid.Column="0" HorizontalAlignment="Left" Stroke="LawnGreen" X1="0" Y1="5" X2="0" Y2="110"></Line>
  67. <TextBlock Grid.Column="1" FontSize="16" Text="{Binding RecipeSetInfo}" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
  68. <!--后续添加内容-->
  69. </Grid>
  70. </Grid>
  71. </ControlTemplate>
  72. </RadioButton.Template>
  73. </RadioButton>
  74. </Border>
  75. </DataTemplate>
  76. </ItemsControl.ItemTemplate>
  77. </ItemsControl>
  78. </ScrollViewer>
  79. </Grid>
  80. </UserControl>