You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.9 KiB

3 years ago
<UserControl x:Class="ECMonitor.UC.Videos.UCFFmpegAIBoxPlayer"
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:ECMonitor.UC.Videos"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" MouseDown="UserControl_MouseDown" MouseDoubleClick="UserControl_MouseDoubleClick" >
<Border x:Name="playerBorder" BorderBrush="{DynamicResource PrimaryBorderBrush}" BorderThickness="2">
<Grid Background="{DynamicResource PrimaryBodyBrush}" >
<Grid.RowDefinitions>
<RowDefinition Height="16"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Grid.RowSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<Image Stretch="Fill" x:Name="imgPlayer" />
</StackPanel>
<StackPanel Grid.Row="1" Canvas.ZIndex="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
<TextBlock x:Name="txtShow" Text="没有视频" FontSize="20" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
</StackPanel >
<StackPanel x:Name="topPlane" Grid.Row="0" Canvas.ZIndex="2" HorizontalAlignment="Right" Background="{DynamicResource PrimaryBarBrush}" >
<Button x:Name="btnClose" Height="15" Width="15" Style="{DynamicResource TopRightButtonStyle}" Margin="0,0,6,0" Click="btnClose_Click" >
<WrapPanel >
<Image Source="/close.png" Height="13" Width="13" />
</WrapPanel>
</Button>
</StackPanel>
</Grid>
</Border>
</UserControl>