71 lines
3.7 KiB
XML
71 lines
3.7 KiB
XML
<UserControl x:Class="VisionCommonUI.CameraLightSettingViewEachCh"
|
|
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:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
x:Name="uc"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<!--Contents-->
|
|
<Grid Grid.Row="1" VerticalAlignment="Center">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="75"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="0.5*"/>
|
|
<ColumnDefinition Width="1.5*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Border Grid.Column="0" Margin="5">
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Border x:Name="bdChColor"
|
|
Width="10" Height="10" Margin="8,9,8,8"/>
|
|
<TextBlock x:Name="tbChName"
|
|
Style="{StaticResource styleTextBlockName}"
|
|
FontSize="14"/>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="1" Margin="5">
|
|
<CheckBox x:Name="cbOnOff"
|
|
Style="{StaticResource styleToggleSwitch}"
|
|
Checked="Checked_LightOn" Unchecked="Checked_LightOff"/>
|
|
</Border>
|
|
<Border Grid.Column="2" Margin="5">
|
|
<TextBox Text="{Binding ElementName=SliderLED, Path=Value, UpdateSourceTrigger=PropertyChanged}"
|
|
Style="{StaticResource styleTextBoxSmall}"/>
|
|
</Border>
|
|
<Border Grid.Column="3" Margin="5">
|
|
<StackPanel Orientation="Vertical"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<RepeatButton x:Name="repeatBtnPlus"
|
|
Style="{StaticResource styleBtnLightPlusMinus}"
|
|
Click="OnLightPlusBtnClicked"
|
|
Interval="100" Delay="250">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_plus.png"/>
|
|
</RepeatButton>
|
|
<RepeatButton x:Name="repeatBtnMinus"
|
|
Style="{StaticResource styleBtnLightPlusMinus}"
|
|
Click="OnLightMinusBtnClicked"
|
|
Interval="100" Delay="250">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_minus.png"/>
|
|
</RepeatButton>
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Grid.Column="4" Margin="5">
|
|
<Slider Width="160" Height="30" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"
|
|
x:Name="SliderLED" IsSnapToTickEnabled="True"
|
|
ValueChanged="SliderValueChanged"/>
|
|
</Border>
|
|
<Border Grid.Column="5" Margin="5">
|
|
<TextBlock x:Name="tbLevelRange"
|
|
Style="{StaticResource styleTextBlockName}"
|
|
FontSize="14"/>
|
|
</Border>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl> |