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

141 lines
7.1 KiB
XML

<UserControl x:Class="AuroraLaser.IPG.Views.LaserIPG_Header"
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.IPG.Views"
mc:Ignorable="d"
d:DesignHeight="150" d:DesignWidth="830">
<UserControl.Resources>
<ResourceDictionary>
<!--<ResourceDictionary.MergedDictionaries>
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora" <aurora:SharedResourceDictionary Source="pack://application:,,,/AuroraUIComponent;component/Style/Generic.xaml"/>
</ResourceDictionary.MergedDictionaries>-->
<!-- 상태등 스타일 -->
<Style x:Key="StatusLightStyle" TargetType="Ellipse">
<Setter Property="Width" Value="20"/>
<Setter Property="Height" Value="20"/>
<Setter Property="Stroke" Value="#FFAAAAAA"/>
<Setter Property="StrokeThickness" Value="2"/>
<Setter Property="Margin" Value="0,0,8,0"/>
</Style>
<Style x:Key="AlarmLightStyle" TargetType="Ellipse">
<Setter Property="Width" Value="12"/>
<Setter Property="Height" Value="12"/>
<Setter Property="Fill" Value="#FFB22222"/>
<!-- 진한 빨강 -->
<Setter Property="Stroke" Value="#FFAAAAAA"/>
<Setter Property="StrokeThickness" Value="1"/>
<Setter Property="Margin" Value="0,0,8,0"/>
</Style>
<!-- 패널 스타일 -->
<Style x:Key="PanelBorderStyle" TargetType="Border">
<Setter Property="BorderBrush" Value="#FF666666"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Background" Value="#FF2C2C2C"/>
<!-- 어두운 회색 -->
<Setter Property="Padding" Value="15"/>
</Style>
<Style x:Key="DisplayGroupStyle" TargetType="Border">
<Setter Property="BorderBrush" Value="#FF666666"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Background" Value="#FF2C2C2C"/>
<Setter Property="Padding" Value="10"/>
<Setter Property="Margin" Value="0,0,20,0"/>
</Style>
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="White"/>
</Style>
<!-- 값 출력용 TextBox 스타일 -->
<Style x:Key="DataValueStyle" TargetType="TextBox">
<Setter Property="Background" Value="#FF1E1E1E"/>
<!-- 매우 어두운 회색 -->
<Setter Property="Foreground" Value="#FFFFFFFF"/>
<!-- 흰색 글자 -->
<Setter Property="BorderBrush" Value="#FF555555"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="5,2"/>
<Setter Property="FontFamily" Value="Courier New"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Text" Value="-----"/>
<Setter Property="TextAlignment" Value="Center"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="MinWidth" Value="50"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
<!-- 메인 디스플레이 부분 -->
<Grid Margin="0,0,0,15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="3*"/>
<ColumnDefinition Width="2*" MinWidth="107.001"/>
</Grid.ColumnDefinitions>
<!-- Power 디스플레이 -->
<Border Grid.Column="0" Style="{StaticResource DisplayGroupStyle}" BorderBrush="#FFCCCCCC" BorderThickness="0,0,0,1" Margin="0,0,20,0" >
<StackPanel HorizontalAlignment="Center">
<TextBlock Text="Power (kW)" FontSize="14" FontWeight="Bold"
TextAlignment="Center" Margin="0,0,0,10" Padding="0,0,0,5"/>
<TextBlock Text="0.00" FontSize="48" FontWeight="Bold"
FontFamily="Courier New"
TextAlignment="Center" Margin="0,10"/>
</StackPanel>
</Border>
<!-- Temperature 디스플레이 -->
<Border Grid.Column="1" Style="{StaticResource DisplayGroupStyle}" BorderBrush="#FFCCCCCC" BorderThickness="0,0,0,1" Margin="0,0,20,0" >
<StackPanel HorizontalAlignment="Center">
<TextBlock Text="Temperature (°C)" FontSize="14" FontWeight="Bold"
TextAlignment="Center" Margin="0,0,0,10" Padding="0,0,0,5"/>
<TextBlock Text="0.0" FontSize="48" FontWeight="Bold"
FontFamily="Courier New"
TextAlignment="Center" Margin="0,10"/>
</StackPanel>
</Border>
<!-- 상태 표시등 및 Emission -->
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
<!-- 왼쪽 상태 표시등 묶음 -->
<StackPanel Margin="0,0,20,0">
<!-- 오른쪽 여백 추가 -->
<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
<Ellipse Style="{StaticResource StatusLightStyle}" Fill="#FF4CAF50"/>
<TextBlock Text="Laser ON" VerticalAlignment="Center" FontSize="12"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
<Ellipse Style="{StaticResource StatusLightStyle}" Fill="#FF4CAF50"/>
<TextBlock Text="Laser ready" VerticalAlignment="Center" FontSize="12"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
<Ellipse Style="{StaticResource StatusLightStyle}" Fill="#FF4CAF50"/>
<TextBlock Text="Guide laser" VerticalAlignment="Center" Foreground="White" FontSize="12"/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Ellipse Style="{StaticResource StatusLightStyle}" Fill="Red"/>
<TextBlock Text="Laser error" VerticalAlignment="Center" Foreground="White" FontSize="12"/>
</StackPanel>
</StackPanel>
<!-- 오른쪽 Emission 제어 -->
<StackPanel VerticalAlignment="Center">
<Ellipse Width="40" Height="40" Fill="Red"
Stroke="#FF666666" StrokeThickness="3" Margin="0,0,0,5"/>
<TextBlock Text="Emission ON" FontWeight="Bold" TextAlignment="Center" Margin="0,0,0,5"/>
<Button Content="STOP" Width="40" Height="30" FontSize="10" FontWeight="Bold"
Background="#FFDDDDDD" BorderBrush="#FF999999" BorderThickness="2"/>
</StackPanel>
</StackPanel>
</Grid>
</UserControl>