123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <UserControl x:Class="Aitex.Triton160.UI.Views.TopView"
- 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:coreControl="clr-namespace:Aitex.Core.UI.Control;assembly=Core"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=Core"
- mc:Ignorable="d"
- Background="{StaticResource mainBackgroundColor}"
- Height="130" Width="1920" >
- <Grid x:Name="gridAll">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="70" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" >
- <Grid.RowDefinitions>
- <RowDefinition Height="3*" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="215" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="300" />
- </Grid.ColumnDefinitions>
- <Image Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Source="{Binding LogoSource}" HorizontalAlignment="Left"></Image>
- <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" x:Name="txtTitle" Margin="0,10,0,0" FontSize="27" Style="{StaticResource MainTextBlock}" HorizontalAlignment="Center"/>
- <!--<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBlock Text="{DynamicResource GlobalLableSystemStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <TextBlock Text="{Binding SystemStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- </StackPanel>-->
- <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBlock Text="{DynamicResource GlobalLableContactor}" Style="{StaticResource MainTextBlock}" Padding="5,0,10,0"/>
- <Ellipse HorizontalAlignment="Left" Stroke="Gray" StrokeThickness="2" Width="15" Height="15"
- Fill="{Binding MainContactorColor, Mode=OneWay}" Style="{x:Null}"/>
- <TextBlock Text="{DynamicResource GlobalLableEmo}" Style="{StaticResource MainTextBlock}" Padding="15,0, 10, 0"/>
- <Ellipse HorizontalAlignment="Left" Stroke="Gray" StrokeThickness="2" Width="15" Height="15"
- Fill="{Binding EmoStopColor, Mode=OneWay}" Style="{x:Null}"/>
- <TextBlock Text="{DynamicResource GlobalLableSystemStatus}" Style="{StaticResource MainTextBlock}" Padding="25,0, 5, 0" />
- <Border BorderThickness="1" BorderBrush="DarkGray" Padding="5,2" Width="120" Background="{Binding SystemStatusBackground}">
- <TextBlock Text="{Binding SystemStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- </Border>
- <StackPanel Visibility="{Binding IsHostStatusVisibility}" Margin="10,0" VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
- <TextBlock Text="{DynamicResource GlobalLableHostStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <Border BorderThickness="1" BorderBrush="DarkGray" Width="250" Padding="5,2" Background="{Binding HostStatusBackground}">
- <TextBlock Text="{Binding HostCommunicationStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- </Border>
- <Border BorderThickness="1" BorderBrush="DarkGray" Width="200" Padding="5,2" Margin="10,0" Background="{Binding HostControlStatusBackground}">
- <TextBlock Text="{Binding HostControlStatus}" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- </Border>
- </StackPanel>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left" Orientation="Horizontal" Background="{Binding TopViewBackground}">
- <TextBlock Text="{DynamicResource GlobalLableVersion}" Style="{StaticResource MainTextBlock}" FontSize="11" Padding="5,0" />
- <TextBlock Text="{Binding SoftwareVersion}" Style="{StaticResource MainTextBlock}" FontSize="11" Padding="5,0" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right" >
- <Button Width="70" Height="25" FontSize="15" Foreground="White" Padding="0" Margin="3,3" VerticalAlignment="Center" Content="EN" Command="{Binding SwitchLanguageCommand}" CommandParameter="EN" IsEnabled="{Binding EnableEnButton}" />
- <Button Width="70" Height="25" FontSize="15" Foreground="White" Padding="0" Margin="3,3" VerticalAlignment="Center" HorizontalAlignment="Right" Content="中文" Command="{Binding SwitchLanguageCommand}" CommandParameter="CN" IsEnabled="{Binding EnableCnButton}"/>
- </StackPanel>
- <StackPanel Grid.Row="1" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
- <TextBlock Text="{DynamicResource GlobalLableLogin}" FontSize="15" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <TextBlock Text="{Binding User}" FontSize="15" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <TextBlock Text="{DynamicResource GlobalLableRole}" FontSize="15" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <TextBlock Text="{Binding Role}" FontSize="15" Style="{StaticResource MainTextBlock}" Padding="5,0" />
- <Button Width="70" FontSize="15" Height="25" Foreground="White" Padding="0" Margin="3,3" VerticalAlignment="Center" Content="{DynamicResource GlobalLableLogout}" Click="btnLogoff_Click" />
- </StackPanel>
- <Grid Grid.Row="2" Grid.ColumnSpan="3">
- <Grid.Background>
- <ImageBrush ImageSource="/Core;component/Resources/Main/下拉框_底板JETP.png"></ImageBrush>
- </Grid.Background>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="140" />
- </Grid.ColumnDefinitions>
- <Label Grid.Column="0" Style="{StaticResource EventLabel}" Content="{DynamicResource GlobalLableEvent}"></Label>
- <ComboBox Grid.Column="1" Style="{StaticResource EventComboBox}" x:Name="comboEvent" DropDownClosed="comboEvent_DropDownClosed" Focusable="False" Margin="25,11,49.6,10.6" Width="Auto" />
- <Button Grid.Column="2" VerticalAlignment="Center" Style="{StaticResource MainMiddleButton}" x:Name="btnReset" Content="{DynamicResource GlobalLableButtonReset}" Click="btnReset_Click" />
- <Button Grid.Column="3" VerticalAlignment="Center" Style="{StaticResource MainMiddleButton}" Width="120" Content="{DynamicResource GlobalLableButtonCloseBuzzer}" Command="{Binding SwitchOffBuzzerCommand}" Margin="3,0,17,0" />
- </Grid>
- </Grid>
- <deviceControl:AITSignalTower Grid.Column="1" x:Name="signalTower" DeviceData="{Binding Path=SignalTower}" Height="105" Width="30" Margin="0,10,20,0" HorizontalAlignment="Right" VerticalAlignment="Top" />
- </Grid>
- </UserControl>
|