| | |
| | | public ScenePictrueControl()
|
| | | {
|
| | | this.UseClickStatu = false;
|
| | | this.Height = Application.GetRealHeight(470);
|
| | | this.Height = Application.GetRealHeight(440);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | var btnPic = new ImageView();
|
| | | btnPic.X = Application.GetRealWidth(179);
|
| | | btnPic.Width = Application.GetRealWidth(844);
|
| | | btnPic.Height = Application.GetRealHeight(420);
|
| | | btnPic.Height = Application.GetRealHeight(397);
|
| | | if (sceneUI.IconPathType == 0)
|
| | | {
|
| | | btnPic.ImagePath = sceneUI.IconPath;
|
| | |
| | | btnPic.Radius = (uint)Application.GetRealHeight(17);
|
| | | this.AddChidren(btnPic, ChidrenBindMode.NotBind);
|
| | |
|
| | | //它的上面有一层阴影
|
| | | var frameBack = new FrameLayout();
|
| | | frameBack.Width = btnPic.Width;
|
| | | frameBack.Height = btnPic.Height;
|
| | | frameBack.X = btnPic.X;
|
| | | frameBack.BackgroundColor = 0x40000000;
|
| | | frameBack.Radius = (uint)Application.GetRealHeight(17);
|
| | | this.AddChidren(frameBack, ChidrenBindMode.BindEventOnly);
|
| | | //阴影
|
| | | var btnShadow = new PicViewControl(btnPic.Width + Application.GetRealWidth(14 * 2), btnPic.Height + Application.GetRealHeight(43), false);
|
| | | btnShadow.X = btnPic.X - Application.GetRealWidth(14);
|
| | | btnShadow.UnSelectedImagePath = "Scene/SceneShadow.png";
|
| | | this.AddChidren(btnShadow, ChidrenBindMode.BindEventOnly);
|
| | |
|
| | | var btnName = new NormalViewControl(251, 282, true);
|
| | | btnName.IsMoreLines = true;
|