| | |
| | | btnIcon.Radius = (uint)this.GetRealSizeEx(294) / 2;
|
| | | btnIcon.Y = frameDetail.Y - this.GetRealSizeEx(294) / 2;
|
| | | btnIcon.Gravity = Gravity.CenterHorizontal;
|
| | | btnIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(UserCenterResourse.UserInfo.UserIconFile);
|
| | | btnIcon.ImageBytes = Shared.IO.FileUtils.ReadFile(HdlFileNameResourse.UserHeadIconFile);
|
| | | frameBack.AddChidren(btnIcon);
|
| | | //用户名
|
| | | var btnUser = new NormalViewControl(frameBack.Width, this.GetRealHeight(50), false);
|
| | | btnUser.IsBold = true;
|
| | | btnUser.Y = btnIcon.Bottom + this.GetRealSizeEx(23);
|
| | | btnUser.Text = UserCenterResourse.UserInfo.UserName;
|
| | | btnUser.Text = HdlUserCenterResourse.UserInfo.NickName;
|
| | | btnUser.TextAlignment = TextAlignment.Center;
|
| | | btnUser.TextColor = UserCenterColor.Current.TextGrayColor2;
|
| | | frameBack.AddChidren(btnUser);
|
| | | //二维码
|
| | | var btnQrCode = new PicViewControl(this.GetRealSizeEx(236), this.GetRealSizeEx(236), false);
|
| | | btnQrCode.ImageBytes = QRCode.BytesFromText(UserCenterResourse.UserInfo.Account, this.GetPictrueRealSize(236), this.GetPictrueRealSize(236));
|
| | | btnQrCode.ImageBytes = QRCode.BytesFromText(HdlUserCenterResourse.UserInfo.Account, this.GetPictrueRealSize(236), this.GetPictrueRealSize(236));
|
| | | btnQrCode.Gravity = Gravity.CenterHorizontal;
|
| | | btnQrCode.Y = btnUser.Bottom + this.GetRealSizeEx(69);
|
| | | frameBack.AddChidren(btnQrCode);
|