markus / KCOM / Common / ThumbnailItem.cs @ 3b938959
이력 | 보기 | 이력해설 | 다운로드 (3.13 KB)
1 |
using IKCOM; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Collections.ObjectModel; |
5 |
using System.ComponentModel; |
6 |
using System.Linq; |
7 |
using System.Text; |
8 |
|
9 |
namespace KCOM.Common |
10 |
{ |
11 |
public class ThumbnailItem : INotifyPropertyChanged |
12 |
{ |
13 |
public ThumbnailItem() |
14 |
{ |
15 |
|
16 |
} |
17 |
|
18 |
private Uri _ImageUri; |
19 |
|
20 |
public Uri ImageUri |
21 |
{ |
22 |
get { |
23 |
|
24 |
if (_ImageUri == null) |
25 |
{ |
26 |
_ImageUri = new Uri("/KCOM;component/Resources/Images/ExtImage/bmp.png", UriKind.Relative); |
27 |
} |
28 |
|
29 |
return _ImageUri; |
30 |
} |
31 |
set |
32 |
{ |
33 |
if (_ImageUri != value) |
34 |
{ |
35 |
_ImageUri = value; |
36 |
|
37 |
NotifyPropertyChanged("ImageUri"); |
38 |
} |
39 |
} |
40 |
} |
41 |
|
42 |
private bool _IsActive; |
43 |
|
44 |
public bool IsActive |
45 |
{ |
46 |
get { return _IsActive; } |
47 |
set |
48 |
{ |
49 |
if (_IsActive != value) |
50 |
{ |
51 |
_IsActive = value; |
52 |
|
53 |
NotifyPropertyChanged("IsActive"); |
54 |
} |
55 |
} |
56 |
} |
57 |
|
58 |
private int _PageNumber; |
59 |
|
60 |
public int PageNumber |
61 |
{ |
62 |
get { return _PageNumber; } |
63 |
set |
64 |
{ |
65 |
if (_PageNumber != value) |
66 |
{ |
67 |
_PageNumber = value; |
68 |
//NotifyPropertyChanged("PageNumber"); |
69 |
} |
70 |
} |
71 |
} |
72 |
|
73 |
|
74 |
//public int PageNumber { get; set; } |
75 |
private List<SetColorMarkupItem> _DisplayColorItems; |
76 |
|
77 |
public List<SetColorMarkupItem> DisplayColorItems |
78 |
{ |
79 |
get { |
80 |
return _DisplayColorItems; |
81 |
} |
82 |
|
83 |
set { |
84 |
_DisplayColorItems = value; |
85 |
|
86 |
NotifyPropertyChanged("DisplayColorItems"); |
87 |
} |
88 |
} |
89 |
|
90 |
private double _Angle; |
91 |
|
92 |
public double Angle |
93 |
{ |
94 |
get |
95 |
{ |
96 |
return _Angle; |
97 |
} |
98 |
|
99 |
set |
100 |
{ |
101 |
if (_Angle != value) |
102 |
{ |
103 |
_Angle = value; |
104 |
|
105 |
NotifyPropertyChanged("Angle"); |
106 |
} |
107 |
} |
108 |
} |
109 |
|
110 |
//강인구 추가 |
111 |
public double Width { get; set; } |
112 |
public double Height { get; set; } |
113 |
|
114 |
/// <summary> |
115 |
/// 페이지 경로 |
116 |
/// 2019.07.03 김태성 추가 |
117 |
/// </summary> |
118 |
public Uri PageUri { get; set; } |
119 |
|
120 |
public event PropertyChangedEventHandler PropertyChanged; |
121 |
|
122 |
public void NotifyPropertyChanged(string propertyName) |
123 |
{ |
124 |
//if (propertyName == "IsActive" && this.IsActive) |
125 |
//{ |
126 |
// NotifyPropertyChanged("ImageUri"); |
127 |
//} |
128 |
|
129 |
if (PropertyChanged != null) |
130 |
{ |
131 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
132 |
} |
133 |
} |
134 |
} |
135 |
|
136 |
//public class SetColorMarkupItem |
137 |
//{ |
138 |
// public string markupID { get; set; } |
139 |
// public string DisplayColor { get; set; } |
140 |
//} |
141 |
} |