using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter.Guide { /// /// 引导界面2 /// public class GuideForm2 : GuideCommonForm { #region ■ 初始化_____________________________ /// /// 显示界面 /// public override void ShowFrom() { base.ShowFrom(); //蒙上阴影 var frameBack = new FrameLayout(); frameBack.BackgroundColor = 0xad000000; this.AddChidren(frameBack); //一个白色的框框 this.contrSwitch.BringToFront(); contrSwitch.Height += Application.GetRealWidth(23 * 2); contrSwitch.Width += Application.GetRealWidth(23 * 2); contrSwitch.Gravity = Gravity.CenterHorizontal; contrSwitch.BorderWidth = (uint)Application.GetRealWidth(23); contrSwitch.BorderColor = UserCenterColor.Current.White; contrSwitch.Radius = (uint)contrSwitch.Height / 2; this.btnScene.Gravity = Gravity.CenterVertical; this.btnFunction.Gravity = Gravity.CenterVertical; //虚线箭头 var btnArrows = new PicViewControl(51, 171); btnArrows.UnSelectedImagePath = "Guide/Arrows1.png"; btnArrows.X = Application.GetRealWidth(625); btnArrows.Y = contrSwitch.Bottom + Application.GetRealHeight(35); frameBack.AddChidren(btnArrows); //房间的内容在此处显示 var btnMsg = new NormalViewControl(frameBack.Width, Application.GetRealHeight(75), false); btnMsg.TextAlignment = TextAlignment.Center; btnMsg.TextColor = UserCenterColor.Current.White; btnMsg.TextSize = 18; btnMsg.TextID = R.MyInternationalizationString.uTheContentsOfTheRoomAreShownHere; btnMsg.Y = btnArrows.Bottom; frameBack.AddChidren(btnMsg); //我知道了 var btnKnwon = this.AddIKnwonButton(); btnKnwon.ButtonClickEvent += (sender, e) => { Phone.MainPage.LeftListRoomViewFrom.Instance.CanClick = true; this.RemoveFromParent(); }; } #endregion } }