프로젝트

일반

사용자정보

개정판 7ad417d8

ID7ad417d8de593b89ab81b0cc011ceafb54a3bf3c
상위 c4a8d205
하위 01f69275

이지연이(가) 9달 전에 추가함

issue #000: TextControl - Thickness 적용, view setting 값 그대로 적용

Change-Id: Ic75e25bf8dad1961e94b305faf3de8cdfcd936e9

차이점 보기:

MarkupToPDF/Controls/Text/TextControl.cs
142 142
            this.Base_TextBox.LostFocus += new RoutedEventHandler(Base_TextBox_LostFocus);            
143 143
            this.Base_TextBox.SelectionChanged += (sender, e) => MoveCustomCaret();
144 144

  
145
            if (Base_TextPath != null)
146
            {
147
                Base_TextPath.StrokeThickness = LineSize.Left;
148
            }
149

  
150
            //if (string.IsNullOrEmpty(this.Base_TextBox.Text))
151
            //{
152
            //    Base_TextPath.StrokeThickness = 20;
153
            //    LineSize = new Thickness(20, 20, 20, 20);
154
            //    //if (Base_TextPath != null)
155
            //    //{
156
            //    //    Base_TextPath.StrokeThickness = LineSize.Left;
157
            //    //}
158
            //}
159
            //else
160
            //{
161
            //    Base_TextPath.StrokeThickness = LineSize.Left;
162
            //}
163

  
164 145
            SetText();
165 146
            DrawingCloud();
166 147
        }
......
328 309
                this.BackColor = new SolidColorBrush(Color.FromArgb(Convert.ToByte(255 * 0.1),
329 310
                    Colors.White.R, Colors.White.G, Colors.White.B));
330 311
            }
331
            //if (Base_TextPath != null)
332
            //{
333
            //    Base_TextPath.StrokeThickness = LineSize.Left;
334
            //}
312

  
313
            if (Base_TextPath != null)
314
            {
315
                Base_TextPath.StrokeThickness = LineSize.Left;
316
            }
317

  
335 318
        }
336 319

  
337 320
        public void DrawingCloud()
......
365 348
                        {
366 349
                            List<Point> pCloud2 = new List<Point>
367 350
                            {
368
                                new Point(-LineSize.Left* 2 , -LineSize.Left* 2 ),
369
                                new Point(-LineSize.Left* 2 , BoxHeight + LineSize.Left * 2 ),
370
                                new Point(BoxWidth + LineSize.Left* 2 , BoxHeight + LineSize.Left * 2 ),
371
                                new Point(BoxWidth + LineSize.Left* 2  ,-LineSize.Left* 2 )
351
                                new Point(-LineSize.Left , -LineSize.Left ),
352
                                new Point(-LineSize.Left , BoxHeight + LineSize.Left ),
353
                                new Point(BoxWidth + LineSize.Left , BoxHeight + LineSize.Left ),
354
                                new Point(BoxWidth + LineSize.Left  ,-LineSize.Left)
372 355
                            };
373
                            PathData = (Generate(pCloud, this.ArcLength, this.LineSize.Left));
356
                            PathData = (Generate(pCloud2, this.ArcLength, this.LineSize.Left));
374 357
                            PathDataInner = (GenerateInner(pCloud));
375 358
                        }
376 359
                        break;

내보내기 Unified diff

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