mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-10 11:36:07 +08:00
feat: 样式支持自定义视频
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<Window x:Class="CRSim.ScreenSimulator.Views.ChengduMetro.PlatformScreenView"
|
||||
<Window x:Class="CRSim.ScreenSimulator.Views.ChengduMetro.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"
|
||||
@@ -106,7 +106,8 @@
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<MediaElement Grid.Row="0" Name="player" HorizontalAlignment="Center" VerticalAlignment="Stretch" LoadedBehavior="Manual" UnloadedBehavior="Stop" Volume="0" MediaEnded="MediaElement_MediaEnded"/>
|
||||
<MediaElement Grid.Row="0" Name="player" HorizontalAlignment="Center" VerticalAlignment="Stretch"
|
||||
LoadedBehavior="Manual" UnloadedBehavior="Stop" Volume="0" MediaEnded="MediaElement_MediaEnded" Source="{Binding ViewModel.Video}"/>
|
||||
<pp:RunningText Grid.Row="1" x:Name="rt" Background="Orange" Foreground="White" Padding="4" FontSize="20" Speed="75"
|
||||
Text="{Binding ViewModel.Text,Mode=OneWay}">
|
||||
<pp:RunningText.Style>
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CRSim.ScreenSimulator.Views.ChengduMetro
|
||||
ViewModel = viewModel;
|
||||
RenderOptions.SetEdgeMode(this, EdgeMode.Aliased);
|
||||
DataContext = this;
|
||||
player.Source = new Uri("Assets\\Advertisement.mp4", UriKind.Relative);
|
||||
player.Play();
|
||||
}
|
||||
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user