개정판 0d00f9c8
issue #923: implementing drag textcontrol
Change-Id: I17d1f4ec754ea13646260d1c331d574ad680d47d
KCOM/MainWindow.xaml.cs | ||
---|---|---|
570 | 570 |
|
571 | 571 |
double realPointX = this.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2); |
572 | 572 |
double realPointY = this.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
573 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
|
|
573 |
final.TranslateItems(realPointX, realPointY);
|
|
574 | 574 |
|
575 | 575 |
if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null) |
576 | 576 |
{ |
577 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001));
|
|
577 |
final.TranslateItems(0.001, 0.001);
|
|
578 | 578 |
} |
579 | 579 |
|
580 | 580 |
this.dzMainMenu.SelectLayer.Children.Add(final); |
... | ... | |
676 | 676 |
|
677 | 677 |
double realPointX = this.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2); |
678 | 678 |
double realPointY = this.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
679 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
|
|
679 |
final.TranslateItems(realPointX, realPointY);
|
|
680 | 680 |
} |
681 | 681 |
catch(Exception ex) |
682 | 682 |
{ |
내보내기 Unified diff