프로젝트

일반

사용자정보

개정판 0d00f9c8

ID0d00f9c81d1c7f1736863a06f43686f6fe0df84e
상위 5984979a
하위 8771edc4

백흠경이(가) 5년 이상 전에 추가함

issue #923: implementing drag textcontrol

Change-Id: I17d1f4ec754ea13646260d1c331d574ad680d47d

차이점 보기:

KCOM/Events/PasteCommand.cs
111 111

  
112 112
                double realPointX = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2);
113 113
                double realPointY = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2);
114
                final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
114
                final.TranslateItems(realPointX, realPointY);
115 115

  
116 116
                if (final.Members.Where(type => type.Drawingtype == MarkupToPDF.Controls.Common.ControlType.TextControl).FirstOrDefault() != null)
117 117
                {
118
                    final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(0.001, 0.001)); //dummy
118
                    final.TranslateItems(0.001, 0.001); //dummy
119 119
                }
120 120

  
121 121
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Add(final);
......
229 229

  
230 230
                    double realPointX = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2);
231 231
                    double realPointY = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2);
232
                    final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
232
                    final.TranslateItems(realPointX, realPointY);
233 233
                }
234 234
                catch (Exception ex)
235 235
                {

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)