75 lines
3.5 KiB
XML
75 lines
3.5 KiB
XML
<UserControl x:Class="VisionCommonUI.UCContentSlider"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:VisionCommonUI"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="100" d:DesignWidth="400">
|
|
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<view:SharedResourceDictionary Source="pack://application:,,,/VisionCommonUI;component/Styles/VisionResources.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1.5*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" Margin="2">
|
|
<ContentControl Content="{Binding InnerContent}"/>
|
|
</Border>
|
|
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="70"/>
|
|
<ColumnDefinition Width="30"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="30"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" Margin="5, 0">
|
|
<TextBox Text="{Binding ElementName=sliderControl, Path=Value, UpdateSourceTrigger=PropertyChanged}"
|
|
Style="{StaticResource styleTextBoxSmall}"
|
|
HorizontalContentAlignment="Center"
|
|
HorizontalAlignment="Center"
|
|
TextAlignment="Center"/>
|
|
</Border>
|
|
|
|
<Border Grid.Column="1" Margin="2, 0">
|
|
<RepeatButton x:Name="repeatBtnMinus"
|
|
Style="{StaticResource styleBtnLightPlusMinus}"
|
|
Interval="100" Delay="250"
|
|
Click="OnMinusBtnClicked">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_minus.png"/>
|
|
</RepeatButton>
|
|
</Border>
|
|
<Border Grid.Column="2">
|
|
<Slider x:Name="sliderControl" VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
|
|
Minimum="{Binding MinValue}" Maximum="{Binding MaxValue}"
|
|
Value="{Binding KeyValue}"
|
|
IsSnapToTickEnabled="True"
|
|
TickPlacement="BottomRight" TickFrequency="{Binding TickFrequency}"
|
|
SmallChange="1" LargeChange="10"/>
|
|
</Border>
|
|
<Border Grid.Column="3" Margin="2, 0">
|
|
<RepeatButton x:Name="repeatBtnPlus"
|
|
Style="{StaticResource styleBtnLightPlusMinus}"
|
|
Interval="100" Delay="250"
|
|
Click="OnPlusBtnClicked">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_plus.png"/>
|
|
</RepeatButton>
|
|
</Border>
|
|
</Grid>
|
|
|
|
</Grid>
|
|
</UserControl>
|