终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

673 lines
31 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodBigStation.View.HardwareStatusView"
  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.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="1080"
  12. d:DesignWidth="1920"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:HardwareStatusViewModel />
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <PathGeometry x:Key="move" Figures="M 0,0 L 0,20"/>
  19. <Storyboard x:Key="Open" >
  20. <DoubleAnimationUsingPath Duration="0:0:1" PathGeometry="{StaticResource move}" RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(Y)" Source="Y"></DoubleAnimationUsingPath>
  21. </Storyboard>
  22. <SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
  23. <SolidColorBrush x:Key="ListBox.Static.Border" Color="#FFABADB3"/>
  24. <SolidColorBrush x:Key="ListBox.Disabled.Background" Color="#FFFFFFFF"/>
  25. <SolidColorBrush x:Key="ListBox.Disabled.Border" Color="#FFD9D9D9"/>
  26. <Style x:Key="ListViewStyle1" TargetType="{x:Type ListView}">
  27. <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
  28. <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
  29. <Setter Property="BorderThickness" Value="1"/>
  30. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
  31. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
  32. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
  33. <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
  34. <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
  35. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  36. <Setter Property="VerticalContentAlignment" Value="Center"/>
  37. <Setter Property="Template">
  38. <Setter.Value>
  39. <ControlTemplate TargetType="{x:Type ListView}">
  40. <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true">
  41. <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
  42. <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
  43. </ScrollViewer>
  44. </Border>
  45. <ControlTemplate.Triggers>
  46. <Trigger Property="IsEnabled" Value="false">
  47. <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
  48. <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
  49. </Trigger>
  50. <MultiTrigger>
  51. <MultiTrigger.Conditions>
  52. <Condition Property="IsGrouping" Value="true"/>
  53. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
  54. </MultiTrigger.Conditions>
  55. <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
  56. </MultiTrigger>
  57. </ControlTemplate.Triggers>
  58. </ControlTemplate>
  59. </Setter.Value>
  60. </Setter>
  61. </Style>
  62. </UserControl.Resources>
  63. <!--<UserControl.Triggers>
  64. <EventTrigger RoutedEvent="Loaded">
  65. <BeginStoryboard Storyboard="{StaticResource Open}"></BeginStoryboard>
  66. </EventTrigger>
  67. </UserControl.Triggers>-->
  68. <!--<Grid>
  69. <ListView
  70. Height="150"
  71. VerticalAlignment="Center"
  72. Background="Transparent"
  73. BorderThickness="0"
  74. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  75. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  76. <ListView.ItemsPanel>
  77. <ItemsPanelTemplate>
  78. <UniformGrid
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. Columns="10" />
  82. </ItemsPanelTemplate>
  83. </ListView.ItemsPanel>
  84. <ListView.ItemTemplate>
  85. <DataTemplate>
  86. <Border Background="Transparent">
  87. <Grid Height="100">
  88. <pry:MotorBottle
  89. Height="100"
  90. CurrentValue="{Binding Weight}"
  91. IsRun="{Binding RunStatus}"
  92. RenderTransformOrigin="0.5,0.5">
  93. <pry:MotorBottle.RenderTransform>
  94. <TransformGroup>
  95. <RotateTransform Angle="90" />
  96. </TransformGroup>
  97. </pry:MotorBottle.RenderTransform>
  98. </pry:MotorBottle>
  99. </Grid>
  100. </Border>
  101. </DataTemplate>
  102. </ListView.ItemTemplate>
  103. </ListView>
  104. <UniformGrid Columns="10" Visibility="Collapsed">
  105. <pry:MotorBottle
  106. Width="150"
  107. Height="100"
  108. CurrentValue="66"
  109. IsRun="True"
  110. RenderTransformOrigin="0.5,0.5">
  111. <pry:MotorBottle.RenderTransform>
  112. <TransformGroup>
  113. <RotateTransform Angle="90" />
  114. </TransformGroup>
  115. </pry:MotorBottle.RenderTransform>
  116. </pry:MotorBottle>
  117. <pry:MotorBottle
  118. Width="150"
  119. Height="100"
  120. CurrentValue="40"
  121. IsRun="True"
  122. RenderTransformOrigin="0.5,0.5">
  123. <pry:MotorBottle.RenderTransform>
  124. <TransformGroup>
  125. <RotateTransform Angle="90" />
  126. </TransformGroup>
  127. </pry:MotorBottle.RenderTransform>
  128. </pry:MotorBottle>
  129. <pry:MotorBottle
  130. Width="150"
  131. Height="100"
  132. CurrentValue="88"
  133. IsRun="True"
  134. RenderTransformOrigin="0.5,0.5">
  135. <pry:MotorBottle.RenderTransform>
  136. <TransformGroup>
  137. <RotateTransform Angle="90" />
  138. </TransformGroup>
  139. </pry:MotorBottle.RenderTransform>
  140. </pry:MotorBottle>
  141. <pry:MotorBottle
  142. Width="150"
  143. Height="100"
  144. CurrentValue="25"
  145. IsRun="True"
  146. RenderTransformOrigin="0.5,0.5">
  147. <pry:MotorBottle.RenderTransform>
  148. <TransformGroup>
  149. <RotateTransform Angle="90" />
  150. </TransformGroup>
  151. </pry:MotorBottle.RenderTransform>
  152. </pry:MotorBottle>
  153. <pry:MotorBottle
  154. Width="150"
  155. Height="100"
  156. CurrentValue="97"
  157. IsRun="True"
  158. RenderTransformOrigin="0.5,0.5">
  159. <pry:MotorBottle.RenderTransform>
  160. <TransformGroup>
  161. <RotateTransform Angle="90" />
  162. </TransformGroup>
  163. </pry:MotorBottle.RenderTransform>
  164. </pry:MotorBottle>
  165. <pry:MotorBottle
  166. Width="150"
  167. Height="100"
  168. CurrentValue="10"
  169. IsRun="True"
  170. RenderTransformOrigin="0.5,0.5">
  171. <pry:MotorBottle.RenderTransform>
  172. <TransformGroup>
  173. <RotateTransform Angle="90" />
  174. </TransformGroup>
  175. </pry:MotorBottle.RenderTransform>
  176. </pry:MotorBottle>
  177. <pry:MotorBottle
  178. Width="150"
  179. Height="100"
  180. CurrentValue="60"
  181. IsRun="True"
  182. RenderTransformOrigin="0.5,0.5">
  183. <pry:MotorBottle.RenderTransform>
  184. <TransformGroup>
  185. <RotateTransform Angle="90" />
  186. </TransformGroup>
  187. </pry:MotorBottle.RenderTransform>
  188. </pry:MotorBottle>
  189. <pry:MotorBottle
  190. Width="150"
  191. Height="100"
  192. CurrentValue="96"
  193. IsRun="True"
  194. RenderTransformOrigin="0.5,0.5">
  195. <pry:MotorBottle.RenderTransform>
  196. <TransformGroup>
  197. <RotateTransform Angle="90" />
  198. </TransformGroup>
  199. </pry:MotorBottle.RenderTransform>
  200. </pry:MotorBottle>
  201. </UniformGrid>
  202. <Grid x:Name="gr" Grid.Row="1">
  203. <pry:ConveyorBelt
  204. Grid.Row="1"
  205. Width="{Binding ElementName=gr, Path=ActualWidth}"
  206. Height="{Binding ElementName=gr, Path=ActualHeight}"
  207. Margin="0,0,400,0"
  208. ConveyorBeltWidth="70"
  209. Direction="1"
  210. StrokeBrush="Red"
  211. StrokeDashArray="1.5 1.5"
  212. StrokeFillBrush="Red"
  213. StrokeThickness="2" />
  214. </Grid>
  215. <UniformGrid Grid.Row="2" Columns="10">
  216. <pry:MotorBottle
  217. Width="150"
  218. Height="100"
  219. CurrentValue="89"
  220. IsRun="True"
  221. RenderTransformOrigin="0.5,0.5">
  222. <pry:MotorBottle.RenderTransform>
  223. <TransformGroup>
  224. <RotateTransform Angle="270" />
  225. <ScaleTransform ScaleX="-1" />
  226. </TransformGroup>
  227. </pry:MotorBottle.RenderTransform>
  228. </pry:MotorBottle>
  229. <pry:MotorBottle
  230. Width="150"
  231. Height="100"
  232. CurrentValue="13"
  233. IsRun="True"
  234. RenderTransformOrigin="0.5,0.5">
  235. <pry:MotorBottle.RenderTransform>
  236. <TransformGroup>
  237. <RotateTransform Angle="270" />
  238. <ScaleTransform ScaleX="-1" />
  239. </TransformGroup>
  240. </pry:MotorBottle.RenderTransform>
  241. </pry:MotorBottle>
  242. <pry:MotorBottle
  243. Width="150"
  244. Height="100"
  245. CurrentValue="31"
  246. IsRun="True"
  247. RenderTransformOrigin="0.5,0.5">
  248. <pry:MotorBottle.RenderTransform>
  249. <TransformGroup>
  250. <RotateTransform Angle="270" />
  251. <ScaleTransform ScaleX="-1" />
  252. </TransformGroup>
  253. </pry:MotorBottle.RenderTransform>
  254. </pry:MotorBottle>
  255. <pry:MotorBottle
  256. Width="150"
  257. Height="100"
  258. CurrentValue="96"
  259. IsRun="True"
  260. RenderTransformOrigin="0.5,0.5">
  261. <pry:MotorBottle.RenderTransform>
  262. <TransformGroup>
  263. <RotateTransform Angle="270" />
  264. <ScaleTransform ScaleX="-1" />
  265. </TransformGroup>
  266. </pry:MotorBottle.RenderTransform>
  267. </pry:MotorBottle>
  268. <pry:MotorBottle
  269. Width="150"
  270. Height="100"
  271. CurrentValue="80"
  272. IsRun="True"
  273. RenderTransformOrigin="0.5,0.5">
  274. <pry:MotorBottle.RenderTransform>
  275. <TransformGroup>
  276. <RotateTransform Angle="270" />
  277. <ScaleTransform ScaleX="-1" />
  278. </TransformGroup>
  279. </pry:MotorBottle.RenderTransform>
  280. </pry:MotorBottle>
  281. <pry:MotorBottle
  282. Width="150"
  283. Height="100"
  284. CurrentValue="26"
  285. IsRun="True"
  286. RenderTransformOrigin="0.5,0.5">
  287. <pry:MotorBottle.RenderTransform>
  288. <TransformGroup>
  289. <RotateTransform Angle="270" />
  290. <ScaleTransform ScaleX="-1" />
  291. </TransformGroup>
  292. </pry:MotorBottle.RenderTransform>
  293. </pry:MotorBottle>
  294. <pry:MotorBottle
  295. Width="150"
  296. Height="100"
  297. CurrentValue="20"
  298. IsRun="True"
  299. RenderTransformOrigin="0.5,0.5">
  300. <pry:MotorBottle.RenderTransform>
  301. <TransformGroup>
  302. <RotateTransform Angle="270" />
  303. <ScaleTransform ScaleX="-1" />
  304. </TransformGroup>
  305. </pry:MotorBottle.RenderTransform>
  306. </pry:MotorBottle>
  307. <pry:MotorBottle
  308. Width="150"
  309. Height="100"
  310. CurrentValue="100"
  311. IsRun="True"
  312. RenderTransformOrigin="0.5,0.5">
  313. <pry:MotorBottle.RenderTransform>
  314. <TransformGroup>
  315. <RotateTransform Angle="270" />
  316. <ScaleTransform ScaleX="-1" />
  317. </TransformGroup>
  318. </pry:MotorBottle.RenderTransform>
  319. </pry:MotorBottle>
  320. </UniformGrid>
  321. <Grid.RowDefinitions>
  322. <RowDefinition Height="0.5*" />
  323. <RowDefinition />
  324. <RowDefinition Height="0.5*" />
  325. </Grid.RowDefinitions>
  326. </Grid>-->
  327. <Grid>
  328. <Grid.RowDefinitions>
  329. <RowDefinition Height="0.5*" />
  330. <RowDefinition />
  331. <RowDefinition Height="0.5*" />
  332. </Grid.RowDefinitions>
  333. <!--#region 顶部料仓-->
  334. <Grid Name="TopGrid">
  335. <ListView Style="{DynamicResource ListViewStyle1}"
  336. x:Name="FListView"
  337. Height="{Binding ElementName=TopGrid, Path=ActualHeight}"
  338. VerticalAlignment="Center"
  339. Background="Transparent"
  340. BorderThickness="0"
  341. ItemsSource="{Binding TopDeviceCurrentStatuses}"
  342. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  343. <ListView.ItemsPanel>
  344. <ItemsPanelTemplate>
  345. <!--<WrapPanel Orientation="Horizontal" IsItemsHost="True"/>-->
  346. <UniformGrid
  347. HorizontalAlignment="Left"
  348. VerticalAlignment="Top"
  349. Columns="8"
  350. Rows="1" />
  351. </ItemsPanelTemplate>
  352. </ListView.ItemsPanel>
  353. <ListView.ItemTemplate>
  354. <DataTemplate>
  355. <Border Margin="5" Background="Transparent">
  356. <Grid Height="220">
  357. <Grid.RowDefinitions>
  358. <RowDefinition />
  359. <RowDefinition />
  360. <!--<RowDefinition Height="0.1*"/>-->
  361. </Grid.RowDefinitions>
  362. <TextBlock
  363. Margin="0,0,0,35"
  364. HorizontalAlignment="Center"
  365. VerticalAlignment="Bottom"
  366. FontSize="25"
  367. Foreground="#ffccd61f"
  368. Text="{Binding DeviceName}" />
  369. <StackPanel
  370. Grid.RowSpan="2"
  371. Panel.ZIndex="1"
  372. Margin="55,100,0,0"
  373. HorizontalAlignment="Center">
  374. <Path x:Name="path" Tag="{Binding DeviceName}" Visibility="Collapsed" Data="M -15,8 L 17,17 C 17,17 19,18 17,19 L 17,19 L -15,28 C -15,28 -17,28.2 -16,26 L -16,26 L -5,18 L -16,10 C -16,10 -17,8.5 -15,8 Z">
  375. <Path.RenderTransform>
  376. <TransformGroup>
  377. <RotateTransform Angle="90"/>
  378. <TranslateTransform Y="0"/>
  379. </TransformGroup>
  380. </Path.RenderTransform>
  381. <Path.Fill>
  382. <LinearGradientBrush>
  383. <LinearGradientBrush.RelativeTransform>
  384. <RotateTransform Angle="-15"/>
  385. </LinearGradientBrush.RelativeTransform>
  386. <GradientStop Color="LightGreen" Offset="0"/>
  387. <GradientStop Color="LightSeaGreen" Offset="0.6"/>
  388. </LinearGradientBrush>
  389. </Path.Fill>
  390. </Path>
  391. </StackPanel>
  392. <StackPanel
  393. Grid.Row="1"
  394. Margin="0,25,0,0"
  395. HorizontalAlignment="Center"
  396. Orientation="Horizontal">
  397. <TextBlock
  398. FontSize="20"
  399. Foreground="#FF0084FF"
  400. Text="{Binding Weight}" />
  401. <TextBlock
  402. FontSize="20"
  403. Foreground="#FF0084FF"
  404. Text=" kg" />
  405. </StackPanel>
  406. <StackPanel
  407. Grid.Row="1"
  408. Margin="0,70,0,0"
  409. HorizontalAlignment="Center"
  410. Orientation="Horizontal">
  411. <TextBlock
  412. FontSize="20"
  413. Foreground="#FF0084FF"
  414. Text="{Binding DeviceNum}" />
  415. <TextBlock
  416. FontSize="20"
  417. Foreground="#FF0084FF"
  418. Text=" 号仓" />
  419. </StackPanel>
  420. <Image
  421. Grid.RowSpan="2"
  422. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  423. Stretch="Fill" />
  424. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
  425. <pry:IcoButton
  426. Width="80"
  427. Height="{Binding ElementName=gr, Path=ActualHeight}"
  428. Margin="5,0,10,0"
  429. HorizontalAlignment="Center"
  430. VerticalAlignment="Center"
  431. Background="#112AB2E7"
  432. BorderThickness="0"
  433. Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  434. CommandParameter="{Binding DeviceName}"
  435. Tag="{Binding DeviceName}"
  436. Content="启动"
  437. EnterBackground="#222AB2E7"
  438. Foreground="#FF2AB2E7"
  439. IcoText="&#xe636;"
  440. Style="{StaticResource IcoButtonStyle}"
  441. />
  442. <pry:IcoButton
  443. Width="80"
  444. Height="{Binding ElementName=gr, Path=ActualHeight}"
  445. HorizontalAlignment="Center"
  446. VerticalAlignment="Center"
  447. Background="#11F53F62"
  448. BorderThickness="0"
  449. Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  450. CommandParameter="{Binding DeviceName}"
  451. Tag="{Binding DeviceName}"
  452. Content="停止"
  453. EnterBackground="#22F53F62"
  454. Foreground="#FFF53F62"
  455. IcoText="&#xe68e;"
  456. Style="{StaticResource IcoButtonStyle}" />
  457. </StackPanel>-->
  458. </Grid>
  459. </Border>
  460. </DataTemplate>
  461. </ListView.ItemTemplate>
  462. </ListView>
  463. </Grid>
  464. <!--#endregion-->
  465. <Grid x:Name="gr" Grid.Row="1" Margin="0,50,0,0">
  466. <pry:ConveyorBelt
  467. Grid.Row="1"
  468. Width="{Binding ElementName=gr, Path=ActualWidth}"
  469. Height="{Binding ElementName=gr, Path=ActualHeight}"
  470. Margin="10,0,30,0"
  471. ConveyorBeltWidth="70"
  472. Direction="2"
  473. StrokeBrush="#00BEFA"
  474. StrokeDashArray="1.5 1.5"
  475. StrokeFillBrush="#00BEFA"
  476. StrokeThickness="2" />
  477. </Grid>
  478. <!--#region 底部料仓-->
  479. <Grid Grid.Row="2">
  480. <ListView
  481. Style="{DynamicResource ListViewStyle1}"
  482. x:Name="buttonListView"
  483. VerticalAlignment="Top"
  484. Background="Transparent"
  485. BorderThickness="0"
  486. ItemsSource="{Binding BottomDeviceCurrentStatuses}"
  487. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  488. <ListView.ItemsPanel>
  489. <ItemsPanelTemplate>
  490. <UniformGrid
  491. HorizontalAlignment="Left"
  492. VerticalAlignment="Top"
  493. Columns="8"
  494. Rows="1" />
  495. </ItemsPanelTemplate>
  496. </ListView.ItemsPanel>
  497. <ListView.ItemTemplate>
  498. <DataTemplate>
  499. <Border Margin="5" Background="Transparent">
  500. <Grid Height="220">
  501. <Grid.RowDefinitions>
  502. <RowDefinition/>
  503. <RowDefinition/>
  504. <!--<RowDefinition Height="0.1*"/>-->
  505. </Grid.RowDefinitions>
  506. <TextBlock
  507. Margin="0,0,0,35"
  508. HorizontalAlignment="Center"
  509. VerticalAlignment="Bottom"
  510. FontSize="25"
  511. Foreground="#ffccd61f"
  512. Text="{Binding DeviceName}" />
  513. <StackPanel
  514. Grid.RowSpan="2"
  515. Panel.ZIndex="1"
  516. Margin="55,100,0,0"
  517. HorizontalAlignment="Center">
  518. <Path x:Name="path1" Tag="{Binding DeviceName}" Visibility="Collapsed" Data="M -15,8 L 17,17 C 17,17 19,18 17,19 L 17,19 L -15,28 C -15,28 -17,28.2 -16,26 L -16,26 L -5,18 L -16,10 C -16,10 -17,8.5 -15,8 Z">
  519. <Path.RenderTransform>
  520. <TransformGroup>
  521. <RotateTransform Angle="90"/>
  522. <TranslateTransform Y="0"/>
  523. </TransformGroup>
  524. </Path.RenderTransform>
  525. <Path.Fill>
  526. <LinearGradientBrush>
  527. <LinearGradientBrush.RelativeTransform>
  528. <RotateTransform Angle="-15"/>
  529. </LinearGradientBrush.RelativeTransform>
  530. <GradientStop Color="LightGreen" Offset="0"/>
  531. <GradientStop Color="LightSeaGreen" Offset="0.5"/>
  532. </LinearGradientBrush>
  533. </Path.Fill>
  534. </Path>
  535. </StackPanel>
  536. <StackPanel
  537. Grid.Row="1"
  538. Margin="0,25,0,0"
  539. HorizontalAlignment="Center"
  540. Orientation="Horizontal">
  541. <TextBlock
  542. FontSize="20"
  543. Foreground="#FF0084FF"
  544. Text="{Binding Weight}" />
  545. <TextBlock
  546. FontSize="20"
  547. Foreground="#FF0084FF"
  548. Text=" kg" />
  549. </StackPanel>
  550. <StackPanel
  551. Grid.Row="1"
  552. Margin="0,70,0,0"
  553. HorizontalAlignment="Center"
  554. Orientation="Horizontal">
  555. <TextBlock
  556. FontSize="20"
  557. Foreground="#FF0084FF"
  558. Text="{Binding DeviceNum}" />
  559. <TextBlock
  560. FontSize="20"
  561. Foreground="#FF0084FF"
  562. Text=" 号仓" />
  563. </StackPanel>
  564. <Image
  565. Grid.RowSpan="2"
  566. Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
  567. Stretch="Fill" />
  568. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
  569. <pry:IcoButton
  570. Width="80"
  571. Height="{Binding ElementName=gr, Path=ActualHeight}"
  572. Margin="5,0,10,0"
  573. HorizontalAlignment="Center"
  574. VerticalAlignment="Center"
  575. Background="#112AB2E7"
  576. BorderThickness="0"
  577. Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  578. CommandParameter="{Binding DeviceName}"
  579. Tag="{Binding DeviceName}"
  580. Content="启动"
  581. EnterBackground="#222AB2E7"
  582. Foreground="#FF2AB2E7"
  583. IcoText="&#xe636;"
  584. Style="{StaticResource IcoButtonStyle}"
  585. />
  586. <pry:IcoButton
  587. Width="80"
  588. Height="{Binding ElementName=gr, Path=ActualHeight}"
  589. HorizontalAlignment="Center"
  590. VerticalAlignment="Center"
  591. Background="#11F53F62"
  592. BorderThickness="0"
  593. Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
  594. CommandParameter="{Binding DeviceName}"
  595. Tag="{Binding DeviceName}"
  596. Content="停止"
  597. EnterBackground="#22F53F62"
  598. Foreground="#FFF53F62"
  599. IcoText="&#xe68e;"
  600. Style="{StaticResource IcoButtonStyle}" />
  601. </StackPanel>-->
  602. </Grid>
  603. </Border>
  604. </DataTemplate>
  605. </ListView.ItemTemplate>
  606. </ListView>
  607. </Grid>
  608. <!--#endregion-->
  609. </Grid>
  610. </UserControl>