终端一体化运控平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

155 lignes
6.7 KiB

  1. <Window
  2. x:Class="BPASmartClient.SmallBatchingSystem.Views.GrindArenaceousView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.SmallBatchingSystem.Views"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.SmallBatchingSystem.ViewModels"
  9. Title="GrindArenaceousView"
  10. Width="800"
  11. Height="450"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. Topmost="True"
  15. WindowStartupLocation="CenterScreen"
  16. WindowState="Maximized"
  17. WindowStyle="None"
  18. mc:Ignorable="d">
  19. <Window.DataContext>
  20. <vm:GrindArenaceousViewModel />
  21. </Window.DataContext>
  22. <Grid Name="gr">
  23. <Border Background="#00c2f4" Opacity="0.2" />
  24. <Grid Width="500" Height="350">
  25. <Grid.Background>
  26. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/容器边框.png" />
  27. </Grid.Background>
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="0.3*" />
  30. <RowDefinition Height="0.2*" />
  31. <RowDefinition />
  32. <RowDefinition Height="0.3*" />
  33. </Grid.RowDefinitions>
  34. <TextBlock
  35. HorizontalAlignment="Center"
  36. VerticalAlignment="Center"
  37. FontSize="20"
  38. Foreground="#00c2f4"
  39. Text="{Binding RecipeName}" />
  40. <Grid Grid.Row="1" Margin="5,0">
  41. <!--#region 表格标题栏设置-->
  42. <Grid Margin="0,10,0,0" Background="#ff0C255F">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition />
  45. <ColumnDefinition />
  46. </Grid.ColumnDefinitions>
  47. <TextBlock
  48. Grid.Column="0"
  49. Style="{StaticResource TitleTextblockStyle}"
  50. Text="原料" />
  51. <Grid Grid.Column="1">
  52. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="状态" />
  53. <Border
  54. BorderBrush="{StaticResource bordColor}"
  55. BorderThickness="1,0,1,0"
  56. Cursor="SizeWE" />
  57. </Grid>
  58. <Border
  59. Grid.ColumnSpan="2"
  60. BorderBrush="{StaticResource bordColor}"
  61. BorderThickness="1,0,1,0" />
  62. </Grid>
  63. <!--#endregion-->
  64. </Grid>
  65. <Grid Grid.Row="2" Margin="5,0">
  66. <ScrollViewer
  67. Grid.Row="1"
  68. HorizontalScrollBarVisibility="Hidden"
  69. VerticalScrollBarVisibility="Hidden">
  70. <ItemsControl ItemsSource="{Binding Recipes}">
  71. <ItemsControl.ItemTemplate>
  72. <DataTemplate>
  73. <RadioButton
  74. Name="rb"
  75. GroupName="all"
  76. IsChecked="{Binding IsChecked}">
  77. <RadioButton.Template>
  78. <ControlTemplate TargetType="RadioButton">
  79. <Grid Name="gr" Height="30">
  80. <Grid.ColumnDefinitions>
  81. <ColumnDefinition />
  82. <ColumnDefinition />
  83. </Grid.ColumnDefinitions>
  84. <StackPanel
  85. Margin="0,0,5,0"
  86. HorizontalAlignment="Right"
  87. Orientation="Horizontal">
  88. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="{Binding RawMaterialName}" />
  89. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text=":" />
  90. </StackPanel>
  91. <StackPanel
  92. Grid.Column="1"
  93. Margin="2,0,0,0"
  94. Orientation="Horizontal">
  95. <TextBlock
  96. Margin="0,0,5,0"
  97. Foreground="{Binding Status, Converter={StaticResource ForegroundConverter}}"
  98. Style="{StaticResource TitleTextblockStyle}"
  99. Text="{Binding Status}" />
  100. <TextBlock
  101. FontFamily="../Fonts/#iconfont"
  102. FontSize="20"
  103. Foreground="{Binding Status, Converter={StaticResource ForegroundConverter}}"
  104. Style="{StaticResource TitleTextblockStyle}"
  105. Text="{Binding Status, Converter={StaticResource StatusIconConverter}}" />
  106. </StackPanel>
  107. </Grid>
  108. </ControlTemplate>
  109. </RadioButton.Template>
  110. </RadioButton>
  111. </DataTemplate>
  112. </ItemsControl.ItemTemplate>
  113. </ItemsControl>
  114. </ScrollViewer>
  115. </Grid>
  116. <Button
  117. Grid.Row="3"
  118. Width="150"
  119. Height="35"
  120. Command="{Binding CancelCommand}"
  121. Content="取消"
  122. FontSize="20"
  123. Style="{StaticResource ControlButtonStyle}">
  124. <Button.Background>
  125. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.png" Stretch="Fill" />
  126. </Button.Background>
  127. </Button>
  128. </Grid>
  129. </Grid>
  130. </Window>