LiquidOperate.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.manual.LiquidOperate"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:command="clr-namespace:SHJX.Service.Common.Extend;assembly=SHJX.Service.Common"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:SHJX.Service.Librarys.manual"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  10. HorizontalAlignment="Center"
  11. VerticalAlignment="Center"
  12. d:DesignHeight="100"
  13. d:DesignWidth="100"
  14. mc:Ignorable="d">
  15. <UserControl.Resources>
  16. <ResourceDictionary>
  17. <command:ObjectConvert x:Key="objectConverter" />
  18. <ResourceDictionary.MergedDictionaries>
  19. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  20. </ResourceDictionary.MergedDictionaries>
  21. </ResourceDictionary>
  22. </UserControl.Resources>
  23. <Grid HorizontalAlignment="Center">
  24. <GroupBox
  25. Name="head"
  26. Grid.Row="1"
  27. Width="100"
  28. Height="100"
  29. HorizontalAlignment="Center"
  30. VerticalAlignment="Center"
  31. pu:GroupBoxHelper.CornerRadius="8"
  32. pu:GroupBoxHelper.IsSplitLineVisible="True"
  33. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  34. BorderBrush="#99CCCC"
  35. FontSize="12"
  36. Foreground="#99CCCC">
  37. <UniformGrid Columns="1" Rows="2" Margin="-6,0,0,0">
  38. <TextBox
  39. x:Name="RemoveValue"
  40. Width="85"
  41. Height="25"
  42. HorizontalAlignment="Center"
  43. VerticalAlignment="Center"
  44. pu:TextBoxHelper.CornerRadius="10"
  45. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  46. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  47. BorderBrush="#99CCCC"
  48. Foreground="#99CCCC"
  49. Text="0" />
  50. <UniformGrid Columns="2" Rows="1">
  51. <Button
  52. x:Name="PumpIn"
  53. Width="40"
  54. Height="20"
  55. HorizontalAlignment="Center"
  56. VerticalAlignment="Center"
  57. pu:ButtonHelper.CornerRadius="6"
  58. pu:ButtonHelper.HoverBrush="#66CCCC"
  59. pu:ButtonHelper.IsWaiting="False"
  60. pu:ButtonHelper.WaitingContent="{x:Null}"
  61. Background="#99CCCC"
  62. Command="{Binding PumpInLiquidCommand}"
  63. Content="吸液"
  64. Cursor="Hand"
  65. FontFamily="{StaticResource FontAwesome}">
  66. <Button.CommandParameter>
  67. <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
  68. <MultiBinding.Bindings>
  69. <Binding ElementName="head" Path="Header" />
  70. <Binding ElementName="RemoveValue" Path="Text" />
  71. </MultiBinding.Bindings>
  72. </MultiBinding>
  73. </Button.CommandParameter>
  74. </Button>
  75. <Button
  76. x:Name="PumpOut"
  77. Width="40"
  78. Height="20"
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. pu:ButtonHelper.CornerRadius="6"
  82. pu:ButtonHelper.HoverBrush="#66CCCC"
  83. pu:ButtonHelper.IsWaiting="{Binding OutLiquidWaiting}"
  84. pu:ButtonHelper.WaitingContent="{x:Null}"
  85. Background="#99CCCC"
  86. Command="{Binding PumpOutLiquidCommand}"
  87. Content="泵液"
  88. Cursor="Hand"
  89. FontFamily="{StaticResource FontAwesome}">
  90. <Button.CommandParameter>
  91. <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
  92. <MultiBinding.Bindings>
  93. <Binding ElementName="head" Path="Header" />
  94. <Binding ElementName="RemoveValue" Path="Text" />
  95. </MultiBinding.Bindings>
  96. </MultiBinding>
  97. </Button.CommandParameter>
  98. </Button>
  99. </UniformGrid>
  100. </UniformGrid>
  101. </GroupBox>
  102. </Grid>
  103. </UserControl>