|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702 |
- <UserControl
- x:Class="BPASmartClient.JXJFoodBigStation.View.HardwareStatusView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.JXJFoodBigStation.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
- d:DesignHeight="1080"
- d:DesignWidth="1920"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:HardwareStatusViewModel />
- </UserControl.DataContext>
- <UserControl.Resources>
- <PathGeometry x:Key="move" Figures="M 0,0 L 0,20"/>
- <Storyboard x:Key="Open" >
- <DoubleAnimationUsingPath Duration="0:0:1" PathGeometry="{StaticResource move}" RepeatBehavior="Forever" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[1].(Y)" Source="Y"></DoubleAnimationUsingPath>
- </Storyboard>
- <SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Static.Border" Color="#FFABADB3"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Border" Color="#FFD9D9D9"/>
- <Style x:Key="ListViewStyle1" TargetType="{x:Type ListView}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListView}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- </UserControl.Resources>
- <!--<UserControl.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard Storyboard="{StaticResource Open}"></BeginStoryboard>
-
- </EventTrigger>
- </UserControl.Triggers>-->
- <!--<Grid>
-
- <ListView
- Height="150"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding TopDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Columns="10" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Background="Transparent">
- <Grid Height="100">
- <pry:MotorBottle
- Height="100"
- CurrentValue="{Binding Weight}"
- IsRun="{Binding RunStatus}"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <UniformGrid Columns="10" Visibility="Collapsed">
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="66"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="40"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="88"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="25"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="97"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="10"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="60"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="96"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- </UniformGrid>
-
- <Grid x:Name="gr" Grid.Row="1">
-
- <pry:ConveyorBelt
- Grid.Row="1"
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="0,0,400,0"
- ConveyorBeltWidth="70"
- Direction="1"
- StrokeBrush="Red"
- StrokeDashArray="1.5 1.5"
- StrokeFillBrush="Red"
- StrokeThickness="2" />
- </Grid>
-
- <UniformGrid Grid.Row="2" Columns="10">
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="89"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="13"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="31"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="96"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="80"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="26"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="20"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- <pry:MotorBottle
- Width="150"
- Height="100"
- CurrentValue="100"
- IsRun="True"
- RenderTransformOrigin="0.5,0.5">
- <pry:MotorBottle.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="270" />
- <ScaleTransform ScaleX="-1" />
- </TransformGroup>
- </pry:MotorBottle.RenderTransform>
- </pry:MotorBottle>
-
- </UniformGrid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="0.5*" />
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- </Grid.RowDefinitions>
- </Grid>-->
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.5*" />
- <RowDefinition />
- <RowDefinition Height="0.5*" />
- </Grid.RowDefinitions>
-
- <!--#region 顶部料仓-->
- <Grid Name="TopGrid">
- <ListView Style="{DynamicResource ListViewStyle1}"
- x:Name="FListView"
- Height="{Binding ElementName=TopGrid, Path=ActualHeight}"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding TopDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <!--<WrapPanel Orientation="Horizontal" IsItemsHost="True"/>-->
- <UniformGrid
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Columns="6"
- Rows="1" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid Height="220">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <!--<RowDefinition Height="0.1*"/>-->
- </Grid.RowDefinitions>
- <!--<TextBox
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Text="{Binding DeviceName}">
-
- </TextBox>-->
- <TextBlock
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding DeviceName}"
- />
- <StackPanel
- Grid.RowSpan="2"
- Panel.ZIndex="1"
- Margin="55,100,0,0"
- HorizontalAlignment="Center">
-
- <Path x:Name="path" Tag="{Binding DeviceName}" Visibility="Hidden" 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">
- <Path.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90"/>
- <TranslateTransform Y="0"/>
- </TransformGroup>
- </Path.RenderTransform>
- <Path.Fill>
- <LinearGradientBrush>
- <LinearGradientBrush.RelativeTransform>
- <RotateTransform Angle="-15"/>
- </LinearGradientBrush.RelativeTransform>
- <GradientStop Color="LightGreen" Offset="0"/>
- <GradientStop Color="LightSeaGreen" Offset="0.6"/>
- </LinearGradientBrush>
- </Path.Fill>
- </Path>
- </StackPanel>
-
-
-
- <StackPanel
- Grid.Row="1"
- Margin="0,5,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" kg" />
-
- </StackPanel>
-
-
- <StackPanel
- Grid.Row="1"
- Margin="0,45,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding DeviceNum}" />
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" 号仓" />
- </StackPanel>
-
- <Button Grid.Row="2"
- Width="200"
- Height="40"
- Margin="5,0,5,0"
- Command="{Binding DataContext.UpdateRawMaterName, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}}"
- CommandParameter="{Binding DeviceName}"
- Content="修改原料名称"
- FontSize="20"
- Panel.ZIndex="0"
- Style="{StaticResource ImageButtonStyle}"></Button>
-
-
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
-
- <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
- <pry:IcoButton
-
- Width="80"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="5,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="#112AB2E7"
- BorderThickness="0"
- Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
- CommandParameter="{Binding DeviceName}"
- Tag="{Binding DeviceName}"
-
- Content="启动"
- EnterBackground="#222AB2E7"
- Foreground="#FF2AB2E7"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}"
- />
- <pry:IcoButton
-
- Width="80"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="#11F53F62"
- BorderThickness="0"
- Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
- CommandParameter="{Binding DeviceName}"
- Tag="{Binding DeviceName}"
-
- Content="停止"
- EnterBackground="#22F53F62"
- Foreground="#FFF53F62"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}" />
- </StackPanel>-->
-
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- <!--#endregion-->
-
- <Grid x:Name="gr" Grid.Row="1" Margin="0,50,0,0">
- <pry:ConveyorBelt
- Grid.Row="1"
- Width="{Binding ElementName=gr, Path=ActualWidth}"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="10,0,30,0"
- ConveyorBeltWidth="70"
- Direction="2"
- StrokeBrush="#00BEFA"
- StrokeDashArray="1.5 1.5"
- StrokeFillBrush="#00BEFA"
- StrokeThickness="2" />
- </Grid>
-
- <!--#region 底部料仓-->
- <Grid Grid.Row="2">
- <ListView
- Style="{DynamicResource ListViewStyle1}"
- x:Name="buttonListView"
- VerticalAlignment="Top"
- Background="Transparent"
- BorderThickness="0"
- ItemsSource="{Binding BottomDeviceCurrentStatuses}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <UniformGrid
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- Columns="6"
- Rows="1" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
-
- <ListView.ItemTemplate>
- <DataTemplate>
- <Border Margin="5" Background="Transparent">
- <Grid Height="220">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <!--<RowDefinition Height="0.1*"/>-->
- </Grid.RowDefinitions>
-
- <TextBlock
- Margin="0,0,0,35"
- HorizontalAlignment="Center"
- VerticalAlignment="Bottom"
- FontSize="25"
- Foreground="#ffccd61f"
- Text="{Binding DeviceName}" />
- <StackPanel
- Grid.RowSpan="2"
- Panel.ZIndex="1"
- Margin="55,100,0,0"
- HorizontalAlignment="Center">
-
- <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">
- <Path.RenderTransform>
- <TransformGroup>
- <RotateTransform Angle="90"/>
- <TranslateTransform Y="0"/>
- </TransformGroup>
- </Path.RenderTransform>
- <Path.Fill>
- <LinearGradientBrush>
- <LinearGradientBrush.RelativeTransform>
- <RotateTransform Angle="-15"/>
- </LinearGradientBrush.RelativeTransform>
- <GradientStop Color="LightGreen" Offset="0"/>
- <GradientStop Color="LightSeaGreen" Offset="0.5"/>
- </LinearGradientBrush>
- </Path.Fill>
- </Path>
- </StackPanel>
- <StackPanel
- Grid.Row="1"
- Margin="0,5,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding Weight}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" kg" />
- </StackPanel>
-
-
- <StackPanel
- Grid.Row="1"
- Margin="0,45,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text="{Binding DeviceNum}" />
-
- <TextBlock
- FontSize="20"
- Foreground="#FF0084FF"
- Text=" 号仓" />
- </StackPanel>
- <Button Grid.Row="2"
- Width="200"
- Height="40"
- Margin="5,0,5,0"
- Command="{Binding DataContext.UpdateRawMaterName, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}}"
- CommandParameter="{Binding DeviceName}"
- Content="修改原料名称"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}"></Button>
- <Image
- Grid.RowSpan="2"
- Source="/BPASmartClient.CustomResource;component/Image/光柱.png"
- Stretch="Fill" />
- <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
- <pry:IcoButton
-
- Width="80"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- Margin="5,0,10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="#112AB2E7"
- BorderThickness="0"
- Command="{Binding DataContext.StartCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
- CommandParameter="{Binding DeviceName}"
- Tag="{Binding DeviceName}"
-
- Content="启动"
- EnterBackground="#222AB2E7"
- Foreground="#FF2AB2E7"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}"
- />
- <pry:IcoButton
-
- Width="80"
- Height="{Binding ElementName=gr, Path=ActualHeight}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="#11F53F62"
- BorderThickness="0"
- Command="{Binding DataContext.StopCommand, RelativeSource={RelativeSource AncestorType=ListBox, Mode=FindAncestor}}"
- CommandParameter="{Binding DeviceName}"
- Tag="{Binding DeviceName}"
-
- Content="停止"
- EnterBackground="#22F53F62"
- Foreground="#FFF53F62"
- IcoText=""
- Style="{StaticResource IcoButtonStyle}" />
- </StackPanel>-->
-
-
- </Grid>
- </Border>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- <!--#endregion-->
-
- </Grid>
- </UserControl>
|