1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
using System;
using System.Collections.Generic;
using Shared.SimpleControl.Phone.Music;
 
namespace Shared.SimpleControl.Phone
{
    public class HelpView : FrameLayout
    {
        public HelpView ()
        {
            BackgroundColor = SkinStyle.Current.MainColor;
        }
 
        public void ShowPage()
        {
            #region 标题
            var topView = new FrameLayout () {
                Y = Application.GetRealHeight (36),
                Height = Application.GetRealHeight (90),
                Width = Application.GetRealWidth (640),
            };
            AddChidren (topView);
 
            var title = new Button () {
                TextAlignment = TextAlignment.Center,
                TextID = R.MyInternationalizationString.Help,
                TextColor = SkinStyle.Current.TextColor1,
                TextSize = 19,
            };
            topView.AddChidren (title);
 
            var back = new Button () {
                Height = Application.GetRealHeight (100),
                Width = Application.GetRealWidth (85),
                UnSelectedImagePath = "Item/Back.png",
                SelectedImagePath = "Item/BackSelected.png",
            };
            topView.AddChidren (back);
            back.MouseUpEventHandler += (sender, e) => {
                (Parent as PageLayout).PageIndex -= 1;
            };
 
            var logo = new Button () {
                Width = Application.GetRealWidth (154),
                Height = Application.GetRealHeight (90),
                X = Application.GetRealWidth (486),
                UnSelectedImagePath = MainPage.LogoString,
            };
            topView.AddChidren (logo);
            #endregion
 
            var msgView = new FrameLayout () { 
                Y = Application.GetRealHeight(126),
                Height = Application.GetRealHeight(320),
                BackgroundColor = SkinStyle.Current.ViewColor,
            };
            AddChidren (msgView);
 
            var btnTitle = new Button () {
                X  =Application.GetRealWidth(30),
                Y = Application.GetRealHeight(0),
                Width = Application.GetRealWidth(500),
                Height = Application.GetRealHeight(80),
                TextColor  = SkinStyle.Current.TextColor1,
                Text = "Contact Details",
                TextSize = 18,
                TextAlignment = TextAlignment.CenterLeft,
            };
            msgView.AddChidren (btnTitle);
 
            var btnPhone = new Button () { 
                X = Application.GetRealWidth(30),
                Y = btnTitle.Bottom,
                Width = Application.GetRealWidth(500),
                Height = Application.GetRealHeight(60),
                TextColor = SkinStyle.Current.TextColor1,
                Text = "Toll Free No.",
                TextAlignment = TextAlignment.CenterLeft,
            };
            msgView.AddChidren (btnPhone);
            var btnPhone1 = new Button () {
                X = Application.GetRealWidth (100),
                Y = btnPhone.Bottom,
                Width = Application.GetRealWidth (500),
                Height = Application.GetRealHeight (40),
                TextColor = SkinStyle.Current.TextColor1,
                Text = "1800 11 0303,1800 103 1313",
                TextAlignment = TextAlignment.CenterLeft,
            };
            msgView.AddChidren (btnPhone1);
          
            var btnMail = new Button () { 
                X =Application.GetRealWidth(30),
                Y = btnPhone1.Bottom + Application.GetRealHeight (10),
                Width = Application.GetRealWidth(500),
                Height = Application.GetRealHeight(50),
                TextColor = SkinStyle.Current.TextColor1,
                Text = "E-mail ID:",
                TextAlignment = TextAlignment.CenterLeft,
            };
            msgView.AddChidren (btnMail);
 
            var btnMail2 = new Button () {
                X = Application.GetRealWidth (100),
                Y = btnMail.Bottom,
                Width = Application.GetRealWidth (500),
                Height = Application.GetRealHeight (50),
                TextColor = SkinStyle.Current.TextColor1,
                Text = "customercare@havells.com",
                TextAlignment = TextAlignment.CenterLeft,
            };
            msgView.AddChidren (btnMail2);
 
            var btnFAQ = new Button () { 
                Height = Application.GetRealHeight(100),
                Y = msgView.Bottom + Application.GetRealHeight(20),
                TextColor = SkinStyle.Current.TextColor1,
                //Padding = new Padding(0,300,0,0),
                Text = "FAQ",
                TextSize = 18,
                BackgroundColor = SkinStyle.Current.ViewColor
            };
            AddChidren (btnFAQ);
 
            var btnLine = new Button () { 
                Y = btnFAQ.Bottom,
                BackgroundColor = SkinStyle.Current.Black50Transparent,
                Height = 1,
            };
            AddChidren (btnLine);
 
        }
    }
}