284 lines
15 KiB
XML
284 lines
15 KiB
XML
<Window x:Class="AuroraLaser.Amplitude.WinLaserSettingView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:AuroraLaser.Amplitude"
|
|
d:DataContext="{d:DesignInstance Type=local:WinLaserSettingViewModel}"
|
|
mc:Ignorable="d"
|
|
Title="WinLaserSettingView" Height="250" Width="1000">
|
|
<Grid Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="400"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="25"/>
|
|
<RowDefinition Height="10"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Pulse Picker Head -->
|
|
<Border Grid.Column="0" Grid.Row="0" Background="White">
|
|
<TextBlock Margin="3" Text="Pulse Picker" FontWeight="Bold">
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
<!-- External Modulator Head -->
|
|
<Border Grid.Column="1" Grid.Row="0" Background="White">
|
|
<TextBlock Margin="3" Text="External Modulator" FontWeight="Bold">
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
<!-- Line-->
|
|
<Border Grid.Column="0" Grid.Row="1" Background="White">
|
|
<Line
|
|
X1="0" Y1="2"
|
|
X2="400" Y2="2"
|
|
Stroke="Gray"
|
|
StrokeThickness="4" Margin="2"/>
|
|
|
|
</Border>
|
|
|
|
<!-- Line-->
|
|
<Border Grid.Column="1" Grid.Row="1" Background="White">
|
|
<Line
|
|
X1="0" Y1="2"
|
|
X2="550" Y2="2"
|
|
Stroke="Gray"
|
|
StrokeThickness="4" Margin="2"/>
|
|
</Border>
|
|
|
|
<!-- Pulse Picker Setting -->
|
|
<Border Grid.Column="0" Grid.Row="2" Background="White" Margin="0,30,0,30" >
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="248*"/>
|
|
<ColumnDefinition Width="73*"/>
|
|
<ColumnDefinition Width="175*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<!-- 실제 Item -->
|
|
<Border Grid.Column="0" Margin="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90"/>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 실제 Frequence 값-->
|
|
<Border Grid.Column="0" Grid.Row="0">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0">Frequency</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0">
|
|
<TextBox Text="{Binding WritePulsePickerFrequency}" Margin="0,0,5,0" VerticalAlignment="Center" TextAlignment="Center" FontSize="12" >
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetPulsePickerFrequency}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="0" VerticalAlignment="Center">
|
|
<TextBlock>kHz</TextBlock>
|
|
</Border>
|
|
|
|
<!-- 실제 Trigger 값-->
|
|
<Border Grid.Column="0" Grid.Row="1">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0">Frequency Min</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="1">
|
|
<TextBox Text="{Binding WritePulsePickerFrequencyMin, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" TextAlignment="Center" Margin="0,0,5,0" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetPulsePickerFrequencyMin}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="1" VerticalAlignment="Center">
|
|
<TextBlock>kHz</TextBlock>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Column="0" Grid.Row="0">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Trigger</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0">
|
|
<ComboBox x:Name="cbPulsePickerTrigger" MaxDropDownHeight="250" ItemsSource="{Binding PulsePickerTriggerList}" SelectedItem="{Binding SelectedPulsePickerTrigger}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<Border Grid.Column="0" Grid.Row="1">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Alignment</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="1">
|
|
<ComboBox x:Name="cbPulsePickerAlignment" MaxDropDownHeight="250" ItemsSource="{Binding PulsePickerAlignmentList}" SelectedItem="{Binding SelectedPulsePickerAlignment}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<Border Grid.Column="0" Grid.Row="2">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Burst Mode</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="2">
|
|
<TextBox Text="{Binding WriteBurstMode, UpdateSourceTrigger=PropertyChanged}" TextAlignment="Center" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetBurstMode}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
</Border>
|
|
</Grid>
|
|
|
|
</Border>
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
<!-- External Picker Setting -->
|
|
<Border Grid.Column="1" Grid.Row="2" Background="White">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="200"/>
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Column="0" Grid.Row="0">
|
|
<Grid Margin="20">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition Width="60"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<!-- Width-->
|
|
<Border Grid.Column="0" Grid.Row="0">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Width</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left">
|
|
<TextBox Text="{Binding WriteWidth}" Grid.Column="0" VerticalAlignment="Center" HorizontalContentAlignment="Left" TextAlignment="Center" Width="60" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetWidth}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="0" VerticalAlignment="Center">
|
|
<TextBlock Margin="5,0,0,0">ns</TextBlock>
|
|
</Border>
|
|
<!-- Delay-->
|
|
<Border Grid.Column="0" Grid.Row="1">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Delay</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="1">
|
|
<TextBox Text="{Binding WriteDelay}" VerticalAlignment="Center" TextAlignment="Center" Width="100" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetDelay}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="1" VerticalAlignment="Center">
|
|
<TextBlock Margin="5,0,0,0">ns</TextBlock>
|
|
</Border>
|
|
|
|
<!-- Frequence -->
|
|
<Border Grid.Column="0" Grid.Row="2">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Frequency</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="2">
|
|
<TextBox Text="{Binding WriteFrequency}" VerticalAlignment="Center" TextAlignment="Center" Width="100" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetFrequency}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
|
|
</TextBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="2" VerticalAlignment="Center">
|
|
<TextBlock Margin="5,0,0,0">kHz</TextBlock>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0" Margin="0, 0, 10, 0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<!-- Trigger -->
|
|
<Border Grid.Column="0" Grid.Row="0">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Trigger</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="0">
|
|
<ComboBox x:Name="cbTrigger" MaxDropDownHeight="250" ItemsSource="{Binding TriggerList}" SelectedItem="{Binding SelectedTrigger}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<!-- Gate -->
|
|
<Border Grid.Column="0" Grid.Row="1">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Gate</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="1">
|
|
<ComboBox x:Name="cbGate" MaxDropDownHeight="250" ItemsSource="{Binding GateList}" SelectedItem="{Binding SelectedGate}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<!-- Alignment -->
|
|
<Border Grid.Column="0" Grid.Row="2">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Alignment</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="2">
|
|
<ComboBox x:Name="cbAlignment" MaxDropDownHeight="250" ItemsSource="{Binding AlignmentList}" SelectedItem="{Binding SelectedAlignment}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<!-- -->
|
|
<Border Grid.Column="0" Grid.Row="3" Grid.RowSpan="2">
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left">Transmission</TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" Grid.Row="3">
|
|
<ComboBox x:Name="cbTransmission" MaxDropDownHeight="250" ItemsSource="{Binding TransmissionList}" SelectedItem="{Binding SelectedTransmission}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<Border Grid.Column="2" Grid.Row="3">
|
|
<ComboBox x:Name="cbTransmissionPercent" MaxDropDownHeight="250" ItemsSource="{Binding PowerTransmissionList}" SelectedItem="{Binding SelectedPowerTransmission}" FontSize="12"></ComboBox>
|
|
</Border>
|
|
<!-- Transmission -->
|
|
<Border Grid.Column="1" Grid.Row="4">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120"/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox Text="{Binding WritTransmissionPercent}" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Width="120" FontSize="12">
|
|
<TextBox.InputBindings>
|
|
<KeyBinding Command="{Binding CMD_SetTransmissionPercent}" Key="Enter"/>
|
|
</TextBox.InputBindings>
|
|
</TextBox>
|
|
<TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">%</TextBlock>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</Window>
|