mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-13 13:15:46 +08:00
60 lines
3.8 KiB
XML
60 lines
3.8 KiB
XML
<Window x:Class="CRSim.ScreenSimulator.Views.DaqingDong.PlatformScreenView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:pp="https://www.cnblogs.com/pumbaa"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:CRSim.ScreenSimulator.Views.DaqingDong"
|
|
mc:Ignorable="d" Foreground="#fdf99d"
|
|
xmlns:converters="clr-namespace:CRSim.ScreenSimulator.Converters"
|
|
xmlns:converters1="clr-namespace:CRSim.Shared.Converters;assembly=CRSim.Shared"
|
|
FontFamily="黑体" FontSize="25" FontWeight="Bold"
|
|
Title="引导屏" SizeToContent="WidthAndHeight"
|
|
WindowStyle="None" AllowsTransparency="True" Background="Black"
|
|
KeyDown="Window_KeyDown"
|
|
ResizeMode="NoResize" MouseDown="Window_MouseDown">
|
|
<Window.Resources>
|
|
<converters1:DateTimeToStringConverter x:Key="DateTimeToStringConverter" Format="HH:mm" />
|
|
<converters:LocationToStringConverter x:Key="LocationToStringConverter" DisplayMode="normal" />
|
|
<converters1:EmptyToVisibilityConverter x:Key="EmptyToVisibilityConverter" />
|
|
</Window.Resources>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding ThisPlatform}" Foreground="#c5d4e1" Background="#161e41" FontSize="110" MinWidth="110"
|
|
FontWeight="Normal" TextAlignment="Center"/>
|
|
<Grid Margin="4" Background="Black" MinWidth="350">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Grid.Row="0" Text="{Binding Screen[0].TrainNumber}" VerticalAlignment="Center" TextAlignment="Left"/>
|
|
<TextBlock Grid.Column="1" Grid.Row="0" Text="次" Margin="4,0,0,0" VerticalAlignment="Center" TextAlignment="Left"/>
|
|
<TextBlock Grid.Column="3" Grid.Row="0" Text="本站" Foreground="#de502b" VerticalAlignment="Center" TextAlignment="Center"/>
|
|
<TextBlock Grid.Column="5" Grid.Row="0" Text="{Binding Screen[0].DepartureTime,Converter={StaticResource DateTimeToStringConverter}}" VerticalAlignment="Center" TextAlignment="Right"/>
|
|
<TextBlock Grid.Column="6" Grid.Row="0" Text="开" Margin="4,0,0,0" VerticalAlignment="Center" TextAlignment="Right"/>
|
|
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1" Text="{Binding Screen[0].Origin}" VerticalAlignment="Center" TextAlignment="Left"/>
|
|
<TextBlock Grid.Column="3" Grid.Row="1" Text="开往" Foreground="#de502b" VerticalAlignment="Center" TextAlignment="Center"/>
|
|
<TextBlock Grid.Column="5" Grid.ColumnSpan="2" Grid.Row="1" Text="{Binding Screen[0].Terminal}" VerticalAlignment="Center" TextAlignment="Right"/>
|
|
|
|
<pp:RunningText Speed="20" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="7">
|
|
<pp:RunningText.Text>
|
|
<MultiBinding Mode="OneWay" Converter="{StaticResource LocationToStringConverter}">
|
|
<Binding Path="Screen[0].Length" />
|
|
<Binding Path="Location" />
|
|
</MultiBinding>
|
|
</pp:RunningText.Text>
|
|
</pp:RunningText>
|
|
</Grid>
|
|
</StackPanel>
|
|
</Window>
|