黄学彪
2020-09-22 ade5917841b0fdcb1df7353ef7c56b1a1bdc9282
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/IconViewControl.cs
@@ -1,31 +1,31 @@
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);
            }
        }
    }
}
    }
}