New file |
| | |
| | | using System; |
| | | namespace Shared.Phone.UserCenter.SmartSound |
| | | { |
| | | public class SoundRowLayout : RowLayoutControl |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 重命名按钮 |
| | | /// </summary> |
| | | public NormalViewControl btnRename = null; |
| | | /// <summary> |
| | | /// 删除按钮 |
| | | /// </summary> |
| | | public NormalViewControl btnDelect = null; |
| | | /// <summary> |
| | | /// 备注 |
| | | /// </summary> |
| | | public NormalViewControl btnRemark = null; |
| | | /// <summary> |
| | | /// 图片路径 |
| | | /// </summary> |
| | | public string ImagePath = "SmartSound/SoundIcon.png"; |
| | | |
| | | /// <summary> |
| | | /// 智能音箱备注名称 |
| | | /// </summary> |
| | | public string Remark = ""; |
| | | |
| | | |
| | | public SoundRowLayout() |
| | | { |
| | | // this.Height = Application.GetRealHeight(170); |
| | | } |
| | | |
| | | /// <summary>
|
| | | /// 初始化内部控件
|
| | | /// </summary>
|
| | | public void InitControl() |
| | | { |
| | | try |
| | | { |
| | | //图标 |
| | | var btnIcon = frameTable.AddLeftIcon(81); |
| | | |
| | | btnIcon.UnSelectedImagePath = ImagePath; |
| | | btnIcon.SelectedImagePath = ImagePath; |
| | | |
| | | //备注名称按钮 |
| | | btnRemark = frameTable.AddLeftCaption(Remark, 800); |
| | | |
| | | //底线 |
| | | frameTable.AddBottomLine(); |
| | | |
| | | btnRename = base.AddEditorControl(); |
| | | btnRename.Text = "重命名"; |
| | | |
| | | btnDelect = base.AddDeleteControl(); |
| | | btnDelect.Text = "解除绑定"; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | // |
| | | } |
| | | } |
| | | } |
| | | } |