개정판 8295a079
issue #000: TriControl drawing 시 mousePosition을 지나 선이 그려지는 현상 수정
Change-Id: Ie962af92cf9d7cf98755f302f2fbbe5d5080a016
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
3454 | 3454 |
currentControl = new TriControl |
3455 | 3455 |
{ |
3456 | 3456 |
StartPoint = new Point(CanvasDrawingMouseDownPoint.X, CanvasDrawingMouseDownPoint.Y), |
3457 |
//MidPoint = new Point(0, 0), |
|
3458 | 3457 |
Background = new SolidColorBrush(Colors.Black), |
3459 | 3458 |
}; |
3460 | 3459 |
|
... | ... | |
4731 | 4730 |
{ |
4732 | 4731 |
mouseOff = true; |
4733 | 4732 |
} |
4733 |
|
|
4734 | 4734 |
} |
4735 | 4735 |
} |
4736 | 4736 |
|
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