프로젝트

일반

사용자정보

개정판 e65e8c5c

IDe65e8c5cb23d23362889f3be6e0a4248c9aa29c4
상위 1b0edce7
하위 5a565c3c

백흠경이(가) 9달 전에 추가함

Fix: 회전 로직 수정

Change-Id: I8f2e7b85a1365f06764fbd9203f29594610b14c5

차이점 보기:

MarkupToPDF/Controls/Shape/CircleControl.cs
13 13
namespace MarkupToPDF.Controls.Shape
14 14
{
15 15
    [TemplatePart(Name = "PART_CirclePath", Type = typeof(Path))]
16
    public class CircleControl : CommentUserInfo, IDisposable, IPath, INotifyPropertyChanged, IMarkupCommonData, IShapeControl, ICircleControl, IDashControl
16
    public class CircleControl : CommentUserInfo, IDisposable, INotifyPropertyChanged, ICircleControl, IDashControl
17 17
    {
18 18
        private const string PART_CirclePath = "PART_CirclePath";
19 19
        public Path Base_CirclePath = null;
......
403 403
            CircleGroup.Children.Clear();
404 404
            CircleGroup.FillRule = FillRule.Nonzero;
405 405
            CircleGroup.Children.Add(instance);
406
            //CircleGroup.Children.Add(new LineGeometry(this.StartPoint, this.LeftBottomPoint));
407
            //CircleGroup.Children.Add(new LineGeometry(this.LeftBottomPoint, this.EndPoint));
408
            //CircleGroup.Children.Add(new LineGeometry(this.EndPoint, this.TopRightPoint));
409
            //CircleGroup.Children.Add(new LineGeometry(this.TopRightPoint, this.StartPoint));
410 406

  
411 407
            try
412 408
            {                
......
426 422

  
427 423
        public override void UpdateControl()
428 424
        {
429
            this.StartPoint = new Point(this.PointSet[0].X, this.PointSet[0].Y);
430
            this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y);
431
            this.TopRightPoint = new Point(this.PointSet[3].X, this.PointSet[3].Y);
432
            this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y);
425
            if (this.PointSet.Any())
426
            {
427
                this.StartPoint = new Point(this.PointSet[0].X, this.PointSet[0].Y);
428
                this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y);
429
                this.TopRightPoint = new Point(this.PointSet[3].X, this.PointSet[3].Y);
430
                this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y);
431
            }
433 432
        }
434 433

  
435 434
        public void SetCenterXY()

내보내기 Unified diff

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