-
Notifications
You must be signed in to change notification settings - Fork 307
/
PaymentFailurePage.xaml
68 lines (59 loc) · 2.62 KB
/
PaymentFailurePage.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
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="EssentialUIKit.Views.Transaction.PaymentFailurePage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:button="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
xmlns:svg="clr-namespace:EssentialUIKit.Controls"
Title="Payment Failure Page"
BackgroundColor="{DynamicResource Gray-100}"
NavigationPage.HasNavigationBar="False">
<ContentPage.Content>
<Grid>
<button:SfButton
Margin="8"
Command="{Binding BackButtonCommand}"
FontSize="20"
HorizontalOptions="End"
Style="{StaticResource IconButtonStyle}"
Text="{StaticResource Close}"
VerticalOptions="Start" />
<ScrollView HorizontalOptions="Center" VerticalOptions="Center">
<StackLayout
HorizontalOptions="Center"
Spacing="0"
VerticalOptions="Center">
<!-- Payment status image -->
<svg:SVGImage
Margin="0,10,0,0"
HeightRequest="80"
Source="{Binding PaymentFailureIcon}"
WidthRequest="80" />
<!-- Payment status label -->
<Label
Margin="0,40,0,0"
FontSize="20"
LineHeight="{OnPlatform Android=1.25,
Default=-1}"
Style="{StaticResource TitleLabelStyle}"
Text="PAYMENT FAILURE" />
<!-- Payment description label -->
<Label
Margin="17,8"
FontFamily="Montserrat-Medium"
LineHeight="{OnPlatform Android=1.25,
Default=-1}"
Style="{StaticResource TitleLabelStyle}"
Text="Please check your internet connection." />
<button:SfButton
Margin="0,24"
Command="{Binding MakePaymentCommand}"
Style="{StaticResource GradientButtonStyle}"
Text="MAKE PAYMENT"
VerticalOptions="Start"
WidthRequest="245" />
</StackLayout>
</ScrollView>
</Grid>
</ContentPage.Content>
</ContentPage>