| | |
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 初始化控件大小(以平均值进行真实数值计算)
|
| | | /// 初始化图标控件大小(以平均值进行真实数值计算)
|
| | | /// </summary>
|
| | | /// <param name="i_Width">宽度</param> |
| | | /// <param name="i_Height">高度</param> |
| | | /// <param name="real">是否计算真实值</param>
|
| | | public void InitAvgSize(int i_Width, int i_Height, bool real = true)
|
| | | public void InitIconSize(int i_Width, int i_Height, bool real = true)
|
| | | {
|
| | | if (real == true)
|
| | | {
|
| | | i_Width = Application.GetMinRealAverage(i_Width);
|
| | | i_Height = Application.GetMinRealAverage(i_Height);
|
| | | } |
| | | |
| | | this.Height = i_Height; |
| | | this.Width = i_Width;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 初始化图片控件大小
|
| | | /// </summary>
|
| | | /// <param name="i_Width">宽度</param> |
| | | /// <param name="i_Height">高度</param> |
| | | /// <param name="real">是否计算真实值</param>
|
| | | public void InitPictrueSize(int i_Width, int i_Height, bool real = true)
|
| | | {
|
| | | if (real == true)
|
| | | {
|
| | | i_Width = HdlControlLogic.Current.GetPictrueRealSize(i_Width);
|
| | | i_Height = HdlControlLogic.Current.GetPictrueRealSize(i_Height);
|
| | | } |
| | | |
| | | this.Height = i_Height; |
| | |
| | | return;
|
| | | }
|
| | | //Y轴重置
|
| | | this.Y = UserCenterLogic.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space);
|
| | | this.Y = HdlControlLogic.Current.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space);
|
| | | }
|
| | |
|
| | | /// <summary>
|