| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <UserControl
- x:Class="SHJX.Service.Librarys.manual.ManualOperation"
- 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"
- 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>
- <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="13"
- Foreground="#99CCCC">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="-5,0,0,0">
- <TextBox
- x:Name="RemoveValue"
- Width="85"
- Height="25"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Text="0" Cursor="IBeam" />
- </Grid>
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1" Margin="-5,0,0,0">
- <Button
- Width="40"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding ForwardCommand}"
- Content="正转"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- FontSize="13">
- <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
- Width="40"
- Height="20"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="6"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#99CCCC"
- Command="{Binding InversionCommand}"
- Content="反转"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- FontSize="13">
- <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>
- </Grid>
- </GroupBox>
- </Grid>
- </UserControl>
|