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.
 
 

42 lines
2.1 KiB

<UserControl
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"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" x:Class="ECMonitor.UC.Videos.UCAIFilePlayer"
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" Panel.ZIndex="1" HorizontalAlignment="Center" VerticalAlignment="Center" >
<TextBlock x:Name="txtShow" Text="没有视频" FontSize="20" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</StackPanel>
<Canvas x:Name="canvasMain" Grid.Row="1" Panel.ZIndex="2" Background="Transparent"/>
<StackPanel x:Name="topPlane" Grid.Row="0" Panel.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>