| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 | <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"/>    </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" />        <Grid Width="1500"  unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="White" Margin="100,1,0,0"  >            <Grid.RowDefinitions>                <RowDefinition/>                <RowDefinition/>            </Grid.RowDefinitions>            <Grid.ColumnDefinitions>                <ColumnDefinition Width="100"/>                <ColumnDefinition/>                <ColumnDefinition Width="100"/>                <ColumnDefinition/>                <ColumnDefinition Width="100"/>                <ColumnDefinition/>                <ColumnDefinition/>                <ColumnDefinition/>                <ColumnDefinition/>                <ColumnDefinition Width="60"/>                <!--<ColumnDefinition/>-->            </Grid.ColumnDefinitions>            <TextBlock Text="PMA" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center"/>            <TextBlock Text="{Binding RtDataValues[PMA.FsmState]}" Background="Yellow" Grid.Column="1" Grid.ColumnSpan="3"  Margin="2" Padding="0,7,0,0" Block.TextAlignment="Center" FontSize="20" VerticalAlignment="Stretch" TextBlock.TextAlignment="Center" />            <TextBlock Text="Log" Grid.Row="1" Foreground="White"  TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>            <ComboBox Grid.Column="1"  Grid.Row="1" Grid.ColumnSpan="5"                                        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>            <StackPanel Orientation="Horizontal" Grid.Column="4" Grid.ColumnSpan="2" HorizontalAlignment="Center">                <TextBlock Text="{DynamicResource Version}"  Foreground="White" FontSize="20" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>                <TextBlock Text="{Binding SoftwareVersion}" Foreground="Black"    FontSize="20" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/>            </StackPanel>                       <!--<Button Content="FA Enable"   Grid.Column="6" Grid.Row="0" BorderThickness="0" />            <Button Content="FA Disable"  Grid.Column="7" Grid.Row="0" BorderThickness="0"/>-->            <!--<TextBlock Grid.Column="6" Text="语言" Foreground="White"   HorizontalAlignment="Center" VerticalAlignment="Center"/>            <ToggleButton  Grid.Column="7"  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 Orientation="Horizontal" Grid.Column="6"  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>                        <Button Content="Clear"  Grid.Column="6" Grid.Row="1" BorderThickness="0" Command="{Binding ClearCommand}"/>            <!--<Button Content="Reset"       Grid.Column="7" Grid.Row="1" BorderThickness="0" Command="{Binding ResetCommand}"/>            <Button Content="Buzzer Off"  Grid.Column="8" Grid.Row="1" BorderThickness="0" Command="{Binding BuzzerOffCommand}"/>-->            <!--<Border   BorderBrush="#FF0A1624"  CornerRadius="6"  Grid.Column="8"  Grid.RowSpan="2">                           </Border>-->            <Viewbox Width="50" Height="70"  Grid.Column="9"  Grid.RowSpan="2">                <deviceControl:AITSignalTower                                                IsRedLightOn="{Binding RtDataValues[PMA.SignalTower.IsRedLightOn]}"                                              IsYellowLightOn="{Binding RtDataValues[PMA.SignalTower.IsYellowLightOn]}"                                              IsGreenLightOn="{Binding RtDataValues[PMA.SignalTower.IsGreenLightOn]}"                                              IsBlueLightOn="{Binding RtDataValues[PMA.SignalTower.IsBlueLightOn]}"                                              IsBuzzerOn="{Binding RtDataValues[PMA.SignalTower.IsBuzzerOn]}"/>            </Viewbox>        </Grid>          </StackPanel></UserControl>
 |