개정판 4913851c
issue #923: change control's color when mouse is over1
Change-Id: Id6c30459bd314a0d7d87d9c3ba037aef0db53338
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
174 | 174 |
string id = ""; |
175 | 175 |
if (item.GetType().Name == "AdornerFinal") |
176 | 176 |
{ |
177 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
177 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
178 | 178 |
{ |
179 | 179 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
180 | 180 |
{ |
... | ... | |
224 | 224 |
|
225 | 225 |
if (item.GetType().Name == "AdornerFinal") |
226 | 226 |
{ |
227 |
foreach (var InnerItem in (item as Controls.AdornerFinal).MemberSet.Cast<Controls.AdornerMember>())
|
|
227 |
foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
|
|
228 | 228 |
{ |
229 | 229 |
if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData)) |
230 | 230 |
{ |
... | ... | |
309 | 309 |
double realPointY = this.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
310 | 310 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY)); |
311 | 311 |
|
312 |
if (final.MemberSet.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
|
|
312 |
if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
|
|
313 | 313 |
{ |
314 | 314 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001)); //dummy |
315 | 315 |
} |
316 | 316 |
|
317 | 317 |
this.dzMainMenu.SelectLayer.Children.Add(final); |
318 |
|
|
319 |
//붙여 넣을때 원본 컨트롤과 겹치지 않도록 설정 |
|
320 |
//Canvas.SetLeft(final, 50); |
|
321 |
//Canvas.SetTop(final, 50); |
|
322 |
|
|
323 | 318 |
} |
324 | 319 |
//외부 이미지 붙여넣기 |
325 | 320 |
else if (Clipboard.GetImage() != null) |
내보내기 Unified diff