프로젝트

일반

사용자정보

개정판 6e035f10

ID6e035f1062c7481dfa3af091f2f45fbc29cf6f52
상위 4c1692a1
하위 277df14f

송근호이(가) 5년 이상 전에 추가함

issue #000 TextControl Rotation 적용.

Change-Id: I2f071fdfd58319b54da2c46cf01cd2b1a360ace5

차이점 보기:

KCOM/Controls/AdornerFinal.xaml.cs
1215 1215
                        case ControlType.TextControl:
1216 1216
                            (member.DrawingData as CommentUserInfo).Angle = AngleValue;
1217 1217

  
1218
                            RectangleGeometry Data = new RectangleGeometry
1219
                            {
1220
                                Rect = new Rect()
1221
                                {
1222
                                    X = Canvas.GetLeft((member.DrawingData as TextControl)),
1223
                                    Y = Canvas.GetTop((member.DrawingData as TextControl)),
1224
                                    Width = (member.DrawingData as TextControl).Base_TextBlock.ActualWidth / 2,
1225
                                    Height = (member.DrawingData as TextControl).Base_TextBlock.ActualHeight / 2,
1226
                                }
1227
                            };
1228

  
1229
                            Point endPointV = new Point(Data.Bounds.Right, Data.Bounds.Bottom);
1230
                            Point middle = MathSet.getMiddlePoint((member.DrawingData as TextControl).StartPoint, endPointV);
1218
                            //RectangleGeometry Data = new RectangleGeometry
1219
                            //{
1220
                            //    Rect = new Rect()
1221
                            //    {
1222
                            //        X = Canvas.GetLeft((member.DrawingData as TextControl)),
1223
                            //        Y = Canvas.GetTop((member.DrawingData as TextControl)),
1224
                            //        Width = (member.DrawingData as TextControl).Base_TextBlock.ActualWidth / 2,
1225
                            //        Height = (member.DrawingData as TextControl).Base_TextBlock.ActualHeight / 2,
1226
                            //    }
1227
                            //};
1228

  
1229
                            //Point endPointV = new Point(Data.Bounds.Right, Data.Bounds.Bottom);
1230
                            //Point middle = MathSet.getMiddlePoint((member.DrawingData as TextControl).StartPoint, endPointV);
1231 1231

  
1232 1232
                            DragThumb.RenderTransformOrigin = new Point(0, 0);
1233 1233
                            DragThumb.RenderTransform = new RotateTransform()
1234 1234
                            {
1235
                                Angle = (member.DrawingData as TextControl).Angle,
1235

  
1236
                                Angle = (member.DrawingData as CommentUserInfo).Angle
1236 1237
                            };
1237 1238

  
1238 1239
                            AdornerBorder.RenderTransformOrigin = new Point(0, 0);
1239 1240
                            AdornerBorder.RenderTransform = new RotateTransform()
1240 1241
                            {
1241
                                Angle = (member.DrawingData as TextControl).Angle,
1242
                                //Angle = (member.DrawingData as TextControl).Angle,
1243
                                Angle = (member.DrawingData as CommentUserInfo).Angle
1242 1244
                            };
1243 1245

  
1244
                            (member.DrawingData as TextControl).Base_Grid.RenderTransform = new RotateTransform()
1245
                            {
1246
                                Angle = (member.DrawingData as TextControl).Angle,
1247
                            };
1246
                            //(member.DrawingData as TextControl).Base_Grid.RenderTransform = new RotateTransform()
1247
                            //{
1248
                            //    //Angle = (member.DrawingData as TextControl).Angle,
1249
                            //    Angle = (member.DrawingData as CommentUserInfo).Angle
1250
                            //};
1251

  
1252
                            (member.DrawingData as TextControl).Angle = AngleValue;
1248 1253

  
1249 1254
                            (member.DrawingData as CommentUserInfo).UpdateControl();
1250 1255
                            BorderUpdate();

내보내기 Unified diff

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