| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <UserControl
- x:Class="SHJX.Service.Librarys.manual.LiquidOperate"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:command="clr-namespace:SHJX.Service.Common.Extend;assembly=SHJX.Service.Common"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:SHJX.Service.Librarys.manual"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- d:DesignHeight="100"
- d:DesignWidth="100"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <command:ObjectConvert x:Key="objectConverter" />
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid HorizontalAlignment="Center">
- <GroupBox
- Name="head"
- Grid.Row="1"
- Width="100"
- Height="100"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- FontSize="12"
- Foreground="#99CCCC">
- <UniformGrid Columns="1" Rows="2" Margin="-6,0,0,0">
- <TextBox
- x:Name="RemoveValue"
- Width="85"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="0" />
- <UniformGrid Columns="2" Rows="1">
- <Button
- x:Name="PumpIn"
- Width="40"
- Height="20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.IsWaiting="False"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding PumpInLiquidCommand}"
- Content="吸液"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}">
- <Button.CommandParameter>
- <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
- <MultiBinding.Bindings>
- <Binding ElementName="head" Path="Header" />
- <Binding ElementName="RemoveValue" Path="Text" />
- </MultiBinding.Bindings>
- </MultiBinding>
- </Button.CommandParameter>
- </Button>
- <Button
- x:Name="PumpOut"
- Width="40"
- Height="20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.IsWaiting="{Binding OutLiquidWaiting}"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding PumpOutLiquidCommand}"
- Content="泵液"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}">
- <Button.CommandParameter>
- <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
- <MultiBinding.Bindings>
- <Binding ElementName="head" Path="Header" />
- <Binding ElementName="RemoveValue" Path="Text" />
- </MultiBinding.Bindings>
- </MultiBinding>
- </Button.CommandParameter>
- </Button>
- </UniformGrid>
- </UniformGrid>
- </GroupBox>
- </Grid>
- </UserControl>
|