개정판 0d00f9c8
issue #923: implementing drag textcontrol
Change-Id: I17d1f4ec754ea13646260d1c331d574ad680d47d
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
2743 | 2743 |
{ |
2744 | 2744 |
double realPointX = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2); |
2745 | 2745 |
double realPointY = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
2746 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
|
|
2746 |
final.TranslateItems(realPointX, realPointY);
|
|
2747 | 2747 |
|
2748 | 2748 |
if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null) |
2749 | 2749 |
{ |
2750 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001)); //dummy
|
|
2750 |
final.TranslateItems(0.001, 0.001); //dummy
|
|
2751 | 2751 |
} |
2752 | 2752 |
|
2753 | 2753 |
} |
... | ... | |
2873 | 2873 |
|
2874 | 2874 |
double realPointX = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2); |
2875 | 2875 |
double realPointY = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2); |
2876 |
final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
|
|
2876 |
final.TranslateItems(realPointX, realPointY);
|
|
2877 | 2877 |
} |
2878 | 2878 |
catch(Exception ex) |
2879 | 2879 |
{ |
내보내기 Unified diff