终端一体化运控平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

597 рядки
32 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodBigStation.View.SiemensRecipeSendDownView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:con="clr-namespace:BPASmartClient.JXJFoodBigStation.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodBigStation.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.JXJFoodBigStation.ViewModel"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:SiemensRecipeSendDownViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <con:EnbleConvert x:Key="EnbleConvert" />
  19. <con:IntToSourceConvert x:Key="IntToSourceConvert" />
  20. <con:RunStatusConvert x:Key="RunStatusConvert" />
  21. <Style x:Key="UserItemContainerStyle" TargetType="ListBoxItem">
  22. <Style.Resources>
  23. <!-- SelectedItem with focus -->
  24. <SolidColorBrush
  25. x:Key="{x:Static SystemColors.HighlightBrushKey}"
  26. Opacity=".4"
  27. Color="White" />
  28. <!-- SelectedItem without focus -->
  29. <SolidColorBrush
  30. x:Key="{x:Static SystemColors.ControlBrushKey}"
  31. Opacity=".4"
  32. Color="White" />
  33. </Style.Resources>
  34. <!-- 设置触发器 -->
  35. <Style.Triggers>
  36. <Trigger Property="IsMouseOver" Value="true">
  37. <Setter Property="Background" Value="White" />
  38. <Setter Property="Foreground" Value="White" />
  39. </Trigger>
  40. <Trigger Property="IsFocused" Value="true">
  41. <Setter Property="Background" Value="White" />
  42. <Setter Property="Foreground" Value="White" />
  43. </Trigger>
  44. </Style.Triggers>
  45. </Style>
  46. <Style x:Key="RadioState" TargetType="RadioButton">
  47. <Setter Property="Margin" Value="1" />
  48. <Setter Property="Background" Value="Transparent" />
  49. <Setter Property="Foreground" Value="#ddd" />
  50. <Setter Property="VerticalContentAlignment" Value="Bottom" />
  51. <Setter Property="Margin" Value="2,5" />
  52. <Setter Property="FontSize" Value="16" />
  53. <Setter Property="FontFamily" Value="Consolas" />
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate TargetType="RadioButton">
  57. <Border
  58. Name="radiobutton"
  59. Background="{TemplateBinding Background}"
  60. CornerRadius="5"
  61. Opacity="0.85">
  62. <Grid>
  63. <!--<Border
  64. x:Name="back_border"
  65. BorderBrush="Black"
  66. BorderThickness="0"
  67. CornerRadius="1">
  68. <Border.Effect>
  69. <BlurEffect KernelType="Gaussian" Radius="2" />
  70. </Border.Effect>
  71. </Border>
  72. <Border
  73. x:Name="fore_border"
  74. Margin="2"
  75. BorderBrush="White"
  76. BorderThickness="0"
  77. CornerRadius="{Binding ElementName=button, Path=CornerRadius}"
  78. Opacity="0.7">
  79. <Border.Effect>
  80. <BlurEffect KernelType="Gaussian" Radius="2" />
  81. </Border.Effect>
  82. </Border>-->
  83. <ContentPresenter
  84. HorizontalAlignment="Center"
  85. VerticalAlignment="Center"
  86. Content="{TemplateBinding Content}"
  87. TextBlock.FontFamily="{TemplateBinding FontFamily}"
  88. TextBlock.FontSize="{TemplateBinding FontSize}"
  89. TextBlock.Foreground="{TemplateBinding Foreground}" />
  90. <Image
  91. Name="im"
  92. Source="/BPASmartClient.CustomResource;component/Image/按钮/组 8.png"
  93. Stretch="Fill" />
  94. </Grid>
  95. </Border>
  96. <ControlTemplate.Triggers>
  97. <Trigger Property="IsChecked" Value="True">
  98. <!--<Setter TargetName="back_border" Property="BorderThickness" Value="1,0,1,1" />
  99. <Setter TargetName="back_border" Property="CornerRadius" Value="5" />
  100. <Setter TargetName="fore_border" Property="BorderThickness" Value="0,2,0,0" />
  101. <Setter Property="Background" Value=" #4169E1" />-->
  102. <Setter TargetName="im" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/按钮/组 7.png" />
  103. </Trigger>
  104. <Trigger Property="IsChecked" Value="False">
  105. <Setter TargetName="im" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/按钮/组 8.png" />
  106. </Trigger>
  107. <Trigger Property="IsMouseOver" Value="True">
  108. <!--<Setter TargetName="back_border" Property="BorderBrush" Value="white" />
  109. <Setter TargetName="back_border" Property="BorderThickness" Value="1,1,1,1" />-->
  110. <Setter TargetName="radiobutton" Property="Opacity" Value="1" />
  111. <!--<Setter TargetName="im" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/按钮背景蓝色.png" />-->
  112. </Trigger>
  113. </ControlTemplate.Triggers>
  114. </ControlTemplate>
  115. </Setter.Value>
  116. </Setter>
  117. </Style>
  118. <Style x:Key="materialMakingButton" TargetType="Button">
  119. <Setter Property="Background" Value="Transparent" />
  120. <Setter Property="FontSize" Value="16" />
  121. <Setter Property="Foreground" Value="#CD5555" />
  122. <Setter Property="BorderThickness" Value="0" />
  123. <Setter Property="HorizontalAlignment" Value="Left" />
  124. <Setter Property="Template">
  125. <Setter.Value>
  126. <ControlTemplate>
  127. <Border
  128. x:Name="brState"
  129. Padding="2"
  130. BorderBrush="White"
  131. BorderThickness="0">
  132. <TextBlock
  133. x:Name="txState"
  134. Margin="1"
  135. HorizontalAlignment="Center"
  136. VerticalAlignment="Center"
  137. Text="{Binding RecipeStatus, Converter={StaticResource RunStatusConvert}}" />
  138. </Border>
  139. <ControlTemplate.Triggers>
  140. <Trigger Property="IsEnabled" Value="True">
  141. <Setter TargetName="brState" Property="BorderThickness" Value="0" />
  142. <Setter TargetName="brState" Property="CornerRadius" Value="5" />
  143. <Setter TargetName="brState" Property="Background" Value="#F0FFFF" />
  144. <Setter TargetName="txState" Property="Foreground" Value="#CD5555" />
  145. </Trigger>
  146. <DataTrigger Binding="{Binding RecipeStatus}" Value="3">
  147. <Setter TargetName="brState" Property="Background" Value="#F0FFFF" />
  148. <Setter TargetName="txState" Property="Foreground" Value="#3CB371" />
  149. </DataTrigger>
  150. <DataTrigger Binding="{Binding RecipeStatus}" Value="2">
  151. <Setter TargetName="txState" Property="Foreground" Value="Aqua" />
  152. </DataTrigger>
  153. <MultiTrigger>
  154. <MultiTrigger.Conditions>
  155. <Condition Property="IsMouseOver" Value="True" />
  156. <Condition Property="IsEnabled" Value="True" />
  157. </MultiTrigger.Conditions>
  158. <Setter TargetName="txState" Property="FontSize" Value="17 " />
  159. </MultiTrigger>
  160. </ControlTemplate.Triggers>
  161. </ControlTemplate>
  162. </Setter.Value>
  163. </Setter>
  164. <Style.Triggers />
  165. </Style>
  166. <DataTemplate x:Key="TreeItemTemplate" DataType="TreeViewItem">
  167. <Grid Height="28" Margin="50,0,0,0">
  168. <Grid.ColumnDefinitions>
  169. <ColumnDefinition Width="*" />
  170. <ColumnDefinition Width="*" />
  171. </Grid.ColumnDefinitions>
  172. <TextBlock
  173. Margin="10,0"
  174. HorizontalAlignment="Left"
  175. VerticalAlignment="Center"
  176. FontSize="15"
  177. Foreground="#aa2AB2E7"
  178. Text="原料:" />
  179. <TextBlock
  180. Grid.Column="1"
  181. Margin="10,0"
  182. HorizontalAlignment="Left"
  183. VerticalAlignment="Center"
  184. FontSize="15"
  185. Foreground="#aa2AB2E7"
  186. Text="{Binding RawMaterialName}" />
  187. </Grid>
  188. </DataTemplate>
  189. <Style x:Key="recipeTreeItem" TargetType="TreeViewItem">
  190. <Setter Property="Background" Value="Transparent" />
  191. <Setter Property="BorderThickness" Value="0" />
  192. <Setter Property="IsExpanded" Value="True" />
  193. <Setter Property="HeaderTemplate">
  194. <Setter.Value>
  195. <HierarchicalDataTemplate ItemTemplate="{StaticResource TreeItemTemplate}" ItemsSource="{Binding RawMaterials, Mode=TwoWay}">
  196. <StackPanel
  197. Height="28"
  198. HorizontalAlignment="Left"
  199. VerticalAlignment="Center"
  200. Orientation="Horizontal">
  201. <TextBlock
  202. Margin="5,0,0,0"
  203. VerticalAlignment="Center"
  204. FontSize="15"
  205. Foreground="#FF2AB2E7"
  206. Text="配方:" />
  207. <TextBlock
  208. Margin="5,0,0,0"
  209. VerticalAlignment="Center"
  210. FontSize="15"
  211. Foreground="#FF2AB2E7"
  212. Text="{Binding RecipeName}" />
  213. </StackPanel>
  214. </HierarchicalDataTemplate>
  215. </Setter.Value>
  216. </Setter>
  217. <Setter Property="Template">
  218. <Setter.Value>
  219. <ControlTemplate TargetType="{x:Type TreeViewItem}">
  220. <Grid>
  221. <Grid.ColumnDefinitions>
  222. <ColumnDefinition Width="Auto" />
  223. <ColumnDefinition Width="*" />
  224. </Grid.ColumnDefinitions>
  225. <Grid.RowDefinitions>
  226. <RowDefinition Height="Auto" />
  227. <RowDefinition />
  228. </Grid.RowDefinitions>
  229. <Border
  230. x:Name="Bd"
  231. Grid.Column="0"
  232. Padding="{TemplateBinding Padding}"
  233. Background="{TemplateBinding Background}"
  234. BorderBrush="{TemplateBinding BorderBrush}"
  235. BorderThickness="{TemplateBinding BorderThickness}">
  236. <ContentPresenter
  237. x:Name="PART_Header"
  238. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  239. ContentSource="Header" />
  240. </Border>
  241. <ItemsPresenter
  242. x:Name="ItemsHost"
  243. Grid.Row="1"
  244. Grid.Column="0"
  245. Grid.ColumnSpan="2"
  246. Visibility="Collapsed" />
  247. <VisualStateManager.VisualStateGroups>
  248. <VisualStateGroup x:Name="SelectionStates">
  249. <VisualState x:Name="Selected">
  250. <Storyboard>
  251. <ColorAnimationUsingKeyFrames Storyboard.TargetName="Bd" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
  252. <EasingColorKeyFrame KeyTime="0" Value="Transparent" />
  253. </ColorAnimationUsingKeyFrames>
  254. </Storyboard>
  255. </VisualState>
  256. <VisualState x:Name="Unselected" />
  257. <VisualState x:Name="SelectedInactive">
  258. <Storyboard>
  259. <ColorAnimationUsingKeyFrames Storyboard.TargetName="Bd" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
  260. <EasingColorKeyFrame KeyTime="0" Value="Transparent" />
  261. </ColorAnimationUsingKeyFrames>
  262. </Storyboard>
  263. </VisualState>
  264. </VisualStateGroup>
  265. <VisualStateGroup x:Name="ExpansionStates">
  266. <VisualState x:Name="Expanded">
  267. <Storyboard>
  268. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ItemsHost" Storyboard.TargetProperty="(UIElement.Visibility)">
  269. <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}" />
  270. </ObjectAnimationUsingKeyFrames>
  271. </Storyboard>
  272. </VisualState>
  273. <VisualState x:Name="Collapsed" />
  274. </VisualStateGroup>
  275. </VisualStateManager.VisualStateGroups>
  276. </Grid>
  277. <ControlTemplate.Triggers>
  278. <MultiTrigger>
  279. <MultiTrigger.Conditions>
  280. <Condition Property="HasHeader" Value="false" />
  281. <Condition Property="Width" Value="Auto" />
  282. </MultiTrigger.Conditions>
  283. <Setter TargetName="PART_Header" Property="MinWidth" Value="75" />
  284. </MultiTrigger>
  285. <MultiTrigger>
  286. <MultiTrigger.Conditions>
  287. <Condition Property="HasHeader" Value="false" />
  288. <Condition Property="Height" Value="Auto" />
  289. </MultiTrigger.Conditions>
  290. <Setter TargetName="PART_Header" Property="MinHeight" Value="19" />
  291. </MultiTrigger>
  292. </ControlTemplate.Triggers>
  293. </ControlTemplate>
  294. </Setter.Value>
  295. </Setter>
  296. </Style>
  297. <!--#region 下拉列表样式-->
  298. <Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}">
  299. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  300. <!--<Setter Property="Height" Value="10" />-->
  301. <Setter Property="HorizontalContentAlignment" Value="Left" />
  302. <Setter Property="VerticalContentAlignment" Value="Top" />
  303. <Setter Property="Padding" Value="10,10" />
  304. <Setter Property="Template">
  305. <Setter.Value>
  306. <ControlTemplate TargetType="{x:Type ToggleButton}">
  307. <Grid>
  308. <Border
  309. x:Name="border2"
  310. Width="auto"
  311. Margin="{TemplateBinding Padding}"
  312. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  313. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  314. Background="{TemplateBinding Background}">
  315. <ContentPresenter
  316. Margin="{TemplateBinding Padding}"
  317. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  318. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  319. RecognizesAccessKey="True"
  320. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  321. </Border>
  322. </Grid>
  323. <ControlTemplate.Triggers>
  324. <Trigger Property="IsMouseOver" Value="True">
  325. <Setter TargetName="border2" Property="Background" Value="#191E36" />
  326. </Trigger>
  327. <Trigger Property="IsMouseOver" Value="False">
  328. <Setter TargetName="border2" Property="Background" Value="Transparent" />
  329. </Trigger>
  330. </ControlTemplate.Triggers>
  331. </ControlTemplate>
  332. </Setter.Value>
  333. </Setter>
  334. </Style>
  335. <Style x:Key="ExpanderStyle" TargetType="{x:Type Expander}">
  336. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  337. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  338. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  339. <Setter Property="BorderBrush" Value="Transparent" />
  340. <Setter Property="BorderThickness" Value="1" />
  341. <Setter Property="Template">
  342. <Setter.Value>
  343. <ControlTemplate TargetType="{x:Type Expander}">
  344. <DockPanel>
  345. <ToggleButton
  346. x:Name="HeaderSite"
  347. Width="auto"
  348. Height="20"
  349. MinWidth="0"
  350. MinHeight="0"
  351. Margin="1"
  352. Padding="{TemplateBinding Padding}"
  353. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  354. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  355. Background="Transparent"
  356. Content="{TemplateBinding Header}"
  357. ContentTemplate="{TemplateBinding HeaderTemplate}"
  358. ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"
  359. DockPanel.Dock="Top"
  360. FontFamily="{TemplateBinding FontFamily}"
  361. FontSize="{TemplateBinding FontSize}"
  362. FontStretch="{TemplateBinding FontStretch}"
  363. FontStyle="{TemplateBinding FontStyle}"
  364. FontWeight="{TemplateBinding FontWeight}"
  365. Foreground="{TemplateBinding Foreground}"
  366. IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  367. Style="{StaticResource ToggleButtonStyle}" />
  368. <ContentPresenter
  369. x:Name="ExpandSite"
  370. Margin="{TemplateBinding Padding}"
  371. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  372. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  373. DockPanel.Dock="Left"
  374. Focusable="false"
  375. Visibility="Visible" />
  376. </DockPanel>
  377. <ControlTemplate.Triggers>
  378. <Trigger Property="IsExpanded" Value="True">
  379. <Setter TargetName="ExpandSite" Property="Visibility" Value="Collapsed" />
  380. </Trigger>
  381. </ControlTemplate.Triggers>
  382. </ControlTemplate>
  383. </Setter.Value>
  384. </Setter>
  385. </Style>
  386. <!--#endregion-->
  387. </UserControl.Resources>
  388. <Grid Margin="20">
  389. <Grid.ColumnDefinitions>
  390. <ColumnDefinition />
  391. <!--<ColumnDefinition Width="0.25*" />-->
  392. </Grid.ColumnDefinitions>
  393. <Grid Name="ggr" Margin="10">
  394. <pry:ImageBorder Width="{Binding ElementName=ggr, Path=ActualWidth}" Height="{Binding ElementName=ggr, Path=ActualHeight}" />
  395. <ListBox
  396. Margin="5"
  397. VerticalAlignment="Top"
  398. Background="Transparent"
  399. BorderThickness="0"
  400. ItemsSource="{Binding Recipes}"
  401. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  402. <ListBox.ItemsPanel>
  403. <ItemsPanelTemplate>
  404. <UniformGrid
  405. HorizontalAlignment="Left"
  406. VerticalAlignment="Top"
  407. Columns="6" />
  408. </ItemsPanelTemplate>
  409. </ListBox.ItemsPanel>
  410. <ListBox.ItemTemplate>
  411. <DataTemplate>
  412. <Grid
  413. Name="tt"
  414. Height="300"
  415. Margin="5">
  416. <Grid.RowDefinitions>
  417. <RowDefinition Height="80" />
  418. <RowDefinition Height="20" />
  419. <RowDefinition Height="198" />
  420. <RowDefinition Height="2" />
  421. </Grid.RowDefinitions>
  422. <Image
  423. Grid.RowSpan="5"
  424. Source="/BPASmartClient.CustomResource;component/Image/配方背景/竖背景框.png"
  425. Stretch="Fill" />
  426. <Grid Grid.Row="0">
  427. <Grid.RowDefinitions>
  428. <RowDefinition />
  429. <RowDefinition />
  430. <RowDefinition />
  431. </Grid.RowDefinitions>
  432. <Grid.ColumnDefinitions>
  433. <ColumnDefinition Width="3*" />
  434. <ColumnDefinition Width="7*" />
  435. </Grid.ColumnDefinitions>
  436. <TextBlock
  437. Grid.Row="0"
  438. Grid.Column="0"
  439. Margin="7,5,0,0"
  440. HorizontalAlignment="left"
  441. VerticalAlignment="Center"
  442. FontSize="16"
  443. Foreground="#FF2AB2E7"
  444. Text="配方名称:" />
  445. <TextBlock
  446. Grid.Row="0"
  447. Grid.Column="1"
  448. Margin="7,5,0,0"
  449. HorizontalAlignment="left"
  450. VerticalAlignment="Center"
  451. FontSize="16"
  452. Foreground="#FF2AB2E7"
  453. Text="{Binding RecipeName}" />
  454. <TextBlock
  455. Grid.Row="1"
  456. Grid.Column="0"
  457. Margin="7,5,0,0"
  458. HorizontalAlignment="left"
  459. VerticalAlignment="Center"
  460. FontSize="16"
  461. Foreground="#FF2AB2E7"
  462. Text="配方编号:" />
  463. <TextBlock
  464. Grid.Row="1"
  465. Grid.Column="1"
  466. Margin="7,5,0,0"
  467. HorizontalAlignment="left"
  468. VerticalAlignment="Center"
  469. FontSize="16"
  470. Foreground="#FF2AB2E7"
  471. Text="{Binding RecipeCode}" />
  472. <TextBlock
  473. Grid.Row="2"
  474. Grid.Column="0"
  475. Margin="7,5,0,0"
  476. HorizontalAlignment="left"
  477. VerticalAlignment="Center"
  478. FontSize="16"
  479. Foreground="#FF2AB2E7"
  480. Text="托盘编号:" />
  481. <TextBlock
  482. Grid.Row="2"
  483. Grid.Column="1"
  484. Margin="7,5,0,0"
  485. HorizontalAlignment="left"
  486. VerticalAlignment="Center"
  487. FontSize="16"
  488. Foreground="#FF2AB2E7"
  489. Text="{Binding TrayCode}" />
  490. </Grid>
  491. <TextBlock
  492. Grid.Row="1"
  493. Margin="7,2,0,0"
  494. VerticalAlignment="Top"
  495. FontSize="16"
  496. Foreground="#FF2AB2E7"
  497. Text="原料信息:" />
  498. <ScrollViewer
  499. Grid.Row="2"
  500. VerticalAlignment="Top"
  501. Background="Transparent"
  502. HorizontalScrollBarVisibility="Hidden"
  503. VerticalScrollBarVisibility="Visible">
  504. <ItemsControl ItemsSource="{Binding RawMaterial}">
  505. <ItemsControl.ItemsPanel>
  506. <ItemsPanelTemplate>
  507. <StackPanel />
  508. </ItemsPanelTemplate>
  509. </ItemsControl.ItemsPanel>
  510. <ItemsControl.ItemTemplate>
  511. <DataTemplate>
  512. <Expander Margin="40,0,0,0" Style="{StaticResource ExpanderStyle}">
  513. <Expander.Header>
  514. <StackPanel Orientation="Horizontal">
  515. <Border
  516. Width="15"
  517. Height="15"
  518. Margin="0,0,5,0"
  519. HorizontalAlignment="Left"
  520. CornerRadius="15">
  521. <Border.Background>
  522. <RadialGradientBrush>
  523. <GradientStop Offset="0.5" Color="#FF2AB2E7" />
  524. <GradientStop Color="White" />
  525. </RadialGradientBrush>
  526. </Border.Background>
  527. </Border>
  528. <TextBlock
  529. VerticalAlignment="Center"
  530. FontSize="14"
  531. Foreground="#FF2AB2E7"
  532. Text="{Binding RawMaterialName}" />
  533. </StackPanel>
  534. </Expander.Header>
  535. <Expander.Content>
  536. <StackPanel Margin="36,0,0,0">
  537. <StackPanel Orientation="Horizontal">
  538. <TextBlock Foreground="#FF2AB2E7" Text="原料桶号:" />
  539. <TextBlock Foreground="#FF2AB2E7" Text="{Binding RawMaterialBarrelNum}" />
  540. </StackPanel>
  541. <StackPanel Orientation="Horizontal">
  542. <TextBlock Foreground="#FF2AB2E7" Text="原料重量:" />
  543. <TextBlock Foreground="#FF2AB2E7" Text="{Binding RawMaterialWeight}" />
  544. </StackPanel>
  545. </StackPanel>
  546. </Expander.Content>
  547. </Expander>
  548. </DataTemplate>
  549. </ItemsControl.ItemTemplate>
  550. </ItemsControl>
  551. </ScrollViewer>
  552. <Image
  553. Grid.Row="3"
  554. Width="{Binding ElementName=tt, Path=ActualWidth}"
  555. Height="2"
  556. VerticalAlignment="Bottom"
  557. Source="/BPASmartClient.CustomResource;component/Image/直线.png"
  558. Stretch="Fill" />
  559. </Grid>
  560. </DataTemplate>
  561. </ListBox.ItemTemplate>
  562. </ListBox>
  563. </Grid>
  564. </Grid>
  565. </UserControl>