| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter
|
| | | {
|
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Shared.Phone.UserCenter |
| | | { |
| | | /// <summary> |
| | | /// 做成一个显示图标的控件✩ |
| | | /// 做成一个显示图标的控件(需要手动开启点击状态) |
| | | /// </summary> |
| | | public class IconViewControl : IconControlCommon |
| | | { |
| | | /// <summary>
|
| | | /// 图标大小
|
| | | /// <summary> |
| | | /// 图标大小 |
| | | /// </summary> |
| | | public int IconSize = 0; |
| | | /// <summary> |
| | | /// 做成一个显示图标的控件 |
| | | /// 做成一个显示图标的控件(需要手动开启点击状态) |
| | | /// </summary> |
| | | /// <param name="size">大小</param> |
| | | /// <param name="real">是否计算真实值</param> |
| | | public IconViewControl(int size = 110, bool real = true) |
| | | { |
| | | this.InitAvgSize(size, size, real); |
| | | this.InitIconSize(size, size, real); |
| | | this.IconSize = size; |
| | | if (real == true)
|
| | | {
|
| | | this.IconSize = Application.GetMinRealAverage(size);
|
| | | if (real == true) |
| | | { |
| | | this.IconSize = this.GetPictrueRealSize(size); |
| | | } |
| | | } |
| | | }
|
| | | }
|
| | | } |
| | | } |