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(160),
|
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(60),
|
TextColor = SkinStyle.Current.TextColor1,
|
Text = "Contact Details",
|
TextSize = 18,
|
TextAlignment = TextAlignment.CenterLeft,
|
};
|
msgView.AddChidren (btnTitle);
|
|
var btnPhone = new Button () {
|
X = Application.GetRealWidth(30),
|
Y = Application.GetRealHeight (50),
|
Width = Application.GetRealWidth(500),
|
Height = Application.GetRealHeight(60),
|
TextColor = SkinStyle.Current.TextColor1,
|
Text = "Phone Number:9718218273",
|
TextAlignment = TextAlignment.CenterLeft,
|
};
|
msgView.AddChidren (btnPhone);
|
|
var btnMail = new Button () {
|
X =Application.GetRealWidth(30),
|
Y = Application.GetRealHeight (110),
|
Width = Application.GetRealWidth(500),
|
Height = Application.GetRealHeight(50),
|
TextColor = SkinStyle.Current.TextColor1,
|
Text = "E-mail ID: jai.singh @havells.com",
|
TextAlignment = TextAlignment.CenterLeft,
|
};
|
msgView.AddChidren (btnMail);
|
|
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);
|
|
}
|
}
|
}
|