| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <UserControl
- x:Class="SHJX.Service.Library.Views.ManualControl.ManualSettingControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:convert="clr-namespace:CustomUI.Converters"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:SHJX.Service.Library.Views.ManualControl"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <convert:ObjectConvert x:Key="objectConverter" />
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Panuon.UI.Silver;component/Control.xaml" />
- <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <GroupBox
- x:Name="gb"
- Width="140"
- Height="120"
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="LightGray">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBox
- x:Name="txt_setting"
- Grid.Row="0"
- Width="130"
- Height="30"
- pu:TextBoxHelper.CornerRadius="6"
- pu:TextBoxHelper.FocusedBorderBrush="#6452A4"
- pu:TextBoxHelper.FocusedShadowColor="#6452A4"
- pu:TextBoxHelper.Watermark="0"
- Cursor="IBeam" />
- <UniformGrid
- Grid.Row="1"
- Columns="2"
- Rows="1">
- <Button
- x:Name="btn_left"
- Width="60"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#6452A4"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}">
- <Button.CommandParameter>
- <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
- <MultiBinding.Bindings>
- <Binding ElementName="gb" Path="Header" />
- <Binding ElementName="txt_setting" Path="Text" />
- </MultiBinding.Bindings>
- </MultiBinding>
- </Button.CommandParameter>
- </Button>
- <Button
- x:Name="btn_right"
- Width="60"
- Height="25"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="10"
- pu:ButtonHelper.HoverBrush="#929FDE"
- pu:ButtonHelper.WaitingContent="{x:Null}"
- Background="#6452A4"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}">
- <Button.CommandParameter>
- <MultiBinding Converter="{StaticResource ResourceKey=objectConverter}" Mode="TwoWay">
- <MultiBinding.Bindings>
- <Binding ElementName="gb" Path="Header" />
- <Binding ElementName="txt_setting" Path="Text" />
- </MultiBinding.Bindings>
- </MultiBinding>
- </Button.CommandParameter>
- </Button>
- </UniformGrid>
- </Grid>
- </GroupBox>
- </UserControl>
|