-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
35 lines (34 loc) · 1.61 KB
/
MainPage.xaml
File metadata and controls
35 lines (34 loc) · 1.61 KB
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
27
28
29
30
31
32
33
34
35
<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.UWP"
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>
<HyperlinkButton Content="Click to go to page 2"
Click="HyperlinkButton_Click"
HorizontalAlignment="Center">
<interactivity:Interaction.Behaviors>
<interactions:EventTriggerBehavior EventName="Click">
<interactions:InvokeCommandAction Command="{Binding DisposeCommand}"/>
</interactions:EventTriggerBehavior>
</interactivity:Interaction.Behaviors>
</HyperlinkButton>
</Grid>
</Page>