118 lines
7.3 KiB
XML
118 lines
7.3 KiB
XML
<UserControl x:Class="AuroraOCT.Trumpf.Views.UCTrumpfOCTView"
|
|
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:AuroraOCT.Trumpf.Views"
|
|
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls;assembly=AuroraUIComponent"
|
|
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
|
|
d:DataContext="{d:DesignInstance Type=local:UCTrumpfOCTViewModel}"
|
|
mc:Ignorable="d"
|
|
x:Name="uc"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<behavior:Interaction.Triggers>
|
|
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
|
|
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
|
|
</behavior:PropertyChangedTrigger>
|
|
</behavior:Interaction.Triggers>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="2*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--Send Target Message-->
|
|
<GroupBox Grid.Column="0" Header="Send Command" Margin="5">
|
|
<UniformGrid Columns="2">
|
|
<usercontrols:UCKeyComboBoxOnOff
|
|
KeyText="Pre-Trigger" ValueText="{Binding PreTrigger}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCKeyComboBoxOnOff
|
|
KeyText="In-Trigger" ValueText="{Binding InTrigger}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCKeyComboBoxOnOff
|
|
KeyText="Pos-Gen" ValueText="{Binding PosGen}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCKeyComboBoxNumber
|
|
KeyText="LightPath" ValueText="{Binding LightPath}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left" MaxValue="6" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue
|
|
KeyText="Position X (µm)" Value="{Binding PositionX}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" DecimalPlaces="3" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCKeyValue
|
|
KeyText="Position Y (µm)" Value="{Binding PositionY}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" DecimalPlaces="3" ValueHorizontalAlignment="Left"/>
|
|
|
|
<!--<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="Hex Message :" Width="auto"/>
|
|
<TextBox Text="{Binding HexCommand}" Width="250" Margin="5 20 5 20"/>
|
|
</StackPanel>
|
|
<Button Content="Send Command" Command="{Binding CMD_SendHexCommand}" Margin="20"/>-->
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<!--Get Status-->
|
|
<GroupBox Grid.Column="1" Header="Received Data" Margin="5">
|
|
<UniformGrid Columns="1">
|
|
<usercontrols:UCBoolianValue
|
|
KeyText="PreTrigger" LightOn="{Binding IsPreTrigger}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCBoolianValue
|
|
KeyText="InTrigger" LightOn="{Binding IsInTrigger}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCBoolianValue
|
|
KeyText="PosGen" LightOn="{Binding IsPosGen}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left"/>
|
|
<usercontrols:UCKeyValue
|
|
KeyText="Position Y (µm)" Value="{Binding getPositionX}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left" DecimalPlaces="3" IsReadOnly="True"/>
|
|
<usercontrols:UCKeyValue
|
|
KeyText="Position Y (µm)" Value="{Binding getPositionY}"
|
|
KeyTextFgColor="Black" KeyTextBgColor="White" KeyTextSize="15" KeyTextWidth="1*"
|
|
ValueTextFgColor="#efefef" ValueTextBgColor="#111111" ValueTextSize="20" ValueTextWidth="1*"
|
|
KeyHorizontalAlignment="Right" ValueHorizontalAlignment="Left" DecimalPlaces="3" IsReadOnly="True"/>
|
|
|
|
</UniformGrid>
|
|
</GroupBox>
|
|
|
|
<!--Get Raw Data-->
|
|
<!--<GroupBox Grid.Column="2" Header="Received Raw Data" Margin="5">
|
|
<ItemsControl ItemsSource="{Binding ReceivedData}" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid Columns="8" Rows="8" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding}" TextAlignment="Center" FontWeight="Bold"
|
|
Background="LightGray" Foreground="Black" Margin="2" Padding="5" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</GroupBox>-->
|
|
</Grid>
|
|
</UserControl>
|