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.

60 lines
2.9 KiB

3 years ago
<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.UCFFmpegPlayer"
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}" MouseRightButtonDown="Grid_MouseRightButtonDown" >
<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="0" Grid.RowSpan="2" Panel.ZIndex="2" Background="Transparent">
<Canvas.ContextMenu>
<ContextMenu >
<MenuItem x:Name="menuOpenDraw" Header="预警线规划" Click="menuOpenDraw_Click" >
<MenuItem.Icon>
<Image Stretch="Fill" Source="/UC/Videos/pen.png" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</Canvas.ContextMenu>
</Canvas>
<Grid x:Name="contenter" Grid.Row="0" Grid.RowSpan="2" >
<!--画板画 预警线-->
<InkCanvas x:Name="writeBorad" Background="Transparent" >
</InkCanvas>
</Grid>
<StackPanel x:Name="topPlane" Grid.Row="0" Panel.ZIndex="3" 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>