|
|
@@ -0,0 +1,282 @@
|
|
|
+<UserControl x:Class="OHV.Module.Interactivity.PopUp.OpticalReadingConfigView"
|
|
|
+ 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:OHV.Module.Interactivity.PopUp"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ Width="800"
|
|
|
+ Height="600"
|
|
|
+ Background="#455a64">
|
|
|
+
|
|
|
+ <prism:Dialog.WindowStyle>
|
|
|
+ <Style TargetType="Window">
|
|
|
+ <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
+ <Setter Property="AllowsTransparency" Value="True"/>
|
|
|
+ <Setter Property="ResizeMode" Value="NoResize"/>
|
|
|
+ <Setter Property="WindowStyle" Value="None"/>
|
|
|
+ <Setter Property="BorderThickness" Value="1"/>
|
|
|
+ <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
|
|
|
+ <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
|
|
|
+
|
|
|
+ <!--<Style.Triggers>
|
|
|
+ <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
|
|
|
+ <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>-->
|
|
|
+ </Style>
|
|
|
+ </prism:Dialog.WindowStyle>
|
|
|
+
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="130"/>
|
|
|
+ <ColumnDefinition Width="130"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Grid Grid.Column="0" Margin="15" Background="#37474f">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <!--<StackPanel Grid.Column="0" VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <Border Background="White"
|
|
|
+ Width="60" Height="60">
|
|
|
+ <TextBlock Text="Output#1" VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ <Border Background="Gray"
|
|
|
+ Width="60" Height="50">
|
|
|
+ <TextBlock Text="Output#2" VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ <Border Background="Black"
|
|
|
+ Width="60" Height="40">
|
|
|
+ <TextBlock Text="Output#3" VerticalAlignment="Center" Foreground="White"
|
|
|
+ HorizontalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </StackPanel>-->
|
|
|
+
|
|
|
+ <Border Grid.Column="0" Margin="37,69,37,47" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
+
|
|
|
+ <!--InPut-->
|
|
|
+ <StackPanel Orientation="Vertical"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Grid.Column="0">
|
|
|
+
|
|
|
+ <materialDesign:Badged
|
|
|
+ Badge="Converter IO"
|
|
|
+ BadgeColorZoneMode="Dark"
|
|
|
+ BadgePlacementMode="Top">
|
|
|
+ <Button IsEnabled="False" Background="{x:Null}">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="InputList"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </materialDesign:Badged>
|
|
|
+
|
|
|
+ <ToggleButton Margin="15"
|
|
|
+ Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
+ ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
+ Width="40">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <materialDesign:PackIcon Height="Auto"
|
|
|
+ Kind="LedOn" />
|
|
|
+ </ToggleButton.Content>
|
|
|
+ <materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
+ </materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ </ToggleButton>
|
|
|
+ <TextBlock Text="Input1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Foreground="Orange"/>
|
|
|
+
|
|
|
+ <ToggleButton Margin="15"
|
|
|
+ Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
+ ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
+ Width="40">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="LedOn" />
|
|
|
+ </ToggleButton.Content>
|
|
|
+ <materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
+ </materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ </ToggleButton>
|
|
|
+ <TextBlock Text="Input2"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Foreground="Orange"/>
|
|
|
+
|
|
|
+ <ToggleButton Margin="15"
|
|
|
+ Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
+ ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
+ Width="40">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="LedOn" />
|
|
|
+ </ToggleButton.Content>
|
|
|
+ <materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
+ </materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ </ToggleButton>
|
|
|
+ <TextBlock Text="Input3"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Foreground="Orange"/>
|
|
|
+
|
|
|
+ <ToggleButton Margin="15"
|
|
|
+ Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
+ ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
+ Width="40">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="LedOn" />
|
|
|
+ </ToggleButton.Content>
|
|
|
+ <materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
+ </materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ </ToggleButton>
|
|
|
+ <TextBlock Text="Input4"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Foreground="Orange"/>
|
|
|
+
|
|
|
+ <ToggleButton Margin="15"
|
|
|
+ Style="{StaticResource MaterialDesignActionToggleButton}"
|
|
|
+ ToolTip="MaterialDesignActionLightToggleButton"
|
|
|
+ Width="40">
|
|
|
+ <ToggleButton.Content>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="LedOn" />
|
|
|
+ </ToggleButton.Content>
|
|
|
+ <materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ <materialDesign:PackIcon
|
|
|
+ Kind="CloseBoxOutline" />
|
|
|
+ </materialDesign:ToggleButtonAssist.OnContent>
|
|
|
+ </ToggleButton>
|
|
|
+ <TextBlock Text="Input5"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Foreground="Orange"/>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <!--OutPut-->
|
|
|
+ <Border Grid.Column="1" Margin="30,180" BorderBrush="#FF00FFD3" BorderThickness="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
+ <StackPanel VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Grid.Column="1">
|
|
|
+ <materialDesign:Badged Margin="5"
|
|
|
+ Badge="Detect Area#1"
|
|
|
+ BadgeColorZoneMode="Dark">
|
|
|
+ <Button Width="80"
|
|
|
+ Height="60"
|
|
|
+ Background="{Binding OpReaderOutFirst}">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="Zone#1"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </materialDesign:Badged>
|
|
|
+
|
|
|
+ <materialDesign:Badged Margin="5"
|
|
|
+ Badge="Detect Area#2"
|
|
|
+ BadgeColorZoneMode="Dark">
|
|
|
+ <Button Width="80"
|
|
|
+ Height="50"
|
|
|
+ Background="{Binding OpReaderOutSecond}">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="Zone#2"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </materialDesign:Badged>
|
|
|
+
|
|
|
+ <materialDesign:Badged Margin="5"
|
|
|
+ Badge="Detect Area#3"
|
|
|
+ BadgeColorZoneMode="Dark">
|
|
|
+ <Button Width="80"
|
|
|
+ Height="40"
|
|
|
+ Background="{Binding OpReaderOutThird}">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="Zone#3"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </materialDesign:Badged>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <StackPanel Grid.Column="2"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <Button >
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="Input Bit Result"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button Background="{x:Null}">
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock><Run Text="{Binding InputBitResult, FallbackValue=0}"/></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--Right Sub Menu Grid-->
|
|
|
+ <Grid Grid.Column="1" Background="#37474f">
|
|
|
+ <StackPanel>
|
|
|
+ <Button Margin="5,50,5,0" HorizontalAlignment="Stretch" Height="69"
|
|
|
+ BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding SteeringSaveCommand}" CommandParameter="true">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="CalendarExport" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Save" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--Right Main Menu Grid-->
|
|
|
+ <Grid Grid.Column="2" Background="#263238">
|
|
|
+ <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
|
|
|
+ <StackPanel>
|
|
|
+ <Button Margin="5" HorizontalAlignment="Stretch" Height="69"
|
|
|
+ BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding SteeringConnectCommand}" CommandParameter="true">
|
|
|
+ <StackPanel>
|
|
|
+ <!--<materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Connect" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button Margin="5" HorizontalAlignment="Stretch" Height="69"
|
|
|
+ BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding SteeringDisConnectCommand}" CommandParameter="true">
|
|
|
+ <StackPanel>
|
|
|
+ <!--<materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>-->
|
|
|
+ <TextBlock Text="Disonnect" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button Margin="5,50" HorizontalAlignment="Stretch" Height="Auto" BorderBrush="Gray" BorderThickness="2"
|
|
|
+ Command="{Binding CloseDialogCommand}" CommandParameter="true">
|
|
|
+ <StackPanel>
|
|
|
+ <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
|
|
|
+ <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+</UserControl>
|