终端一体化运控平台
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

586 řádky
32 KiB

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