개정판 7ad417d8
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