|
1 |
| -<?xml version="1.0" encoding="utf-8"?> |
2 |
| -<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" |
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<FlyoutPage xmlns="http://xamarin.com/schemas/2014/forms" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
4 | 4 | xmlns:local="clr-namespace:GWallet.Frontend.XF"
|
| 5 | + xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" |
| 6 | + ios:FlyoutPage.ApplyShadow="True" |
5 | 7 | xmlns:controls="clr-namespace:GWallet.Frontend.XF.Controls"
|
6 | 8 | x:Class="GWallet.Frontend.XF.BalancesPage">
|
7 |
| - <StackLayout x:Name="mainLayout" |
8 |
| - Padding="0,0,0,0" |
9 |
| - VerticalOptions="FillAndExpand"> |
10 | 9 |
|
11 |
| - <StackLayout Orientation="Horizontal" |
12 |
| - Padding="15, 10" |
13 |
| - Spacing="30" |
14 |
| - VerticalOptions="FillAndExpand" |
15 |
| - HorizontalOptions="FillAndExpand"> |
| 10 | + <!-- Side menu--> |
| 11 | + <FlyoutPage.Flyout> |
| 12 | + <ContentPage Title="FlyoutMenu" |
| 13 | + ios:Page.UseSafeArea="True" > |
| 14 | + <StackLayout Spacing="20" Margin="10,0,15,0"> |
16 | 15 |
|
17 |
| - <!-- we add {V|H}Options=Center* not only to the Label, as a workaround to |
18 |
| - https://github.com/xamarin/Xamarin.Forms/issues/4655 --> |
19 |
| - <Frame x:Name="totalFiatAmountFrame" |
20 |
| - HasShadow="false" |
21 |
| - BackgroundColor="Transparent" |
22 |
| - BorderColor="Transparent" |
23 |
| - VerticalOptions="CenterAndExpand" |
24 |
| - HorizontalOptions="End" |
25 |
| - Padding="0" |
26 |
| - Margin="0,0,0,0"> |
27 |
| - <StackLayout x:Name="totalFiatAmountLayout" |
28 |
| - Orientation="Horizontal" |
29 |
| - VerticalOptions="CenterAndExpand" |
30 |
| - HorizontalOptions="Center" |
31 |
| - Margin="0,0,0,0"> |
32 |
| - <Label Text="..." x:Name="totalFiatAmountLabel" |
33 |
| - VerticalOptions="CenterAndExpand" |
34 |
| - HorizontalOptions="Center" |
35 |
| - Margin="0,0,0,0" |
36 |
| - FontSize="22" /> |
| 16 | + <Image HeightRequest="80" |
| 17 | + WidthRequest="80" |
| 18 | + Margin="0,0,0,10" |
| 19 | + Source="logo_512x512.png"/> |
| 20 | + |
| 21 | + <StackLayout Spacing="15" Orientation="Horizontal"> |
| 22 | + <Label TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> |
| 23 | + <Label Text="Check you still remember your payment password"/> |
| 24 | + <StackLayout.GestureRecognizers><TapGestureRecognizer Tapped="OpenSettings_Tapped"/></StackLayout.GestureRecognizers> |
| 25 | + </StackLayout> |
| 26 | + |
| 27 | + <StackLayout Spacing="15" Orientation="Horizontal"> |
| 28 | + <Label TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> |
| 29 | + <Label Text="Check you still remember your secret recovery phrase"/> |
| 30 | + <StackLayout.GestureRecognizers><TapGestureRecognizer Tapped="OpenSettings_Tapped"/></StackLayout.GestureRecognizers> |
37 | 31 | </StackLayout>
|
38 |
| - </Frame> |
39 | 32 |
|
40 |
| - <!-- keep this frame&stacklayout&label below almost same as previous! --> |
41 |
| - <Frame x:Name="totalReadOnlyFiatAmountFrame" |
42 |
| - HasShadow="false" |
43 |
| - IsVisible="false" |
44 |
| - BackgroundColor="Transparent" |
45 |
| - BorderColor="Transparent" |
46 |
| - VerticalOptions="CenterAndExpand" |
47 |
| - HorizontalOptions="End" |
48 |
| - Padding="0" |
49 |
| - Margin="0,0,0,0"> |
50 |
| - <StackLayout x:Name="totalReadOnlyFiatAmountLayout" |
51 |
| - Orientation="Horizontal" |
52 |
| - VerticalOptions="CenterAndExpand" |
53 |
| - HorizontalOptions="Center" |
54 |
| - Margin="0,0,0,0"> |
55 |
| - <Label Text="..." x:Name="totalReadOnlyFiatAmountLabel" |
56 |
| - VerticalOptions="CenterAndExpand" |
57 |
| - HorizontalOptions="Center" |
58 |
| - Margin="0,0,0,0" |
59 |
| - FontSize="22" |
60 |
| - TextColor="DarkBlue" /> |
| 33 | + <StackLayout Spacing="15" Orientation="Horizontal"> |
| 34 | + <Label TextColor="#BF0C27" VerticalOptions="Center" FontFamily="Icons" Text="#"/> |
| 35 | + <Label Text="Wipe your current wallet, in order to start from scratch"/> |
| 36 | + <StackLayout.GestureRecognizers><TapGestureRecognizer Tapped="OpenSettings_Tapped"/></StackLayout.GestureRecognizers> |
61 | 37 | </StackLayout>
|
62 |
| - </Frame> |
| 38 | + </StackLayout> |
| 39 | + </ContentPage> |
| 40 | + </FlyoutPage.Flyout> |
| 41 | + |
| 42 | + <!-- Main page--> |
| 43 | + <FlyoutPage.Detail> |
| 44 | + <ContentPage ios:Page.UseSafeArea="True" |
| 45 | + Title="Balances"> |
| 46 | + <StackLayout x:Name="mainLayout" |
| 47 | + Padding="0,0,0,0" |
| 48 | + VerticalOptions="FillAndExpand"> |
| 49 | + |
| 50 | + <!-- Settings icon--> |
| 51 | + <Button BackgroundColor="Transparent" |
| 52 | + TextColor="Black" |
| 53 | + FontFamily="Icons" |
| 54 | + Text="" |
| 55 | + FontSize="20" |
| 56 | + HeightRequest="20" |
| 57 | + HorizontalOptions="Start" |
| 58 | + Margin="20,0" |
| 59 | + Clicked="OpenFlyout_Clicked"/> |
| 60 | + |
| 61 | + |
| 62 | + <StackLayout Orientation="Horizontal" |
| 63 | + Padding="15, 10" |
| 64 | + Spacing="30" |
| 65 | + VerticalOptions="FillAndExpand" |
| 66 | + HorizontalOptions="FillAndExpand"> |
| 67 | + |
| 68 | + <!-- we add {V|H}Options=Center* not only to the Label, as a workaround to |
| 69 | + https://github.com/xamarin/Xamarin.Forms/issues/4655 --> |
| 70 | + <Frame x:Name="totalFiatAmountFrame" |
| 71 | + HasShadow="false" |
| 72 | + BackgroundColor="Transparent" |
| 73 | + BorderColor="Transparent" |
| 74 | + VerticalOptions="CenterAndExpand" |
| 75 | + HorizontalOptions="End" |
| 76 | + Padding="0" |
| 77 | + Margin="0,0,0,0"> |
| 78 | + <StackLayout x:Name="totalFiatAmountLayout" |
| 79 | + Orientation="Horizontal" |
| 80 | + VerticalOptions="CenterAndExpand" |
| 81 | + HorizontalOptions="Center" |
| 82 | + Margin="0,0,0,0"> |
| 83 | + <Label Text="..." x:Name="totalFiatAmountLabel" |
| 84 | + VerticalOptions="CenterAndExpand" |
| 85 | + HorizontalOptions="Center" |
| 86 | + Margin="0,0,0,0" |
| 87 | + FontSize="22" /> |
| 88 | + </StackLayout> |
| 89 | + </Frame> |
| 90 | + |
| 91 | + <!-- keep this frame&stacklayout&label below almost same as previous! --> |
| 92 | + <Frame x:Name="totalReadOnlyFiatAmountFrame" |
| 93 | + HasShadow="false" |
| 94 | + IsVisible="false" |
| 95 | + BackgroundColor="Transparent" |
| 96 | + BorderColor="Transparent" |
| 97 | + VerticalOptions="CenterAndExpand" |
| 98 | + HorizontalOptions="End" |
| 99 | + Padding="0" |
| 100 | + Margin="0,0,0,0"> |
| 101 | + <StackLayout x:Name="totalReadOnlyFiatAmountLayout" |
| 102 | + Orientation="Horizontal" |
| 103 | + VerticalOptions="CenterAndExpand" |
| 104 | + HorizontalOptions="Center" |
| 105 | + Margin="0,0,0,0"> |
| 106 | + <Label Text="..." x:Name="totalReadOnlyFiatAmountLabel" |
| 107 | + VerticalOptions="CenterAndExpand" |
| 108 | + HorizontalOptions="Center" |
| 109 | + Margin="0,0,0,0" |
| 110 | + FontSize="22" |
| 111 | + TextColor="DarkBlue" /> |
| 112 | + </StackLayout> |
| 113 | + </Frame> |
63 | 114 |
|
64 |
| - <controls:CircleChartView x:Name="normalChartView" |
65 |
| - HorizontalOptions="FillAndExpand" |
66 |
| - VerticalOptions="FillAndExpand"/> |
| 115 | + <controls:CircleChartView x:Name="normalChartView" |
| 116 | + HorizontalOptions="FillAndExpand" |
| 117 | + VerticalOptions="FillAndExpand"/> |
67 | 118 |
|
68 |
| - <controls:CircleChartView x:Name="readonlyChartView" |
69 |
| - IsVisible="False" |
70 |
| - HorizontalOptions="FillAndExpand" |
71 |
| - VerticalOptions="FillAndExpand"/> |
| 119 | + <controls:CircleChartView x:Name="readonlyChartView" |
| 120 | + IsVisible="False" |
| 121 | + HorizontalOptions="FillAndExpand" |
| 122 | + VerticalOptions="FillAndExpand"/> |
72 | 123 |
|
73 |
| - </StackLayout> |
| 124 | + </StackLayout> |
74 | 125 |
|
75 |
| - <ScrollView HorizontalOptions="FillAndExpand"> |
76 |
| - <StackLayout x:Name="contentLayout" /> |
77 |
| - </ScrollView> |
| 126 | + <ScrollView HorizontalOptions="FillAndExpand"> |
| 127 | + <StackLayout x:Name="contentLayout" /> |
| 128 | + </ScrollView> |
78 | 129 |
|
79 |
| - <Label Text="www.geewallet.com" x:Name="footerLabel" |
80 |
| - VerticalOptions="End" |
81 |
| - HorizontalOptions="Center" |
82 |
| - Margin="0,10,0,10" /> |
83 |
| - </StackLayout> |
84 |
| -</ContentPage> |
| 130 | + <Label Text="www.geewallet.com" x:Name="footerLabel" |
| 131 | + VerticalOptions="End" |
| 132 | + HorizontalOptions="Center" |
| 133 | + Margin="0,10,0,10" /> |
| 134 | + </StackLayout> |
| 135 | + </ContentPage> |
| 136 | + </FlyoutPage.Detail> |
| 137 | +</FlyoutPage> |
0 commit comments