| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | {
|
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Shared.Phone.UserCenter |
| | | { |
| | | /// <summary> |
| | | /// 做成一个TopFrameLayout的返回键✩ |
| | | /// </summary> |
| | | public class BackViewControl : FrameLayoutControl |
| | | public class BackViewControl : FrameLayoutStatuControl |
| | | { |
| | | /// <summary>
|
| | | /// 图标宽度
|
| | | /// <summary> |
| | | /// 图标宽度 |
| | | /// </summary> |
| | | private int iconWidth = 30; |
| | | |
| | |
| | | this.UseClickStatu = false; |
| | | this.Name = "btnBack"; |
| | | this.X = ControlCommonResourse.XXLeft - Application.GetRealWidth((110 - iconWidth) / 2); |
| | | this.Width = Application.GetMinRealAverage(110); |
| | | this.Height = Application.GetMinRealAverage(110); |
| | | this.Width = this.GetPictrueRealSize(110); |
| | | this.Height = this.GetPictrueRealSize(110); |
| | | this.Gravity = Gravity.CenterVertical; |
| | | } |
| | | |
| | | /// <summary>
|
| | | /// 初始化
|
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | | public void InitControl()
|
| | | {
|
| | | var btnIcon = new ButtonBase();
|
| | | btnIcon.Width = Application.GetMinRealAverage(30); |
| | | btnIcon.Height = Application.GetMinRealAverage(51); |
| | | btnIcon.UnSelectedImagePath = "Item/Back.png";
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | |
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | //这张图片好像很特殊,无法居中
|
| | | btnIcon.Y += Application.GetRealHeight(5);
|
| | | public void InitControl() |
| | | { |
| | | var btnIcon = new ButtonBase(); |
| | | btnIcon.Width = this.GetPictrueRealSize(30); |
| | | btnIcon.Height = this.GetPictrueRealSize(51); |
| | | btnIcon.UnSelectedImagePath = "Item/Back.png"; |
| | | btnIcon.Gravity = Gravity.Center; |
| | | |
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly); |
| | | //这张图片好像很特殊,无法居中 |
| | | btnIcon.Y += Application.GetRealHeight(5); |
| | | } |
| | | }
|
| | | }
|
| | | } |
| | | } |