11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <rg : PopupPage xmlns =" http://xamarin.com/schemas/2014/forms"
3- xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
4- xmlns : rg =" http://rotorgames.com"
5- x : Class =" Demo.Pages.LoginPopupPage" >
6- <rg : PopupPage .Resources>
7- <ResourceDictionary >
8- <Style x : Key =" EntryStyle" TargetType =" Entry" >
9- <Setter Property =" PlaceholderColor" Value =" #9cdaf1" />
10- <Setter Property =" TextColor" Value =" #7dbbe6" />
11- </Style >
12- </ResourceDictionary >
13- </rg : PopupPage .Resources>
14- <rg : PopupPage .Animation>
15- <rg : ScaleAnimation
16- PositionIn =" Bottom"
17- PositionOut =" Center"
18- ScaleIn =" 1"
19- ScaleOut =" 0.7"
20- DurationIn =" 700"
21- EasingIn =" BounceOut" />
22- </rg : PopupPage .Animation>
23- <ScrollView
24- HorizontalOptions =" Center"
25- VerticalOptions =" Center" >
26- <AbsoluteLayout >
27- <Frame
28- x : Name =" FrameContainer"
29- Margin =" 15"
30- HorizontalOptions =" Center"
31- BackgroundColor =" White" >
32- <StackLayout
33- IsClippedToBounds =" True"
34- Padding =" 10, 5"
35- Spacing =" 3" >
36- <Image
37- HorizontalOptions =" Center"
38- x : Name =" OctocatImage"
39- Margin =" 10"
40- HeightRequest =" 150"
41- WidthRequest =" 150" >
42- <Image .Source>
43- <OnPlatform
44- x : TypeArguments =" ImageSource"
45- Android =" github_octocat.png"
46- iOS =" github_octocat.png"
47- WinPhone =" Assets/github_octocat.png" />
48- </Image .Source>
49- </Image >
50- <Entry
51- HorizontalOptions =" Center"
52- x : Name =" UsernameEntry"
53- Style =" {StaticResource EntryStyle}"
54- Placeholder =" Username" />
55- <Entry
56- HorizontalOptions =" Center"
57- x : Name =" PasswordEntry"
58- Style =" {StaticResource EntryStyle}"
59- Placeholder =" Password"
60- IsPassword =" True" />
61- <Button
62- Margin =" 10, 5"
63- BackgroundColor =" #7dbbe6"
64- HorizontalOptions =" Fill"
65- Clicked =" OnLogin"
66- x : Name =" LoginButton"
67- Text =" Login" >
68- <Button .HeightRequest>
69- <OnPlatform x : TypeArguments =" x:Double" Android =" 50" iOS =" 30" WinPhone =" 30" />
70- </Button .HeightRequest>
71- </Button >
72- </StackLayout >
73- </Frame >
74- <ContentView
75- AbsoluteLayout.LayoutFlags=" PositionProportional"
76- AbsoluteLayout.LayoutBounds=" 1, 0, -1, -1" >
77- <ContentView .GestureRecognizers>
78- <TapGestureRecognizer Tapped =" OnCloseButtonTapped" />
79- </ContentView .GestureRecognizers>
80- <Image
81- x : Name =" CloseImage"
82- HeightRequest =" 30"
83- WidthRequest =" 30" >
84- <Image .Source>
85- <OnPlatform
86- x : TypeArguments =" ImageSource"
87- Android =" close_circle_button.png"
88- iOS =" close_circle_button.png"
89- WinPhone =" Assets/close_circle_button.png" />
90- </Image .Source>
91- </Image >
92- </ContentView >
93- </AbsoluteLayout >
94- </ScrollView >
2+ <rg : PopupPage
3+ x : Class =" Demo.Pages.LoginPopupPage"
4+ xmlns =" http://xamarin.com/schemas/2014/forms"
5+ xmlns : x =" http://schemas.microsoft.com/winfx/2009/xaml"
6+ xmlns : rg =" http://rotorgames.com"
7+ AndroidTalkbackAccessibilityWorkaround =" True" >
8+ <rg : PopupPage .Resources>
9+ <ResourceDictionary >
10+ <Style x : Key =" EntryStyle" TargetType =" Entry" >
11+ <Setter Property =" PlaceholderColor" Value =" #9cdaf1" />
12+ <Setter Property =" TextColor" Value =" #7dbbe6" />
13+ </Style >
14+ </ResourceDictionary >
15+ </rg : PopupPage .Resources>
16+ <rg : PopupPage .Animation>
17+ <rg : ScaleAnimation
18+ DurationIn =" 700"
19+ EasingIn =" BounceOut"
20+ PositionIn =" Bottom"
21+ PositionOut =" Center"
22+ ScaleIn =" 1"
23+ ScaleOut =" 0.7" />
24+ </rg : PopupPage .Animation>
25+ <ScrollView HorizontalOptions =" Center" VerticalOptions =" Center" >
26+ <AbsoluteLayout >
27+ <Frame
28+ x : Name =" FrameContainer"
29+ Margin =" 15"
30+ BackgroundColor =" White"
31+ HorizontalOptions =" Center" >
32+ <StackLayout
33+ Padding =" 10,5"
34+ IsClippedToBounds =" True"
35+ Spacing =" 3" >
36+ <Image
37+ x : Name =" OctocatImage"
38+ Margin =" 10"
39+ HeightRequest =" 150"
40+ HorizontalOptions =" Center"
41+ WidthRequest =" 150" >
42+ <Image .Source>
43+ <OnPlatform
44+ x : TypeArguments =" ImageSource"
45+ Android =" github_octocat.png"
46+ WinPhone =" Assets/github_octocat.png"
47+ iOS =" github_octocat.png" />
48+ </Image .Source>
49+ </Image >
50+ <Entry
51+ x : Name =" UsernameEntry"
52+ HorizontalOptions =" Center"
53+ Placeholder =" Username"
54+ Style =" {StaticResource EntryStyle}" />
55+ <Entry
56+ x : Name =" PasswordEntry"
57+ HorizontalOptions =" Center"
58+ IsPassword =" True"
59+ Placeholder =" Password"
60+ Style =" {StaticResource EntryStyle}" />
61+ <Button
62+ x : Name =" LoginButton"
63+ Margin =" 10,5"
64+ BackgroundColor =" #7dbbe6"
65+ Clicked =" OnLogin"
66+ HorizontalOptions =" Fill"
67+ Text =" Login" >
68+ <Button .HeightRequest>
69+ <OnPlatform
70+ x : TypeArguments =" x:Double"
71+ Android =" 50"
72+ WinPhone =" 30"
73+ iOS =" 30" />
74+ </Button .HeightRequest>
75+ </Button >
76+ </StackLayout >
77+ </Frame >
78+ <ContentView AbsoluteLayout.LayoutBounds=" 1, 0, -1, -1" AbsoluteLayout.LayoutFlags=" PositionProportional" >
79+ <ContentView .GestureRecognizers>
80+ <TapGestureRecognizer Tapped =" OnCloseButtonTapped" />
81+ </ContentView .GestureRecognizers>
82+ <Image
83+ x : Name =" CloseImage"
84+ HeightRequest =" 30"
85+ WidthRequest =" 30" >
86+ <Image .Source>
87+ <OnPlatform
88+ x : TypeArguments =" ImageSource"
89+ Android =" close_circle_button.png"
90+ WinPhone =" Assets/close_circle_button.png"
91+ iOS =" close_circle_button.png" />
92+ </Image .Source>
93+ </Image >
94+ </ContentView >
95+ </AbsoluteLayout >
96+ </ScrollView >
9597</rg : PopupPage >
0 commit comments