-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFullScreenPage.xaml
81 lines (68 loc) · 2.16 KB
/
FullScreenPage.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8" ?>
<Mopups:PopupPage
x:Class="MElemetModified.FullScreenPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:Animations="clr-namespace:Mopups.Animations;assembly=Mopups"
xmlns:Mopups="clr-namespace:Mopups.Pages;assembly=Mopups"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
Title="FullScreenPage"
Shell.PresentationMode="ModalAnimated">
<Mopups:PopupPage.Animation>
<Animations:MoveAnimation PositionIn="Top" PositionOut="Top" />
</Mopups:PopupPage.Animation>
<Grid CompressedLayout.IsHeadless="True">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<toolkit:MediaElement
x:Name="mediaElement"
Grid.Row="0"
Aspect="AspectFit"
Background="Black"
HorizontalOptions="FillAndExpand"
ShouldAutoPlay="True"
ShouldShowPlaybackControls="True"
VerticalOptions="FillAndExpand" />
<HorizontalStackLayout
Grid.Row="0"
Padding="15"
HorizontalOptions="StartAndExpand"
VerticalOptions="StartAndExpand">
<ImageButton
Margin="0,0,20,0"
Clicked="Button_Clicked"
HeightRequest="30"
HorizontalOptions="StartAndExpand"
Source="iconback.png"
WidthRequest="30">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="White" />
</ImageButton.Behaviors>
</ImageButton>
<ImageButton
Margin="0,0,20,0"
Clicked="btnChangeAspect_Clicked"
HeightRequest="30"
HorizontalOptions="CenterAndExpand"
Source="iconaspect.png"
ToolTipProperties.Text="Change Aspect Ratio"
WidthRequest="30">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="White" />
</ImageButton.Behaviors>
</ImageButton>
<ImageButton
Clicked="btnChangeOrientation_Clicked"
HeightRequest="30"
HorizontalOptions="EndAndExpand"
Source="iconorientation.png"
ToolTipProperties.Text="Change Orientation"
WidthRequest="30">
<ImageButton.Behaviors>
<toolkit:IconTintColorBehavior TintColor="White" />
</ImageButton.Behaviors>
</ImageButton>
</HorizontalStackLayout>
</Grid>
</Mopups:PopupPage>