8 writes to Location
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (8)
320next.Location = (slope < 1) ? new Point(next.Location.X, previous.Location.Y) : new Point(previous.Location.X, next.Location.Y); 330previous.Location = (slope < 1) ? new Point(previous.Location.X, next.Location.Y) : new Point(next.Location.X, previous.Location.Y); 448this.activeEditPoint.Location = newPoint; 469this.activeEditPoint.Location = targetConnPt.Location; 483this.activeEditPoint.Location = targetConnPt.Location; 510previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y); 515next.Location = (orientation == Orientation.Horizontal) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y); 518this.activeEditPoint.Location = newPoint;
71 references to Location
System.Activities.Presentation (71)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (71)
65&& this.editedConnector.Points[0] != this.EditPoints[0].Location); 74&& this.editedConnector.Points[this.editedConnector.Points.Count - 1] != this.EditPoints[this.EditPoints.Count - 1].Location); 126if (DesignerGeometryHelper.DistanceBetweenPoints(pt, editPoint.Location) <= EditPointHitTestRadius) 181if (this.editPoints.Count == 0 || !this.editPoints[0].Location.Equals(editedConnector.Points[0])) 243segments.Add(this.EditPoints[i].Location); 297double slope = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 300Point location = (slope < 1) ? new Point(next.Location.X, current.Location.Y) : new Point(current.Location.X, next.Location.Y); 316double distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { previous.Location, current.Location }); 319double slope = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 320next.Location = (slope < 1) ? new Point(next.Location.X, previous.Location.Y) : new Point(previous.Location.X, next.Location.Y); 326distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { current.Location, next.Location }); 329double slope = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, current.Location); 330previous.Location = (slope < 1) ? new Point(previous.Location.X, next.Location.Y) : new Point(next.Location.X, previous.Location.Y); 349double slope1 = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, current.Location); 350double slope2 = DesignerGeometryHelper.SlopeOfLineSegment(current.Location, next.Location); 404double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, this.activeEditPoint.Location); 407int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints(previous.Location, (next != null) ? next.Location : this.activeEditPoint.Location)) / 4; 410editPointOffset *= (previous.Location.X < this.activeEditPoint.Location.X) ? 1 : -1; 414editPointOffset *= (previous.Location.Y < this.activeEditPoint.Location.Y) ? 1 : -1; 418Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset); 425double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.Location, next.Location); 428int editPointOffset = Convert.ToInt32(DesignerGeometryHelper.DistanceBetweenPoints((previous != null) ? previous.Location : this.activeEditPoint.Location, next.Location)) / 4; 431editPointOffset *= (this.activeEditPoint.Location.X < next.Location.X) ? -1 : 1; 435editPointOffset *= (this.activeEditPoint.Location.Y < next.Location.Y) ? -1 : 1; 439Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset); 453Point begin = this.editPoints[0].Location; 454Point end = this.editPoints[this.editPoints.Count - 1].Location; 508double slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(previous.Location, this.activeEditPoint.Location); 510previous.Location = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y); 513slopeOfLine = DesignerGeometryHelper.SlopeOfLineSegment(this.activeEditPoint.Location, next.Location); 515next.Location = (orientation == Orientation.Horizontal) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y); 607drawingContext.DrawEllipse(renderBrush, renderPen, adornedEditor.EditPoints[i].Location, renderRadius, renderRadius); 610drawingContext.DrawLine(renderPen, adornedEditor.EditPoints[i].Location, adornedEditor.EditPoints[i + 1].Location); 613drawingContext.DrawEllipse(renderBrush, renderPen, adornedEditor.EditPoints[i].Location, renderRadius, renderRadius);