ManualOperation.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.manual.ManualOperation"
  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. d:DesignHeight="100"
  11. d:DesignWidth="100"
  12. mc:Ignorable="d">
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <command:ObjectConvert x:Key="objectConverter" />
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
  18. </ResourceDictionary.MergedDictionaries>
  19. </ResourceDictionary>
  20. </UserControl.Resources>
  21. <Grid>
  22. <GroupBox
  23. Name="head"
  24. Grid.Row="1"
  25. Width="100"
  26. Height="100"
  27. HorizontalAlignment="Center"
  28. VerticalAlignment="Center"
  29. pu:GroupBoxHelper.CornerRadius="8"
  30. pu:GroupBoxHelper.IsSplitLineVisible="True"
  31. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  32. BorderBrush="#99CCCC"
  33. FontSize="13"
  34. Foreground="#99CCCC">
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition />
  38. <RowDefinition />
  39. </Grid.RowDefinitions>
  40. <Grid Grid.Row="0" Margin="-5,0,0,0">
  41. <TextBox
  42. x:Name="RemoveValue"
  43. Width="85"
  44. Height="25"
  45. pu:TextBoxHelper.CornerRadius="10"
  46. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  47. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  48. BorderBrush="#99CCCC"
  49. Foreground="#99CCCC"
  50. Text="0" Cursor="IBeam" />
  51. </Grid>
  52. <UniformGrid
  53. Grid.Row="1"
  54. Columns="2"
  55. Rows="1" Margin="-5,0,0,0">
  56. <Button
  57. Width="40"
  58. Height="20"
  59. pu:ButtonHelper.ClickStyle="Sink"
  60. pu:ButtonHelper.CornerRadius="6"
  61. pu:ButtonHelper.HoverBrush="#66CCCC"
  62. pu:ButtonHelper.WaitingContent="{x:Null}"
  63. Background="#99CCCC"
  64. Command="{Binding ForwardCommand}"
  65. Content="正转"
  66. Cursor="Hand"
  67. FontFamily="{StaticResource FontAwesome}"
  68. FontSize="13">
  69. <Button.CommandParameter>
  70. <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
  71. <MultiBinding.Bindings>
  72. <Binding ElementName="head" Path="Header" />
  73. <Binding ElementName="RemoveValue" Path="Text" />
  74. </MultiBinding.Bindings>
  75. </MultiBinding>
  76. </Button.CommandParameter>
  77. </Button>
  78. <Button
  79. Width="40"
  80. Height="20"
  81. pu:ButtonHelper.ClickStyle="Sink"
  82. pu:ButtonHelper.CornerRadius="6"
  83. pu:ButtonHelper.HoverBrush="#66CCCC"
  84. pu:ButtonHelper.WaitingContent="{x:Null}"
  85. Background="#99CCCC"
  86. Command="{Binding InversionCommand}"
  87. Content="反转"
  88. Cursor="Hand"
  89. FontFamily="{StaticResource FontAwesome}"
  90. FontSize="13">
  91. <Button.CommandParameter>
  92. <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
  93. <MultiBinding.Bindings>
  94. <Binding ElementName="head" Path="Header" />
  95. <Binding ElementName="RemoveValue" Path="Text" />
  96. </MultiBinding.Bindings>
  97. </MultiBinding>
  98. </Button.CommandParameter>
  99. </Button>
  100. </UniformGrid>
  101. </Grid>
  102. </GroupBox>
  103. </Grid>
  104. </UserControl>