黄学彪
2020-12-16 0d9f64668fd7350d6a21fd157e32009a96d98134
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone
{
    /// <summary>
    /// 做成一个显示图标的控件(需要手动开启点击状态)
    /// </summary>
    public class IconViewControl : IconControlCommon
    {
        /// <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.InitIconSize(size, size, real);
            this.IconSize = size;
            if (real == true)
            {
                this.IconSize = this.GetPictrueRealSize(size);
            }
        }
    }
}