개정판 8295a079
issue #000: TriControl drawing 시 mousePosition을 지나 선이 그려지는 현상 수정
Change-Id: Ie962af92cf9d7cf98755f302f2fbbe5d5080a016
MarkupToPDF/Controls/Shape/TriControl.cs | ||
---|---|---|
355 | 355 |
private void SetTri() |
356 | 356 |
{ |
357 | 357 |
this.ApplyTemplate(); |
358 |
|
|
358 | 359 |
Base_TriPath.StrokeDashArray.Clear(); |
359 | 360 |
foreach (var item in this.DashSize) |
360 | 361 |
{ |
... | ... | |
393 | 394 |
points.Add(this.EndPoint); |
394 | 395 |
PolyLineSegment polyline = new PolyLineSegment(points , true); |
395 | 396 |
pathFigure.Segments.Add(polyline); |
396 |
|
|
397 |
//polyline.IsSmoothJoin 끝이 둥글해짐 |
|
398 |
|
|
397 | 399 |
PathGeometry pathGeometry = new PathGeometry(); |
398 | 400 |
pathGeometry.Figures = new PathFigureCollection(); |
399 |
pathFigure.IsClosed = true; |
|
401 |
if(points.Count == 3) |
|
402 |
pathFigure.IsClosed = true; |
|
400 | 403 |
pathGeometry.Figures.Add(pathFigure); |
401 | 404 |
|
402 | 405 |
this.PathData = pathGeometry; |
내보내기 Unified diff