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.UserCenter
| {
| /// <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.InitAvgSize(size, size, real);
| this.IconSize = size;
| if (real == true)
| {
| this.IconSize = Application.GetMinRealAverage(size);
| }
| }
| }
| }
|
|