2026-01-26 18:56:53 +09:00

24 lines
1.2 KiB
XML

<UserControl x:Class="AuroraLaser.UCLaserTest"
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:AuroraLaser"
d:DataContext="{d:DesignInstance Type=local:UCLaserTestViewModel}"
mc:Ignorable="d"
d:DesignHeight="50" d:DesignWidth="300">
<UserControl.Resources>
<!--<view:BoolConverter x:Key="convColor" TrueValue="White" FalseValue="Red"/>-->
<local:LaserColorConverter x:Key="convColor"/>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="2*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Ellipse Grid.Column="0" Width="30" HorizontalAlignment="Left" Fill="{Binding IsNormal, Converter={StaticResource convColor}}" ></Ellipse>
<Button Grid.Column="1" FontSize="20" Command="{Binding CMD_LASER}">Laser On/Off</Button>
</Grid>
</UserControl>