| | |
| | | /// <summary> |
| | | /// 做成放在画面右边的的图标控件(注意,它不能用来做【向右】的图标) |
| | | /// </summary> |
| | | public class MostRightIconControl : FrameLayoutControl |
| | | public class MostRightIconControl : FrameLayoutStatuControl
|
| | | { |
| | | /// <summary>
|
| | | /// 图标控件(迫不得己,这个东西开放出去)
|
| | |
| | | { |
| | | this.UseClickStatu = false; |
| | | |
| | | this.Width = Application.GetMinRealAverage(110); |
| | | this.Width = this.GetPictrueRealSize(110);
|
| | | this.Height = this.Parent != null ? this.Parent.Height : ControlCommonResourse.ListViewRowHeight; |
| | | this.Gravity = Gravity.CenterVertical; |
| | | |
| | | var XX = Application.CurrentWidth - Application.GetMinRealAverage(i_width) - ControlCommonResourse.XXLeft; |
| | | this.X = XX - Application.GetMinRealAverage((110 - i_width) / 2);
|
| | | var XX = Application.CurrentWidth - this.GetPictrueRealSize(i_width) - ControlCommonResourse.XXLeft;
|
| | | this.X = XX - this.GetPictrueRealSize((110 - i_width) / 2);
|
| | |
|
| | | this.btnIcon = new IconControlCommon();
|
| | | btnIcon.Width = Application.GetMinRealAverage(i_width); |
| | | btnIcon.Height = Application.GetMinRealAverage(i_height);
|
| | | btnIcon.Width = this.GetPictrueRealSize(i_width);
|
| | | btnIcon.Height = this.GetPictrueRealSize(i_height);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | } |
| | | |