-
-
Notifications
You must be signed in to change notification settings - Fork 267
/
MainPage.xaml
26 lines (25 loc) · 1.13 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Page
x:Class="LibVLCSharp.UWP.Sample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:LibVLCSharp.UWP.Sample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:interactions="using:Microsoft.Xaml.Interactions.Core"
xmlns:lvs="using:LibVLCSharp.Platforms.Windows"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Page.DataContext>
<local:MainViewModel />
</Page.DataContext>
<Grid>
<lvs:VideoView MediaPlayer="{Binding MediaPlayer}">
<interactivity:Interaction.Behaviors>
<interactions:EventTriggerBehavior EventName="Initialized">
<interactions:InvokeCommandAction Command="{Binding InitializedCommand}"/>
</interactions:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</lvs:VideoView>
</Grid>
</Page>