| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 | <UserControl x:Class="Venus_MainPages.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:d="http://schemas.microsoft.com/expression/blend/2008"              xmlns:local="clr-namespace:Venus_MainPages.Views"             xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"             xmlns:prism="http://prismlibrary.com/"             prism:ViewModelLocator.AutoWireViewModel="True"             xmlns:unity="clr-namespace:Venus_MainPages.Unity"             xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"             xmlns:converters="clr-namespace:Venus_Themes.Converters;assembly=Venus_Themes"             xmlns:converters2="clr-namespace:Venus_MainPages.Converters"             mc:Ignorable="d"              d:DesignHeight="100" d:DesignWidth="1800" FontSize="20" x:Name="topView">    <UserControl.Resources>        <converters:StringToColorConverter x:Key="StringToColorConverter"/>        <converters2:EventItemToStringConverter x:Key="EventItemToStringConverter"/>        <converters2:PMStateConverter x:Key="PMStateConverter"/>        <converters2:TMStateConverter x:Key="TMStateConverter"/>        <converters2:LLStateConverter x:Key="LLStateConverter"/>    </UserControl.Resources>    <StackPanel Background="{DynamicResource BottomFrame_BG}" Orientation="Horizontal">        <TextBlock Style="{StaticResource textBlockStyle}" Text="{Binding Title}" FontSize="60"   VerticalAlignment="Center" Margin="10,0,0,0" FontStyle="Italic" />        <Grid Width="1710"  unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="White" Margin="15,1,0,0"  >            <Grid.RowDefinitions>                <RowDefinition/>                <RowDefinition/>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="60"/>                <ColumnDefinition Width="200"/>                <ColumnDefinition Width="60"/>                <ColumnDefinition Width="200"/>                <ColumnDefinition Width="60"/>                <ColumnDefinition Width="200"/>                <ColumnDefinition Width="60"/>                <ColumnDefinition Width="200"/>                <ColumnDefinition />                <ColumnDefinition Width="40"/>            </Grid.ColumnDefinitions>            <TextBlock Text="PMA" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center"/>            <TextBlock Text="{Binding RtDataValues[PMA.FsmState]}" Background="{Binding RtDataValues[PMA.FsmState],Converter={StaticResource PMStateConverter}}"  Grid.Column="1"   Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="PMB" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="2"/>            <TextBlock Text="{Binding RtDataValues[PMB.FsmState]}" Background="{Binding RtDataValues[PMB.FsmState],Converter={StaticResource PMStateConverter}}"  Grid.Column="3"   Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="PMC" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="4"/>            <TextBlock Text="{Binding RtDataValues[PMC.FsmState]}" Background="{Binding RtDataValues[PMC.FsmState],Converter={StaticResource PMStateConverter}}"  Grid.Column="5"   Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="PMD" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="6"/>            <TextBlock Text="{Binding RtDataValues[PMD.FsmState]}" Background="{Binding RtDataValues[PMD.FsmState],Converter={StaticResource PMStateConverter}}"  Grid.Column="7"   Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <StackPanel Orientation="Horizontal" Grid.Column="8"  HorizontalAlignment="Center">                <TextBlock Text="{DynamicResource Version}"  Foreground="White" FontSize="20" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>                <TextBlock Text="{Binding SoftwareVersion}" Foreground="White"    FontSize="20" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="8,2,0,0"/>            </StackPanel>                        <TextBlock Text="TM" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1"/>            <TextBlock Text="{Binding RtDataValues[TM.FsmState]}" Background="{Binding RtDataValues[TM.FsmState],Converter={StaticResource TMStateConverter}}"  Grid.Column="1" Grid.Row="1"  Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="LLA" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2"/>            <TextBlock Text="{Binding RtDataValues[LLA.FsmState]}" Background="{Binding RtDataValues[LLA.FsmState],Converter={StaticResource LLStateConverter}}"  Grid.Column="3" Grid.Row="1"  Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="LLB" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" Grid.Column="4"/>            <TextBlock Text="{Binding RtDataValues[LLB.FsmState]}" Background="{Binding RtDataValues[LLB.FsmState],Converter={StaticResource LLStateConverter}}"  Grid.Column="5" Grid.Row="1"  Margin="1" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="Log" Grid.Row="1"  Grid.Column="6" Foreground="White"  TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>            <StackPanel Orientation="Horizontal" Grid.Column="7"  Grid.Row="1" Grid.ColumnSpan="2" >                <ComboBox  Width="690"                                       ItemsSource="{Binding EventLogList}"                                          SelectedIndex="{Binding EventLogListSelectedIndex}"                                       VerticalContentAlignment="Center" FontSize="15"  >                    <ComboBox.ItemTemplate>                        <DataTemplate>                            <StackPanel Orientation="Horizontal">                                <TextBlock FontSize="20" Text="{Binding ElementName=topView,Path=DataContext.CurrentEventItem,Converter={StaticResource EventItemToStringConverter}}" Foreground="{Binding ElementName=topView,Path=DataContext.CurrentEventItem.Level,Converter={StaticResource StringToColorConverter}}"/>                            </StackPanel>                        </DataTemplate>                    </ComboBox.ItemTemplate>                    <ComboBox.ItemContainerStyle>                        <Style TargetType="ComboBoxItem">                            <Setter Property="Template">                                <Setter.Value>                                    <ControlTemplate TargetType="ComboBoxItem">                                        <TextBlock FontSize="20" Text="{Binding .,Converter={StaticResource EventItemToStringConverter}}"  FontFamily="宋体"                                                   Foreground="{Binding Level,Converter={StaticResource StringToColorConverter}}">                                            <TextBlock.Style>                                                <Style>                                                    <Style.Triggers>                                                        <Trigger Property="TextBlock.IsMouseOver" Value="true">                                                            <Setter Property="TextBlock.Background" Value="Silver"/>                                                        </Trigger>                                                    </Style.Triggers>                                                </Style>                                            </TextBlock.Style>                                        </TextBlock>                                    </ControlTemplate>                                </Setter.Value>                            </Setter>                            <Setter Property="Background"  Value="{Binding Level,Converter={StaticResource StringToColorConverter}}"/>                        </Style>                    </ComboBox.ItemContainerStyle>                </ComboBox>                <Button  Content="Skip"   BorderThickness="0,0,1,0"  BorderBrush="White"        Style="{StaticResource SysBtnStyle}"   Command="{Binding SkipCommand}" Width="70"    FontSize="15"/>                <Button  Content="Clear"  BorderThickness="0"        BorderBrush="Transparent"  Style="{StaticResource SysBtnStyle}"   Command="{Binding ClearCommand}" Width="70"   FontSize="15"/>            </StackPanel>            <!--<StackPanel Orientation="Horizontal" Grid.Column="8"  Grid.Row="1"  HorizontalAlignment="Center">                <TextBlock  Text=" 语言:" Foreground="White"    VerticalAlignment="Center"/>                <ToggleButton    Style="{StaticResource ToggleButtonStyle1}">                    <i:Interaction.Triggers>                        <i:EventTrigger EventName="Checked">                            <i:InvokeCommandAction Command="{Binding SwichLanguageCommand}"/>                        </i:EventTrigger>                        <i:EventTrigger EventName="Unchecked">                            <i:InvokeCommandAction Command="{Binding SwichLanguageCommand}"/>                        </i:EventTrigger>                    </i:Interaction.Triggers>                </ToggleButton>            </StackPanel>-->                        <Viewbox  Height="80"  Grid.Column="9"  Grid.RowSpan="2" Margin="0,5,0,0">                <deviceControl:AITSignalTower                                                IsRedLightOn="{Binding SignalTowerData.IsRedLightOn}"                                              IsYellowLightOn="{Binding SignalTowerData.IsYellowLightOn}"                                              IsGreenLightOn="{Binding SignalTowerData.IsGreenLightOn}"                                              IsBlueLightOn="{Binding SignalTowerData.IsBlueLightOn}"                                              IsBuzzerOn="{Binding SignalTowerData.IsBuzzerOn}"/>            </Viewbox>        </Grid>          </StackPanel></UserControl>
 |