프로젝트

일반

사용자정보

개정판 f0dba314

IDf0dba3143b8fb9d9cdc8f1446bb54ecfc5e4a41f
상위 b35682c3
하위 da7ab6ad

김태성이(가) 5년 이상 전에 추가함

ArrowTextControl 수정

Change-Id: Ibe066408fce3871970f2ff52f5d039e9f0e094cd

차이점 보기:

MarkupToPDF/Common/CommentUserInfo.cs
113 113
            get { return _CommentAngle; }
114 114
            set {
115 115
                _CommentAngle = value;
116
                System.Diagnostics.Debug.WriteLine($"CommentInfo CommentAngle {value}");
116
                //System.Diagnostics.Debug.WriteLine($"CommentInfo CommentAngle {value}");
117 117
            }
118 118
        }
119 119

  
MarkupToPDF/Controls/Text/ArrowTextControl.cs
96 96

  
97 97
            var angle = Math.Abs(this.PageAngle);
98 98
            //angle = 0;
99
            System.Diagnostics.Debug.WriteLine("Page Angle : " +  this.PageAngle);
99 100

  
100 101
            if (!double.IsInfinity(caretLocation.X))
101 102
            {
......
107 108
                {
108 109
                    
109 110
                    Canvas.SetLeft(this.BaseTextbox_Caret, (this.EndPoint.X+ this.Base_TextBox.ActualWidth) - caretLocation.X) ;
111
                    System.Diagnostics.Debug.WriteLine("Caret X : " + ((this.EndPoint.X + this.Base_TextBox.ActualWidth) - caretLocation.X));
110 112
                } 
111 113
                else if (angle == 270)
112 114
                {
......
114 116
                }
115 117
                else
116 118
                {
119
                    System.Diagnostics.Debug.WriteLine("Caret X : " + (this.EndPoint.X - caretLocation.X));
117 120
                    Canvas.SetLeft(this.BaseTextbox_Caret, this.EndPoint.X + caretLocation.X);
118 121
                } 
119 122
            }
......
127 130
                else if (angle == 180)
128 131
                {//보정치40
129 132
                    Canvas.SetTop(this.BaseTextbox_Caret, ((this.EndPoint.Y -40) + this.Base_TextBox.ActualHeight)- caretLocation.Y );
133
                    System.Diagnostics.Debug.WriteLine("Caret Y : " + (((this.EndPoint.Y - 40) + this.Base_TextBox.ActualHeight) - caretLocation.Y));
130 134
                }
131 135
                else if (angle == 270)
132 136
                {
......
134 138
                }
135 139
                else
136 140
                {
137
                    Canvas.SetTop(this.BaseTextbox_Caret, this.EndPoint.Y);
141
                    Canvas.SetTop(this.BaseTextbox_Caret, this.EndPoint.Y  + caretLocation.Y);
142
                    System.Diagnostics.Debug.WriteLine("Caret Y : " + (this.EndPoint.Y + caretLocation.Y - BaseTextbox_Caret.ActualHeight));
138 143
                }
139 144
            }
140 145
        }
......
1331 1336
                CenterY = this.CenterY,
1332 1337
            };
1333 1338

  
1339
            System.Diagnostics.Debug.WriteLine($"base TextBox center X : {this.CenterX} Y : {this.CenterY} ");
1340

  
1334 1341
            BaseTextbox_Caret.RenderTransform = new RotateTransform
1335 1342
            {
1336 1343
                Angle = this.VisualPageAngle,

내보내기 Unified diff

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