2026-06-05 13:44:39 +09:00

29 lines
1.9 KiB
XML

<UserControl x:Class="AuroraLight.View.UCLight"
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"
xmlns:local="clr-namespace:AuroraLight.View"
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls;assembly=AuroraUIComponent"
mc:Ignorable="d"
d:DesignHeight="50" d:DesignWidth="800" Background="Black" Name="uc"
d:DataContext="{d:DesignInstance Type=local:UCLightViewModel}"
>
<Grid>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="10" Foreground="White" FontSize="17" VerticalAlignment="Stretch" TextAlignment="Center" HorizontalAlignment="Stretch">Channel</TextBlock>
<usercontrols:UCKeyComboBox KeyText="Light Channel" ItemList="{Binding lsChannel}"
ValueItem="{Binding cbChannel}" KeyTextFgColor="White" KeyTextBgColor="Black"/>
<Slider Width="300" Height="40" Margin="10,10,5,5" Value="{Binding nSliderValue}" Maximum="{Binding nSliderMax}"></Slider>
<TextBox Width="70" Height="30" Margin="10,5,5,5" FontSize="15" Text="{Binding nSliderValue}"/>
<Button Width="70" Height="40" Margin="10" Command="{Binding CMD_LightOnOff}" Content="{Binding strButtonOnOff}"></Button>
<Button Width="70" Height="40" Margin="10" Command="{Binding CMD_ALLLightOn}" Content="ALL ON"></Button>
<Button Width="70" Height="40" Margin="10" Command="{Binding CMD_ALLLightOff}" Content="ALL OFF"></Button>
</StackPanel>
</Grid>
</UserControl>