29 lines
1.5 KiB
XML
29 lines
1.5 KiB
XML
<UserControl x:Class="TV_Player.VideoPlayer"
|
|
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:vlc="clr-namespace:LibVLCSharp.WPF;assembly=LibVLCSharp.WPF"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="450" d:DesignWidth="800"
|
|
Unloaded="UserControl_Unloaded">
|
|
<Grid>
|
|
<vlc:VideoView x:Name="VideoView" Panel.ZIndex="1">
|
|
<StackPanel Panel.ZIndex="10" IsHitTestVisible="True" Background="#01FFFFFF"
|
|
HorizontalAlignment="Stretch" MouseLeftButtonDown="MyUserControl_MouseDown"
|
|
TouchDown="MyUserControl_TouchDown" >
|
|
<Grid x:Name="overlayPanel" Visibility="Collapsed" >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="0" Content="Back" HorizontalAlignment="Stretch" Command="{Binding BackCommand}" />
|
|
<Button Grid.Column="1" Content="Pause" HorizontalAlignment="Stretch" Click="PauseButton_Click" />
|
|
</Grid>
|
|
</StackPanel>
|
|
</vlc:VideoView>
|
|
</Grid>
|
|
</UserControl>
|