1373 instantiations of Point
PresentationCore (227)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (7)
118temp.Location = new Point( 194return new Point( 296return new Point( 544return new Point( 566temp.Location = new Point( 794return new Point(); 829return new Rect(new Point(), new System.Windows.Vector());
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (1)
232return (IRawElementProviderFragment) ElementUtil.Invoke( peer, new DispatcherOperationCallback( InContextElementProviderFromPoint ), new Point( x, y ) );
Core\CSharp\MS\Internal\Ink\Bezier.cs (4)
58points.Add(new Point(vector.X, vector.Y)); 531points.Add(new Point(vector.X, vector.Y)); 548points.Add(new Point(Q[i].X, Q[i].Y)); 562points.Add(new Point(Q[3].X, Q[3].Y));
Core\CSharp\MS\Internal\Ink\Lasso.cs (2)
217Point lastNodePosition = new Point(); 723Point intersectionPoint = new Point(0, 0);
Core\CSharp\MS\Internal\Ink\Quad.cs (4)
30private static Quad s_empty = new Quad(new Point(0, 0), new Point(0, 0), new Point(0, 0), new Point(0, 0));
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (8)
209abPoints.Add(new Point(startNodeBounds.Width, startNodeBounds.Height)); 333abPoints.Add(new Point(bounds.Width, bounds.Height)); 526dcPoints.Add(new Point(node2Bounds.Width, node2Bounds.Height)); 602abPoints.Add(new Point(node2Bounds.Width, node2Bounds.Height)); 833return new Point(x, y); 840return new Point(line1End.X, line1End.Y); 843return new Point(Double.NaN, Double.NaN); 1078return new Point( _lastNode.Position.X + xDiff,
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
67connectingQuadPoints.Add(new Point(0d, 0d)); 1137internal static readonly Point ArcToMarker = new Point(Double.MinValue, Double.MinValue);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (13)
219Point topLeft = new Point(-(m_width * 0.5), -(m_height * 0.5)); 291new Point( -radiusX, -borderMagicY), 292new Point(-borderMagicX, -radiusY), 293new Point( 0, -radiusY), 294new Point( borderMagicX, -radiusY), 295new Point( radiusX, -borderMagicY), 296new Point( radiusX, 0), 297new Point( radiusX, borderMagicY), 298new Point( borderMagicX, radiusY), 299new Point( 0, radiusY), 300new Point(-borderMagicX, radiusY), 301new Point( -radiusX, borderMagicY), 302new Point( -radiusX, 0)};
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (5)
420Point point2 = new Point(); 435Point point2 = new Point(); 436Point point3 = new Point(); 555point = new Point(XamlSerializationHelper.ReadDouble(br), 572point = new Point(DeserializeDouble(br, isScaledIntegerX),
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (12)
61_p1Transformed = new Point(projPoint1.X, projPoint1.Y); 62_p2Transformed = new Point(projPoint2.X, projPoint2.Y); 194Point pointHit = new Point(); 222result = new Point(); 240visCorners[0] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Top)); 241visCorners[1] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Top)); 242visCorners[2] = _transform2D.Transform(new Point(_visualBounds.Right, _visualBounds.Bottom)); 243visCorners[3] = _transform2D.Transform(new Point(_visualBounds.Left, _visualBounds.Bottom)); 336triangleTexCoords[j] = new Point(0,0); 1044Point closestIntersection = new Point(); // the uv of the closest intersection 1045finalPoint = new Point(); 1164result = new Point();
Core\CSharp\MS\Internal\Media3D\GeneralTransform3Dto2Dto3D.cs (1)
58Point intermediate2DPoint = new Point();
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (4)
441hitCoord = new Point(); 449hitCoord = new Point(); 460hitCoord = new Point(); 472hitCoord = new Point(u, v);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (1)
372return new Point(
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (10)
685Point vectorToOrigin = new Point(); 730DrawTextLine(null, new Point(0, 0), null); 934new Point(hitTestDistance, 0), 1561Point position = new Point(0,0); 1844new Point(0, 0), 1869new Point(0, 0), 1922new Point(0, 0), 1943new Point(0, 0), 2030Point position = new Point(0, 0); 2177new DrawingState(null, new Point(0, 0), null, this),
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (10)
1504new Point(drawingLineOrigin.X + lineLength, drawingLineOrigin.Y) 2656Point baselineOrigin = new Point( 2681new Point(), 2689new Point(), 2713new Point(), 3063baselineOrigin = new Point(RoundDipForDisplayModeJustifiedText(IdealToRealWithNoRounding(idealBaselineOriginX), pixelsPerDip), 3213Point runOrigin = new Point(); 3281glyphOffsets[i] = new Point( 3315glyphOffsets.Add(new Point( 3370Point runOrigin = new Point();
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (6)
344xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y); 348xy = new Point(u + vectorToOrigin.X + origin.X, v + origin.Y); 377xy = new Point(line.Formatter.IdealToReal(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y); 381xy = new Point(line.Formatter.IdealToReal(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.IdealToReal(v, line.PixelsPerDip) + origin.Y); 443new Point(line.Formatter.IdealToReal(topLeft.x, line.PixelsPerDip), line.Formatter.IdealToReal(topLeft.y, line.PixelsPerDip)), 444new Point(line.Formatter.IdealToReal(bottomRight.x, line.PixelsPerDip), line.Formatter.IdealToReal(bottomRight.y, line.PixelsPerDip))
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (6)
579DrawTextLine(null, new Point(0, 0)); 869new Point( 873new Point( 931Point start = new Point(0, 0); 1813new Point(x, y), 1875Point lineOrigin = new Point(x, y + offset);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
87return new Point(_xArray[index], _yArray[index]);
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
294return new Point(double.NaN, double.NaN);
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
401Point pt = new Point(double.NaN, double.NaN); 406pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (4)
216Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 516Point pt = new Point(double.NaN, double.NaN); 530Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 535pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
Core\CSharp\System\Windows\DragDrop.cs (2)
1103new Point(0, 0)); 1324screenPoint = new Point((int)(dragPoint & 0xffffffff), (int)((dragPoint >> 32) & 0xffffffff));
Core\CSharp\System\Windows\DragEventArgs.cs (1)
104dropPoint = new Point(0, 0);
Core\CSharp\System\Windows\Ink\Stroke2.cs (2)
731Point w = originalDa.StylusTipTransform.Transform(new Point(originalDa.Width, 0)); 732Point h = originalDa.StylusTipTransform.Transform(new Point(0, originalDa.Height));
Core\CSharp\System\Windows\Input\InputElement.cs (6)
292return new Point(); 336return new Point(); 365return new Point(); 371return new Point(); 377return new Point(); 384return new Point();
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (8)
49new Point(e.OriginX, e.OriginY))); 66new Point(e.OriginX, e.OriginY), 104new Point(e.OriginX, e.OriginY), 138new Point(e.OriginX, e.OriginY), 184new Point(e.OriginX, e.OriginY), 258new Point(e.ManipulationOrigin.X, e.ManipulationOrigin.Y), 620_containerPivotPoint = new Point(); 790private static readonly Point LayoutUpdateDetectionPivotPoint = new Point(-10234.1234, -10234.1234);
Core\CSharp\System\Windows\Input\MouseDevice.cs (11)
134Point ptScreen = new Point(0, 0); 150ptScreen = new Point(0, 0); 172Point ptClient = new Point(0, 0); 184ptClient = new Point(0, 0); 664return new Point(0, 0); 678return new Point(0, 0); 1421Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y); 1579Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y); 2409private Point _positionRelativeToOver = new Point(); 2410private Point _lastPosition = new Point(); 2420private Point _lastClick = new Point();
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
1403Point currentPosition = new Point(x, y);
Core\CSharp\System\Windows\Interop\HwndSource.cs (9)
1041Point pt = TransformToDevice(new Point(newSize.Width, newSize.Height)); 1070size = new Point(DoubleUtil.DoubleToInt(size.X), DoubleUtil.DoubleToInt(size.Y)); 1074size = new Point(Math.Ceiling(size.X), Math.Ceiling(size.Y)); 1279rootUIElement.Arrange(new Rect(new Point(), rootUIElement.DesiredSize)); 1315rootUIElement.Arrange(new Rect(new Point(), sz)); 1647Point pt = new Point(x, y); 1665Point relevantPt = new Point(pt.X, pt.Y); 1721rootUIElement.Arrange(new Rect(new Point(), sz)); 1754rootUIElement.Arrange(new Rect(new Point(), sizeLogicalUnits));
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (4)
235Point from = new Point(); 236Point to = new Point(); 237Point accumulated = new Point(); 238Point foundation = new Point();
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (6)
45_controlPoint1 = new Point(0.0, 0.0); 46_controlPoint2 = new Point(1.0, 1.0); 57: this(new Point(x1, y1), new Point(x2, y2)) 269if ( _controlPoint1 == new Point(0, 0) 270&& _controlPoint2 == new Point(1, 1))
Core\CSharp\System\Windows\Media\Effects\BlurEffect.cs (2)
39Point topLeft = new Point(); 40Point bottomRight = new Point();
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (2)
39Point topLeft = new Point(); 40Point bottomRight = new Point();
Core\CSharp\System\Windows\Media\Effects\Effect.cs (5)
139return new Point( 156return new Point( 213Point topLeftResult = new Point(); 214Point bottomRightResult = new Point(); 230result = new Point();
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
33Point topLeft = new Point(); 34Point bottomRight = new Point();
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (1)
56Center = new Point(rect.X + RadiusX, rect.Y + RadiusY);
Core\CSharp\System\Windows\Media\FormattedText.cs (4)
1450new Point(), // drawing offset 1472new Point(), // drawing offset 1790Point origin = new Point(0, 0); 1807new Point(origin.X + drawingOffset.X, origin.Y + drawingOffset.Y),
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (2)
268internal static Point s_Point = new Point(); 301new Point(),
Core\CSharp\System\Windows\Media\Generated\BezierSegment.cs (6)
245internal static Point s_Point1 = new Point(); 246internal static Point s_Point2 = new Point(); 247internal static Point s_Point3 = new Point(); 276new Point(), 285new Point(), 294new Point(),
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (2)
374internal static Point s_Center = new Point(); 421new Point(),
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (4)
295internal static Point s_StartPoint = new Point(0,0); 296internal static Point s_EndPoint = new Point(1,1); 325new Point(0,0), 334new Point(1,1),
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (4)
325internal static Point s_StartPoint = new Point(); 326internal static Point s_EndPoint = new Point(); 355new Point(), 364new Point(),
Core\CSharp\System\Windows\Media\Generated\LineSegment.cs (2)
205internal static Point s_Point = new Point(); 234new Point(),
Core\CSharp\System\Windows\Media\Generated\PathFigure.cs (2)
264internal static Point s_StartPoint = new Point(); 298new Point(),
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (1)
759value = new Point(
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegmentFigureLogic.cs (1)
98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\PolyLineSegmentFigureLogic.cs (1)
98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegmentFigureLogic.cs (1)
98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\QuadraticBezierSegment.cs (4)
211internal static Point s_Point1 = new Point(); 212internal static Point s_Point2 = new Point(); 241new Point(), 250new Point(),
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (4)
345internal static Point s_Center = new Point(0.5,0.5); 348internal static Point s_GradientOrigin = new Point(0.5,0.5); 377new Point(0.5,0.5), 404new Point(0.5,0.5),
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1234return new Point(0, 0);
Core\CSharp\System\Windows\Media\LinearGradientBrush.cs (1)
235return (new Point(System.Math.Cos(angle), System.Math.Sin(angle)));
Core\CSharp\System\Windows\Media\ParsersCommon.cs (5)
497return new Point(x, y); 506return new Point(2 * _lastPoint.X - _secondLastPoint.X, 539_secondLastPoint = new Point(0, 0); 540_lastPoint = new Point(0, 0); 541_lastStart = new Point(0, 0);
Core\CSharp\System\Windows\Media\PathGeometry.cs (2)
616point = new Point(); 617tangent = new Point();
Core\CSharp\System\Windows\Media\PointCollection.cs (1)
41Point point = new Point(
Core\CSharp\System\Windows\Media\Visual.cs (1)
2084Point transformedPt = new Point();
Core\CSharp\System\Windows\Media3D\GeneralTransform3DTo2D.cs (2)
46result = new Point(); 56result = _transformBetween2D.Transform(new Point(projectedPoint.X, projectedPoint.Y));
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (5)
100uv[j] = new Point(0, 0); 176return new Point(uv.X * descBounds.Width + descBounds.Left, 193outputPoint = new Point(); 227outputPoint = new Point(texCoord1.X * vertexWeight1 + 259return new Point((pt.X - descBounds.Left) / (descBounds.Right - descBounds.Left),
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (2)
530Point point2D = new Point(point.X/point.W, point.Y/point.W); 537return new Point(0,0);
Core\CSharp\System\Windows\UIElement.cs (1)
1412new Point(0d,0d),
Shared\MS\Internal\PointUtil.cs (2)
62return new Point(0,0); 135return new Point(0,0);
PresentationFramework (382)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (3)
544point = new Point(x, y); 548point = new Point(double.NaN, double.NaN); 727public static readonly Point NotAPoint = new Point(double.NaN, double.NaN);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (5)
267return new Point(rect.Left, rect.Top + rect.Height); 270return new Point(0, 0); 292return new Point(rect.Left, rect.Top + rect.Height / 2); 295return new Point(0, 0); 318Point endPoint = new Point(Double.MaxValue, Double.MaxValue);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
122return new Point(double.NaN,double.NaN);
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
139return new Point(rect.Left, rect.Top);
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (6)
713markerGeometry.Children.Add(new LineGeometry(new Point(0, 1), new Point(1, 0))); 714markerGeometry.Children.Add(new LineGeometry(new Point(0, 0), new Point(0, 50))); 715markerGeometry.Children.Add(new LineGeometry(new Point(0, 0), new Point(1, 1)));
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (4)
479Point sizeDeviceUnits = LogicalToDeviceUnits(new Point(0, newHeightLogicalUnits)); 505Point sizeDeviceUnits = LogicalToDeviceUnits(new Point(newWidthLogicalUnits, 0)); 707Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.Width, this.Height)); 891Point ptLogicalUnits = DeviceToLogicalUnits(new Point(size.Width, size.Height));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
183child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (16)
83new Point(1f, 0f), new Point(0f, 1f)); 271path.StartPoint = new Point(hatchRect.Left, hatchRect.Top); 275PathSegment line = new LineSegment(new Point(hatchRect.Right, hatchRect.Top), true); 279line = new LineSegment(new Point(hatchRect.Right, hatchRect.Bottom), true); 283line = new LineSegment(new Point(hatchRect.Left, hatchRect.Bottom), true); 287line = new LineSegment(new Point(hatchRect.Left, hatchRect.Top), true); 359Point center = new Point(); 368center = new Point(rectWireFrame.Left, rectWireFrame.Top); 374center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Top); 381center = new Point(rectWireFrame.Right, rectWireFrame.Top); 387center = new Point(rectWireFrame.Left, rectWireFrame.Top + rectWireFrame.Height / 2); 394center = new Point(rectWireFrame.Right, rectWireFrame.Top + rectWireFrame.Height / 2); 401center = new Point(rectWireFrame.Left, rectWireFrame.Bottom); 407center = new Point(rectWireFrame.Left + rectWireFrame.Width / 2, rectWireFrame.Bottom); 414center = new Point(rectWireFrame.Right, rectWireFrame.Bottom);
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
174_child.Arrange(new Rect(new Point(), finalSize));
src\Framework\MS\Internal\Documents\DocumentGrid.cs (5)
1204background.Arrange(new Rect(new Point(0, 0), arrangeSize)); 1248pageOffset = new Point(Math.Max(ViewportWidth, ExtentWidth) - (xOffset + pageSize.Width), yOffset); 1252pageOffset = new Point(xOffset, yOffset); 2659return new Point(selectionRect.Left, selectionRect.Top); 2664return new Point(0.0, 0.0);
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
126uiScopeMouseDownPoint = new Point(.5 * documentGrid.ViewportWidth, .5 * documentGrid.ViewportHeight);
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (3)
292_pageBorder.Arrange(new Rect(new Point(0.0,0.0), arrangeSize)); 301new Point(arrangeSize.Width, _dropShadowWidth), 308new Point(_dropShadowWidth, arrangeSize.Height),
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (3)
190offset = TransformToDescendant(new Point(suggestedX, 0)); 193offset = TransformToAncestor(new Point(newSuggestedX, 0)); 234newSuggestedOffset = TransformToAncestor(new Point(rect.X, rect.Y));
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
386point = new Point(0, 0);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (8)
885offset = TransformToDescendant(pageTextView.RenderScope, new Point(suggestedX, 0)); 893offset = TransformToAncestor(pageTextView.RenderScope, new Point(newSuggestedX, 0)); 914position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, 0), true); 923position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, pageTextView.RenderScope.RenderSize.Height), true); 950offset = TransformToAncestor(pageTextView.RenderScope, new Point(newSuggestedX, 0)); 999point = TransformToAncestor(pageTextView.RenderScope, new Point(rect.X, rect.Y)); 1383point = TransformToDescendant(pageTextView.RenderScope, new Point(lineRequest.NewSuggestedX, 0)); 1392newPosition = pageTextView.GetTextPositionFromPoint(new Point(-1, -1), true);
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
237_line.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None));
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
811newSuggestedOffset = new Point(); 2012point = new Point(point.X + _scrollData.HorizontalOffset, point.Y + _scrollData.VerticalOffset);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (6)
252Point point = new Point(suggestedX, 0); 264point = new Point(newSuggestedX, 0); 1054cellInfo.Adjust(new Point(subpageParagraphResult.ContentOffset.X, subpageParagraphResult.ContentOffset.Y)); 1065cellInfo.Adjust(new Point(figureParagraphResult.ContentOffset.X, figureParagraphResult.ContentOffset.Y)); 1076cellInfo.Adjust(new Point(floaterParagraphResult.ContentOffset.X, floaterParagraphResult.ContentOffset.Y)); 2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2);
src\Framework\MS\Internal\Helper.cs (2)
1195Rect parentRect = new Rect(new Point(), virtualizingElement.DesiredSize); 1204Rect itemsRect = itemsHost.TransformToAncestor(virtualizingElement).TransformBounds(new Rect(new Point(), itemsHost.DesiredSize));
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
451Point originalPosition = new Point(); // Default as (0, 0)
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (5)
419parentTransform.TryTransform(new Point(0, 0), out elementPoints.UpperLeft); 420parentTransform.TryTransform(new Point(childElement.RenderSize.Width, 0), out elementPoints.UpperRight); 421parentTransform.TryTransform(new Point(0, childElement.RenderSize.Height), out elementPoints.LowerLeft); 422parentTransform.TryTransform(new Point(childElement.RenderSize.Width, childElement.RenderSize.Height), out elementPoints.LowerRight); 534return new Point( (minX + ((maxX - minX) * 0.5f)),
src\Framework\MS\Internal\Ink\PenCursorManager.cs (27)
60return CreateCursorFromDrawing(penDrawing, new Point(0, 0)); 123s_StrokeEraserCursor = CreateCursorFromDrawing(drawing, new Point(5, 5)); 486path.StartPoint = new Point(5, 5); 488LineSegment segment = new LineSegment(new Point(16, 5), true); 492segment = new LineSegment(new Point(26, 15), true); 496segment = new LineSegment(new Point(15, 15), true); 500segment = new LineSegment(new Point(5, 5), true); 510path.StartPoint = new Point(5, 5); 512segment = new LineSegment(new Point(5, 10), true); 516segment = new LineSegment(new Point(15, 19), true); 520segment = new LineSegment(new Point(15, 15), true); 524segment = new LineSegment(new Point(5, 5), true); 535path.StartPoint = new Point(15, 15); 537segment = new LineSegment(new Point(15, 19), true); 541segment = new LineSegment(new Point(26, 19), true); 545segment = new LineSegment(new Point(26, 15), true); 549segment = new LineSegment(new Point(15, 15), true); 560dc.DrawLine(pen1, new Point(5, 5), new Point(5, 0)); 561dc.DrawLine(pen1, new Point(5, 5), new Point(0, 5)); 562dc.DrawLine(pen1, new Point(5, 5), new Point(2, 2)); 563dc.DrawLine(pen1, new Point(5, 5), new Point(8, 2)); 564dc.DrawLine(pen1, new Point(5, 5), new Point(2, 8));
src\Framework\MS\Internal\LayoutDump.cs (6)
228Point point = new Point(0, 0); 260Point point = new Point(0, 0); 310Point point = new Point(0, 0); 555Point offset = new Point(isi.HorizontalOffset, isi.VerticalOffset); 566Point point = new Point(0, 0); 917Point point = new Point(0.0f, 0.0f);
src\Framework\MS\Internal\PtsHost\Line.cs (2)
461line.Draw(ctx, new Point(delta, 0), (_mirror ? InvertAxes.Horizontal : InvertAxes.None)); 691_line.Draw(ctx, new Point(delta, 0), InvertAxes.None);
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (1)
121Point drawLocation = new Point(TextDpi.FromTextDpi(ur), TextDpi.FromTextDpi(vrBaseline) - line.Baseline);
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (12)
103new Point(_renderBounds.Left + pen.Thickness * 0.5, _renderBounds.Bottom - pen.Thickness * 0.5), 104new Point(_renderBounds.Right - pen.Thickness * 0.5, _renderBounds.Top + pen.Thickness * 0.5))); 111new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Top), 112new Point(_renderBounds.Left + pen.Thickness / 2, _renderBounds.Bottom)); 122new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Top), 123new Point(_renderBounds.Right - pen.Thickness / 2, _renderBounds.Bottom)); 133new Point(_renderBounds.Left, _renderBounds.Top + pen.Thickness / 2), 134new Point(_renderBounds.Right, _renderBounds.Top + pen.Thickness / 2)); 144new Point(_renderBounds.Left, _renderBounds.Bottom - pen.Thickness / 2), 145new Point(_renderBounds.Right, _renderBounds.Bottom - pen.Thickness / 2)); 156new Point(_renderBounds.Left + _borderThickness.Left, _renderBounds.Top + _borderThickness.Top), 157new Point(_renderBounds.Right - _borderThickness.Right, _renderBounds.Bottom - _borderThickness.Bottom)));
src\Framework\MS\Internal\Text\Line.cs (1)
130line.Draw(ctx, new Point(lineOffset.X + delta, lineOffset.Y), (_mirror ? InvertAxes.Horizontal : InvertAxes.None));
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
144return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
246return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
174Point point = new Point(); 185point = new Point(boundingRect.Left + boundingRect.Width * 0.1, boundingRect.Top + boundingRect.Height * 0.1);
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
592return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
43return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\SliderAutomationPeer.cs (1)
36return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\TabControlAutomationPeer.cs (1)
48return new Point(double.NaN, double.NaN);
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
111Point pt = new Point(); 144pt = new Point(rectScreen.Left + rectScreen.Width * 0.5, rectScreen.Top + rectScreen.Height * 0.5);
src\Framework\System\Windows\Controls\Border.cs (22)
443Rect rect = new Rect(new Point(halfThickness, halfThickness), 444new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 472new Point(halfThickness, 0), 473new Point(halfThickness, RenderSize.Height)); 504new Point(RenderSize.Width - halfThickness, 0), 505new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 536new Point(0, halfThickness), 537new Point(RenderSize.Width, halfThickness)); 566new Point(0, RenderSize.Height - halfThickness), 567new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 581ptTL = new Point(UIElement.RoundLayoutValue(border.Left, dpi.DpiScaleX), 586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 597ptTL = new Point(border.Left, border.Top); 598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom); 665Point topLeft = new Point(radii.LeftTop, 0); 666Point topRight = new Point(rect.Width - radii.RightTop, 0); 667Point rightTop = new Point(rect.Width, radii.TopRight); 668Point rightBottom = new Point(rect.Width, rect.Height - radii.BottomRight); 669Point bottomRight = new Point(rect.Width - radii.RightBottom, rect.Height); 670Point bottomLeft = new Point(radii.LeftBottom, rect.Height); 671Point leftBottom = new Point(0, rect.Height - radii.BottomLeft); 672Point leftTop = new Point(0, radii.TopLeft);
src\Framework\System\Windows\Controls\Canvas.cs (1)
341child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
src\Framework\System\Windows\Controls\DataGrid.cs (6)
4103marginLeft = transform.Transform(new Point()).X; 6448Rect rowBounds = new Rect(new Point(), row.RenderSize); 6472Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6562Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6578Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6670Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1993cellsPanelOffset = horizontalOffset + TransformToAncestor(scrollViewer).Transform(new Point()).X;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
917contentPosition = textView.GetTextPositionFromPoint(new Point(), true) as TextPointer;
src\Framework\System\Windows\Controls\Grid.cs (3)
4260Point start = new Point(startX, startY); 4261Point end = new Point(endX, endY); 4270private static readonly Point c_zeroPoint = new Point(0, 0);
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
455_decorator.Arrange(new Rect(new Point(), finalSize));
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
398_floatingHeader.Arrange(new Rect(new Point(_currentPos.X - _relativeStartPos.X, 0), HeadersPositionList[_startColumnIndex].Size)); 1376return new Point(HeadersPositionList[index].X, 0);
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
489Rect viewPortBounds = new Rect(new Point(), _viewPort.RenderSize); 490Rect itemBounds = new Rect(new Point(), _viewItem.RenderSize);
src\Framework\System\Windows\Controls\Image.cs (1)
270dc.DrawImage(imageSource, new Rect(new Point(), RenderSize));
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
272Rect r = new Rect(new Point(), RenderSize); 1904Paste(new Point(c_pasteDefaultLocation, c_pasteDefaultLocation));
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
2640Rect elementBounds = new Rect(new Point(), element.RenderSize); 3014Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 3015Rect elementBounds = new Rect(new Point(), element.RenderSize); 3306Rect bounds = new Rect(new Point(), relativeTo.RenderSize);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
748drawingContext.DrawVideo(_helper.Player, new Rect(new Point(), RenderSize));
src\Framework\System\Windows\Controls\MenuItem.cs (3)
860Rect itemBounds = new Rect(new Point(), RenderSize); 1515Rect r = new Rect(new Point(), RenderSize); 1543Rect r = new Rect(new Point(), RenderSize);
src\Framework\System\Windows\Controls\Page.cs (1)
634child.Arrange(new Rect(new Point(), arrangeBounds));
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
375Point ancestorOffset = new Point();
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
163new Point(_columnHeaderDragCurrentPosition.X - _columnHeaderDragStartRelativePosition.X, 0), 936Point originPoint = new Point(0, 0);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
370_pageHost.CachedOffset = new Point(); 435_pageHost.CachedOffset = new Point((finalSize.Width - pageSize.Width) / 2, (finalSize.Height - pageSize.Height) / 2);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
2039customPlacements = customCallback(childBounds.Size, targetBounds.Size, new Point(HorizontalOffset, VerticalOffset)); 2388Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize)); 2430points[(int)InterestPoint.Center] = new Point(rect.Left + rect.Width / 2.0, 3756if (targetToClientTransform.TryTransform(new Point(0, 0), out ptPlacementTargetOrigin))
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (4)
170_thumbOffset = thumbPoint - new Point(Track.Thumb.ActualWidth * 0.5, Track.Thumb.ActualHeight * 0.5); 198_latestRightButtonClickPoint = new Point(-1,-1); 471Point pt = new Point(-1,-1); 764private Point _latestRightButtonClickPoint = new Point(-1,-1);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1048_lastMousePosition = new Point(); 2259private Point _lastMousePosition = new Point();
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1621offset = new Point(0, 0);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (36)
370Point startPoint = new Point(0d,0d); 371Point endPoint = new Point(0d, 0d); 385startPoint = new Point(halfReservedSpace, size.Height); 386endPoint = new Point(halfReservedSpace + size.Width, size.Height); 398startPoint = new Point(halfReservedSpace, 0d); 399endPoint = new Point(halfReservedSpace + size.Width, 0d); 411startPoint = new Point(size.Width, size.Height + halfReservedSpace); 412endPoint = new Point(size.Width, halfReservedSpace); 424startPoint = new Point(0d, size.Height + halfReservedSpace); 425endPoint = new Point(0d, halfReservedSpace); 466dc.DrawLine(pen, startPoint, new Point(startPoint.X + tickLen, startPoint.Y)); 467dc.DrawLine(pen, new Point(startPoint.X, endPoint.Y), 468new Point(startPoint.X + tickLen, endPoint.Y)); 503new Point(startPoint.X, y), 504new Point(startPoint.X + tickLen2, y)); 520new Point(startPoint.X, y), 521new Point(startPoint.X + tickLen2, y)); 534Point pt0 = new Point(startPoint.X, y0); 535Point pt1 = new Point(startPoint.X + tickLen2, y0); 536Point pt2 = new Point(startPoint.X + tickLen2, y0 + Math.Abs(tickLen2) * progression); 547pt0 = new Point(startPoint.X, y0); 548pt1 = new Point(startPoint.X + tickLen2, y0); 549pt2 = new Point(startPoint.X + tickLen2, y0 - Math.Abs(tickLen2) * progression); 573dc.DrawLine(pen, startPoint, new Point(startPoint.X, startPoint.Y + tickLen)); 574dc.DrawLine(pen, new Point(endPoint.X, startPoint.Y), 575new Point(endPoint.X, startPoint.Y + tickLen)); 609new Point(x, startPoint.Y), 610new Point(x, startPoint.Y + tickLen2)); 625new Point(x, startPoint.Y), 626new Point(x, startPoint.Y + tickLen2)); 639Point pt0 = new Point(x0, startPoint.Y); 640Point pt1 = new Point(x0, startPoint.Y + tickLen2); 641Point pt2 = new Point(x0 + Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2); 652pt0 = new Point(x0, startPoint.Y); 653pt1 = new Point(x0, startPoint.Y + tickLen2); 654pt2 = new Point(x0 - Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
503Point offset = new Point();
src\Framework\System\Windows\Controls\ProgressBar.cs (4)
200b.StartPoint = new Point(0,0); 201b.EndPoint = new Point(1,0); 213mask.StartPoint = new Point(0,0); 214mask.EndPoint = new Point(1,0);
src\Framework\System\Windows\Controls\Slider.cs (4)
947new Point((targetSize.Width - popupSize.Width) * 0.5, -popupSize.Height), 956new Point(-popupSize.Width, (targetSize.Height - popupSize.Height) * 0.5), 967new Point((targetSize.Width - popupSize.Width) * 0.5, targetSize.Height) , 977new Point(targetSize.Width, (targetSize.Height - popupSize.Height) * 0.5),
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1157Point minBoundary = new Point(-(rectNote.X + rectNote.Width - leftBoundary), - rectNote.Y); 1158Point maxBoundary = new Point(rectPage.Width - rectNote.X - rightBoundary, rectPage.Height - rectNote.Y - 20);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1602Point lineOffset = new Point(contentOffset.X, contentOffset.Y); 1733Rect r = new Rect(new Point(), RenderSize);
src\Framework\System\Windows\Controls\TextBox.cs (2)
1429Point point = new Point(); 1459Point point = new Point();
src\Framework\System\Windows\Controls\ViewBox.cs (1)
363child.Arrange(new Rect(new Point(), child.DesiredSize));
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
172Rect newBounds = new Rect(new Point(), finalSize);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
3342Point previousChildOffset = new Point(); 6332Rect childRect = new Rect(new Point(), child.DesiredSize);
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
483adornerInfo.Adorner.Arrange(new Rect(new Point(), adornerInfo.Adorner.DesiredSize));
src\Framework\System\windows\Documents\CaretElement.cs (8)
200point = new Point(_left, _top); 397Point targetPoint = new Point(targetRect.Left, targetRect.Top); 729pathFigure.StartPoint = new Point(0, 0); 730pathFigure.Segments.Add(new LineSegment(new Point(-bidiCaretIndicatorWidth, 0), true)); 731pathFigure.Segments.Add(new LineSegment(new Point(0, _height / BidiIndicatorHeightRatio), true)); 1006double deviceHeight = source.CompositionTarget.TransformToDevice.Transform(new Point(0, _height)).Y; 1104Point win32CaretPoint = new Point(0, 0); 1109win32CaretPoint = new Point(0, 0);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (2)
108drawingContext.DrawLine(_pen, new Point(0, 0), 109new Point(0, _height));
src\Framework\System\Windows\Documents\CompositionAdorner.cs (5)
247Point startPoint = new Point(compositionLine.StartPoint.X + clauseGap, compositionLine.StartPoint.Y - halfLineHeight); 248Point endPoint = new Point(compositionLine.EndPoint.X - clauseGap, compositionLine.EndPoint.Y - halfLineHeight); 274Point pathPoint = new Point(startPoint.X, startPoint.Y - halfLineHeight); 287pathPoint = new Point(pathPoint.X + squiggleGap, pathPoint.Y + halfLineHeight); 292pathPoint = new Point(pathPoint.X + squiggleGap, pathPoint.Y - halfLineHeight);
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
370page.Arrange(new Rect(new Point(), fixedSize));
src\Framework\System\Windows\Documents\FixedPage.cs (1)
843child.Arrange(new Rect(new Point(x, y), child.DesiredSize));
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (4)
934_AddLine(new Point(center, bounds.Top), new Point(center, bounds.Bottom), transform); 941_AddLine(new Point(bounds.Left, center), new Point(bounds.Right, center), transform);
src\Framework\System\Windows\Documents\FixedSOMTableCell.cs (2)
35_boundingRect = new Rect(new Point(left, top), new Point(right, bottom));
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
218page.Arrange(new Rect(new Point(0, 0), pageSize));
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
227Point offset = new Point(0, 0); 920Point topOfPage = new Point(suggestedX, 0); 921Point secondPoint = new Point(suggestedX, 1000);
src\Framework\System\Windows\Documents\Glyphs.cs (3)
207_measurementGlyphRun = _glyphRunProperties.CreateGlyphRun(new Point(OriginX,OriginY), Language); 212_measurementGlyphRun = _glyphRunProperties.CreateGlyphRun(new Point(), Language); 1126private Point _glyphRunOrigin = new Point();
src\Framework\System\Windows\Documents\HighlightVisual.cs (1)
97Rect clipRect = new Rect(new Point(0, 0), pageSize);
src\Framework\System\Windows\Documents\ImmComposition.cs (6)
770milPointTopLeft = new Point(Math.Min(rectStart.Left, rectEnd.Left), Math.Min(rectStart.Top, rectEnd.Top)); 771milPointBottomRight = new Point(Math.Max(rectStart.Left, rectEnd.Left), Math.Max(rectStart.Bottom, rectEnd.Bottom)); 772milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom); 892milPointTopLeft = new Point(rectUi.Left, rectUi.Top); 893milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom); 897milPointCaret = new Point(rectCaret.Left, rectCaret.Bottom);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
462t.TryTransform(new Point(boundingRect.Left, centerLine), out pt1); 464t.TryTransform(new Point(boundingRect.Right, centerLine), out pt2);
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (4)
161drawingContext.DrawLine(pen, new Point(0.0, 0.0), new Point(0.5, 1.0)); 162drawingContext.DrawLine(pen, new Point(0.5, 1.0), new Point(1.0, 0.0));
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (4)
368minPoint = new Point(bounds.X, bounds.Y); 369maxPoint = new Point(bounds.X + bounds.Width, bounds.Y + bounds.Height); 380minPoint = new Point(0, 0); 381maxPoint = new Point(element.ActualWidth, element.ActualHeight);
src\Framework\System\windows\Documents\TextEditorMouse.cs (5)
531Point targetPoint = new Point(mouseMovePoint.X, mouseMovePoint.Y); 542targetPoint = new Point(targetPoint.X, targetRect.Bottom - pageHeight); 548targetPoint = new Point(targetPoint.X, targetRect.Top + pageHeight); 558targetPoint = new Point(targetPoint.X - slowAreaDelta, targetPoint.Y); 563targetPoint = new Point(targetPoint.X + slowAreaDelta, targetPoint.Y);
src\Framework\System\windows\Documents\TextEditorSelection.cs (8)
617targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved); 641Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight); 731targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved); 755Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight); 1442targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), +1, out newSuggestedOffset, out pagesMoved); 1469Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight); 1538targetPosition = This.TextView.GetPositionAtNextPage(movingPosition, new Point(GetViewportXOffset(This.TextView, suggestedX), suggestedY), -1, out newSuggestedOffset, out pagesMoved); 1565Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight);
src\Framework\System\windows\Documents\TextSelection.cs (2)
2255Point top = new Point(caretRectangle.X, caretRectangle.Y); 2256Point bottom = new Point(caretRectangle.X, caretRectangle.Y + caretRectangle.Height);
src\Framework\System\Windows\Documents\TextStore.cs (4)
869milPointTopLeft = new Point(Math.Min(rectPrev.Left, rectCur.Left), Math.Min(rectPrev.Top, rectCur.Top)); 870milPointBottomRight = new Point(Math.Max(rectPrev.Left, rectCur.Left), Math.Max(rectPrev.Bottom, rectCur.Bottom)); 1027milPointTopLeft = new Point(rectUi.Left, rectUi.Top); 1028milPointBottomRight = new Point(rectUi.Right, rectUi.Bottom);
src\Framework\System\Windows\FrameworkElement.cs (1)
5298return new Point(renderSize.Width * relativeOrigin.X, renderSize.Height * relativeOrigin.Y);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
679((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7519bamlType.DefaultConstructor = delegate() { return new System.Windows.Point(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1453case KnownElements.Point: o = new System.Windows.Point(); break;
src\Framework\System\Windows\Shapes\Line.cs (2)
165Point point1 = new Point(X1, Y1); 166Point point2 = new Point(X2, Y2);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (10)
550new Point( 602Point windowTopLeft = new Point(_window.Left, _window.Top); 603windowTopLeft -= (Vector)DpiHelper.DevicePixelsToLogical(new Point(adjustedOffset.Left, adjustedOffset.Top), dpi.DpiScaleX, dpi.DpiScaleY); 769var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 831SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam))); 942_windowPosAtStartOfUserMove = new Point(_window.Left, _window.Top); 1228double topLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 1244double topRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.TopRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 1252double bottomLeftRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomLeft, 0), dpi.DpiScaleX, dpi.DpiScaleY).X; 1260double bottomRightRadius = DpiHelper.LogicalPixelsToDevice(new Point(_chromeInfo.CornerRadius.BottomRight, 0), dpi.DpiScaleX, dpi.DpiScaleY).X;
src\Framework\System\Windows\Standard\DpiHelper.cs (8)
46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY); 47Point bottomRight = LogicalPixelsToDevice(new Point(logicalRectangle.Right, logicalRectangle.Bottom), dpiScaleX, dpiScaleY); 54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY); 55Point bottomRight = DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom), dpiScaleX, dpiScaleY); 63Point pt = LogicalPixelsToDevice(new Point(logicalSize.Width, logicalSize.Height), dpiScaleX, dpiScaleY); 70Point pt = DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height), dpiScaleX, dpiScaleY); 77Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY); 78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\SystemParameters.cs (1)
6355double captionHeightInDips = Standard.DpiHelper.DevicePixelsToLogical(new Point(0, captionHeight), SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0).Y;
src\Framework\System\Windows\Window.cs (32)
2601var topLeftPointHelper = new WindowStartupTopLeftPointHelper(new Point(requestedLeft, requestedTop)); 2760Point currentLocationLogicalUnits = DeviceToLogicalUnits(new Point(xDeviceUnits, yDeviceUnits)); 2779Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(requestedWidth, requestedHeight)); 2780Point requestedLocationDeviceUnits = LogicalToDeviceUnits(new Point(requestedLeft, requestedTop)); 2842Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(MinWidth, MinHeight)); 2843Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(MaxWidth, MaxHeight)); 2999Point newSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.ActualWidth, this.ActualHeight)); 3116Point ptDeviceUnits = LogicalToDeviceUnits(new Point(widthLogicalUnits, heightLogicalUnits)); 3543Point maxSizeLogicalUnits = DeviceToLogicalUnits(new Point(maxWidthDeviceUnits, maxHeightDeviceUnits)); 3544Point minSizeLogicalUnits = DeviceToLogicalUnits(new Point(_trackMinWidthDeviceUnits, _trackMinHeightDeviceUnits)); 3928ownerSizeDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Width, Owner.Height)); 3933ownerSizeDeviceUnits = new Point(size.Width, size.Height); 3937Point ownerLocationDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Left, Owner.Top)); 4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height)); 4114Point locationLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.X, rectDeviceUnits.Y)); 5098Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.minWidth, finalMinMax.minHeight)); 5099Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.maxWidth, finalMinMax.maxHeight)); 6193double convertedValue = (LogicalToDeviceUnits(new Point(newValue, 0))).X; 6214newTop = TransformWorkAreaScreenArea(new Point(0, newTop), TransformType.ScreenAreaToWorkArea).Y; 6216newTop = (LogicalToDeviceUnits(new Point(0, newTop))).Y; 6234newLeft = TransformWorkAreaScreenArea(new Point(newLeft, 0), TransformType.ScreenAreaToWorkArea).X; 6236newLeft = (LogicalToDeviceUnits(new Point(newLeft, 0))).X; 6296retPt = new Point(pt.X + deltaX, pt.Y + deltaY); 6300retPt = new Point(pt.X - deltaX, pt.Y - deltaY); 6526Point ptDeviceUnits = LogicalToDeviceUnits(new Point(leftLogicalUnits, topLogicalUnits)); 6996LogicalToDeviceUnits(new Point(margin.Left, margin.Top)), 6997LogicalToDeviceUnits(new Point(logicalClientRc.Width - margin.Right, logicalClientRc.Height - margin.Bottom))); 7481_prePanningLocation = new Point(double.NaN, double.NaN); 7494return new Point(point.X - (_prePanningLocation.X - windowLocation.X), point.Y - (_prePanningLocation.Y - windowLocation.Y)); 7717Point _prePanningLocation = new Point(double.NaN, double.NaN); 8097Point pt = new Point(0,0); 8477ScreenTopLeft = new Point
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
138return new Point(double.NaN, double.NaN);
PresentationFramework.Aero (193)
Microsoft\Windows\Themes\BulletChrome.cs (65)
659dc.DrawEllipse(fill, null, new Point(centerX, centerY), centerX - 1, centerY - 1); 664dc.DrawEllipse(fill, null, new Point(centerX, centerY), centerX - 1, centerY - 1); 698dc.DrawEllipse(innerFill, null, new Point(centerX, centerY), centerX - 3.0, centerY - 3.0); 705dc.DrawEllipse(null, innerBorder, new Point(centerX, centerY), centerX - 2.5, centerY - 2.5); 737dc.DrawEllipse(GlyphFill, GlyphStroke, new Point(centerX, centerY), centerX - 3, centerY - 3); 771dc.DrawEllipse(null, pen, new Point(centerX, centerY), centerX - 0.5, centerY - 0.5); 774dc.DrawEllipse(null, overlayPen, new Point(centerX, centerY), centerX - 0.5, centerY - 0.5); 883figure.StartPoint = new Point(9.0, 1.833); 884figure.Segments.Add(new LineSegment(new Point(10.667, 3.167), true)); 885figure.Segments.Add(new LineSegment(new Point(7, 10.667), true)); 886figure.Segments.Add(new LineSegment(new Point(5.333, 10.667), true)); 887figure.Segments.Add(new LineSegment(new Point(3.333, 8.167), true)); 888figure.Segments.Add(new LineSegment(new Point(3.333, 6.833), true)); 889figure.Segments.Add(new LineSegment(new Point(4.833, 6.5), true)); 890figure.Segments.Add(new LineSegment(new Point(6, 8), true)); 1012brush.StartPoint = new Point(0, 0); 1013brush.EndPoint = new Point(1, 1); 1045brush.StartPoint = new Point(0, 0); 1046brush.EndPoint = new Point(1, 1); 1077brush.StartPoint = new Point(0, 0); 1078brush.EndPoint = new Point(1, 1); 1203temp.Center = new Point(0.25, 0.25); 1204temp.GradientOrigin = new Point(0.25, 0.25); 1234temp.Center = new Point(0.25, 0.25); 1235temp.GradientOrigin = new Point(0.25, 0.25); 1264temp.Center = new Point(0.25, 0.25); 1265temp.GradientOrigin = new Point(0.25, 0.25); 1296temp.Center = new Point(0.25, 0.25); 1297temp.GradientOrigin = new Point(0.25, 0.25); 1455brush.StartPoint = new Point(0,0); 1456brush.EndPoint = new Point(1,1); 1487brush.StartPoint = new Point(0,0); 1488brush.EndPoint = new Point(1,1); 1519brush.StartPoint = new Point(0, 0); 1520brush.EndPoint = new Point(1, 1); 1551brush.StartPoint = new Point(0, 0); 1552brush.EndPoint = new Point(1, 1); 1583brush.StartPoint = new Point(0, 0); 1584brush.EndPoint = new Point(1, 1); 1615brush.StartPoint = new Point(0, 0); 1616brush.EndPoint = new Point(1, 1); 1647brush.StartPoint = new Point(0, 0); 1648brush.EndPoint = new Point(1, 1); 1679brush.StartPoint = new Point(0, 0); 1680brush.EndPoint = new Point(1, 1); 1712brush.StartPoint = new Point(0, 0); 1713brush.EndPoint = new Point(1, 1); 1743brush.StartPoint = new Point(0, 0); 1744brush.EndPoint = new Point(1, 1); 1774brush.StartPoint = new Point(0, 0); 1775brush.EndPoint = new Point(1, 1); 1843temp.StartPoint = new Point(0, 0); 1844temp.EndPoint = new Point(1, 1); 1869temp.StartPoint = new Point(0, 0); 1870temp.EndPoint = new Point(1, 1); 1895temp.StartPoint = new Point(0, 0); 1896temp.EndPoint = new Point(1, 1); 1924temp.StartPoint = new Point(0, 0); 1925temp.EndPoint = new Point(1, 1); 1951temp.StartPoint = new Point(0, 0); 1952temp.EndPoint = new Point(1, 1); 1977temp.StartPoint = new Point(0, 0); 1978temp.EndPoint = new Point(1, 1); 2003temp.StartPoint = new Point(0, 0); 2004temp.EndPoint = new Point(1, 1);
Microsoft\Windows\Themes\ButtonChrome.cs (16)
628borderFigure.StartPoint = new Point(0.5, 0.5); 629borderFigure.Segments.Add(new LineSegment(new Point(0.5, bounds.Bottom - 0.5), true)); 630borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - 2.5, bounds.Bottom - 0.5), true)); 631borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 0.5, bounds.Bottom - 2.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true)); 632borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - 0.5, bounds.Top + 2.5), true)); 633borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 2.5, bounds.Top + 0.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true)); 704temp.StartPoint = new Point(0, 0); 705temp.EndPoint = new Point(0, 1); 734temp.StartPoint = new Point(0, 0); 735temp.EndPoint = new Point(0, 1); 941brush.StartPoint = new Point(0,0); 942brush.EndPoint = new Point(0,1); 1033temp.StartPoint = new Point(0, 0); 1034temp.EndPoint = new Point(1, 0); 1096temp.StartPoint = new Point(0, 0); 1097temp.EndPoint = new Point(0, 1);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (20)
77bevel.StartPoint = new Point(); 78bevel.EndPoint = new Point(0.0, 1.0); 110background.StartPoint = new Point(); 111background.EndPoint = new Point(0.0, 1.0); 184lgBrush.StartPoint = new Point(); 185lgBrush.EndPoint = new Point(0.0, 1.0); 235topBrush.StartPoint = new Point(); 236topBrush.EndPoint = new Point(0.0, 1.0); 252pressedBevel.StartPoint = new Point(); 253pressedBevel.EndPoint = new Point(0.0, 1.0); 326arrowFigure.StartPoint = new Point(0.0, 4.0); 328LineSegment line = new LineSegment(new Point(4.0, 0.0), false); 332line = new LineSegment(new Point(8.0, 4.0), false); 338arrowFigure.StartPoint = new Point(0.0, 0.0); 340LineSegment line = new LineSegment(new Point(8.0, 0.0), false); 344line = new LineSegment(new Point(4.0, 4.0), false); 363arrowBorder.StartPoint = new Point(); 364arrowBorder.EndPoint = new Point(1.0, 1.0); 378arrowFill.StartPoint = new Point(); 379arrowFill.EndPoint = new Point(1.0, 1.0);
Microsoft\Windows\Themes\ListBoxChrome.cs (12)
488borderFigure.StartPoint = new Point(bounds.Left, bounds.Top); 489borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left, bounds.Bottom), false)); 490borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Bottom), false)); 491borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right, bounds.Top), false)); 499borderFigure.StartPoint = new Point(bounds.Left + thickness.Left, bounds.Top + thickness.Top); 500borderFigure.Segments.Add(new LineSegment(new Point(bounds.Left + thickness.Left, bounds.Bottom - thickness.Bottom), false)); 501borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Bottom - thickness.Bottom), false)); 502borderFigure.Segments.Add(new LineSegment(new Point(bounds.Right - thickness.Right, bounds.Top + thickness.Top), false)); 548brush.StartPoint = new Point(0, 0); 549brush.EndPoint = new Point(0, 20); 583brush.StartPoint = new Point(0, 0); 584brush.EndPoint = new Point(0, 20);
Microsoft\Windows\Themes\ScrollChrome.cs (47)
608figure.StartPoint = new Point(4.0, 0.0); 609figure.Segments.Add(new LineSegment(new Point(0, 3.5), true)); 610figure.Segments.Add(new LineSegment(new Point(4.0, 7.0), true)); 638figure.StartPoint = new Point(0.0, 0.0); 639figure.Segments.Add(new LineSegment(new Point(4, 3.5), true)); 640figure.Segments.Add(new LineSegment(new Point(0.0, 7.0), true)); 668figure.StartPoint = new Point(0.0, 4.0); 669figure.Segments.Add(new LineSegment(new Point(3.5, 0), true)); 670figure.Segments.Add(new LineSegment(new Point(7.0, 4.0), true)); 698figure.StartPoint = new Point(0.0, 0.0); 699figure.Segments.Add(new LineSegment(new Point(3.5, 4.0), true)); 700figure.Segments.Add(new LineSegment(new Point(7.0, 0.0), true)); 819temp.StartPoint = new Point(0, 0); 820temp.EndPoint = new Point(0, 1); 849temp.StartPoint = new Point(0, 0); 850temp.EndPoint = new Point(0, 1); 877temp.StartPoint = new Point(0, 0); 878temp.EndPoint = new Point(0, 1); 906temp.StartPoint = new Point(0, 0); 907temp.EndPoint = new Point(1, 0); 934temp.StartPoint = new Point(0, 0); 935temp.EndPoint = new Point(1, 0); 962temp.StartPoint = new Point(0, 0); 963temp.EndPoint = new Point(1, 0); 1358temp.StartPoint = new Point(0, 0); 1359temp.EndPoint = new Point(1, 0.05); 1385temp.StartPoint = new Point(0, 0); 1386temp.EndPoint = new Point(1, 0.05); 1412temp.StartPoint = new Point(0, 0); 1413temp.EndPoint = new Point(1, 0.05); 1439temp.StartPoint = new Point(0, 0); 1440temp.EndPoint = new Point(0.05, 1); 1466temp.StartPoint = new Point(0, 0); 1467temp.EndPoint = new Point(0.05, 1); 1493temp.StartPoint = new Point(0, 0); 1494temp.EndPoint = new Point(0.05, 1); 1522temp.StartPoint = new Point(0, 0); 1523temp.EndPoint = new Point(4, 4); 1550temp.StartPoint = new Point(0, 0); 1551temp.EndPoint = new Point(4, 4); 1578temp.StartPoint = new Point(0, 0); 1579temp.EndPoint = new Point(4, 4); 1606temp.StartPoint = new Point(0, 0); 1607temp.EndPoint = new Point(4, 4); 1687_localResources.Glyph.StartPoint = new Point(0, 0); 1690_localResources.Glyph.EndPoint = new Point(1, 0.05); 1694_localResources.Glyph.EndPoint = new Point(0.05, 1);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (33)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 238figure.StartPoint = new Point(guidelineSetX[1], guidelineSetY[0]); 239figure.Segments.Add(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true)); 240figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true)); 244figure.StartPoint = new Point(guidelineSetX[0], guidelineSetY[0]); 249figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true)); 250figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true)); 251figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true)); 255figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true)); 260figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true)); 261figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true)); 262figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true)); 266figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true)); 272figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true)); 273figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true)); 274figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true)); 278figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true)); 343LinearGradientBrush top = new LinearGradientBrush(sideStops, new Point(0, 1), new Point(0, 0)); 347LinearGradientBrush left = new LinearGradientBrush(sideStops, new Point(1, 0), new Point(0, 0)); 351LinearGradientBrush right = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(1, 0)); 355LinearGradientBrush bottom = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(0, 1)); 371topLeft.Center = new Point(1, 1); 372topLeft.GradientOrigin = new Point(1, 1); 388topRight.Center = new Point(0, 1); 389topRight.GradientOrigin = new Point(0, 1); 407bottomLeft.Center = new Point(1, 0); 408bottomLeft.GradientOrigin = new Point(1, 0); 428bottomRight.Center = new Point(0, 0); 429bottomRight.GradientOrigin = new Point(0, 0);
PresentationFramework.Classic (60)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (21)
1085figure.StartPoint = new Point(left, bottom); 1086figure.Segments.Add(new LineSegment(new Point(left, top + outerRadius), true)); //left side 1087figure.Segments.Add(new ArcSegment(new Point(left + outerRadius, top), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top left rounded corner 1088figure.Segments.Add(new LineSegment(new Point(right - outerRadius, top), true)); //top side 1089figure.Segments.Add(new ArcSegment(new Point(right - outerRadius * 0.293, top + outerRadius * 0.293), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top right corner 1090figure.Segments.Add(new LineSegment(new Point(right - 1.0 - innerRadius * 0.293, top + 1.0 + innerRadius * 0.293), true)); //inner top right corner 1091figure.Segments.Add(new ArcSegment(new Point(right - outerRadius, top + 1.0), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true)); //inner top right rounded corner 1092figure.Segments.Add(new LineSegment(new Point(left + outerRadius, top + 1.0), true)); //inner top side 1093figure.Segments.Add(new ArcSegment(new Point(left + 1.0, top + outerRadius), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true));//inner top left rounder corner 1094figure.Segments.Add(new LineSegment(new Point(left + 1.0, bottom), true)); //inner right side 1117figure.StartPoint = new Point(right - 1.0, bottom); 1118figure.Segments.Add(new LineSegment(new Point(right - 1.0, top + outerRadius), true)); //left side 1119figure.Segments.Add(new ArcSegment(new Point(right - 1.0 - innerRadius * 0.293, top + 1.0 + innerRadius * 0.293), innerCorner, 0.0, false, SweepDirection.Counterclockwise, true)); //inner left rounded corner 1120figure.Segments.Add(new LineSegment(new Point(right - outerRadius * 0.293, top + outerRadius * 0.293), true)); //top right corner 1121figure.Segments.Add(new ArcSegment(new Point(right, top + outerRadius), outerCorner, 0.0, false, SweepDirection.Clockwise, true)); //top right corner 1122figure.Segments.Add(new LineSegment(new Point(right, bottom), true)); //right side 1340dc.DrawEllipse(Background, null, new Point(6, 6), 4, 4); 1402sgc.BeginFigure(new Point(2, 10), true, false); 1403sgc.ArcTo(new Point(10, 2), new Size(4, 4), 0, false, SweepDirection.Clockwise, true, false); 1431sgc.BeginFigure(new Point(2, 10), true, false); 1432sgc.ArcTo(new Point(10, 2), new Size(4, 4), 0, false, SweepDirection.Counterclockwise, true, false);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (6)
157arrowFigure.StartPoint = new Point(0.0, 5.0); 159LineSegment line = new LineSegment(new Point(5.0, 0.0), false); 163line = new LineSegment(new Point(10.0, 5.0), false); 169arrowFigure.StartPoint = new Point(0.0, 0.0); 171LineSegment line = new LineSegment(new Point(10.0, 0.0), false); 175line = new LineSegment(new Point(5.0, 5.0), false);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (33)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 238figure.StartPoint = new Point(guidelineSetX[1], guidelineSetY[0]); 239figure.Segments.Add(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true)); 240figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true)); 244figure.StartPoint = new Point(guidelineSetX[0], guidelineSetY[0]); 249figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true)); 250figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true)); 251figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true)); 255figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true)); 260figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true)); 261figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true)); 262figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true)); 266figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true)); 272figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true)); 273figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true)); 274figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true)); 278figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true)); 343LinearGradientBrush top = new LinearGradientBrush(sideStops, new Point(0, 1), new Point(0, 0)); 347LinearGradientBrush left = new LinearGradientBrush(sideStops, new Point(1, 0), new Point(0, 0)); 351LinearGradientBrush right = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(1, 0)); 355LinearGradientBrush bottom = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(0, 1)); 371topLeft.Center = new Point(1, 1); 372topLeft.GradientOrigin = new Point(1, 1); 388topRight.Center = new Point(0, 1); 389topRight.GradientOrigin = new Point(0, 1); 407bottomLeft.Center = new Point(1, 0); 408bottomLeft.GradientOrigin = new Point(1, 0); 428bottomRight.Center = new Point(0, 0); 429bottomRight.GradientOrigin = new Point(0, 0);
PresentationFramework.Luna (186)
Microsoft\Windows\Themes\ButtonChrome.cs (40)
719brush.StartPoint = new Point(0,0); 720brush.EndPoint = new Point(0.4,1); 759brush.StartPoint = new Point(0.5, 0); 760brush.EndPoint = new Point(0.5, 1); 790brush.StartPoint = new Point(0.5, 0); 791brush.EndPoint = new Point(0.5, 1); 821brush.StartPoint = new Point(0.5, 0); 822brush.EndPoint = new Point(0.5, 1); 852brush.StartPoint = new Point(0.5, 0); 853brush.EndPoint = new Point(0.5, 1); 883brush.StartPoint = new Point(0.5, 0); 884brush.EndPoint = new Point(0.5, 1); 915brush.StartPoint = new Point(0.5, 0); 916brush.EndPoint = new Point(0.5, 1); 981temp.StartPoint = new Point(0.5,0); 982temp.EndPoint = new Point(0.5,1); 1007temp.StartPoint = new Point(0.5, 0); 1008temp.EndPoint = new Point(0.5, 1); 1033temp.StartPoint = new Point(0.5, 0); 1034temp.EndPoint = new Point(0.5, 1); 1059temp.StartPoint = new Point(0.5, 0); 1060temp.EndPoint = new Point(0.5, 1); 1103temp.StartPoint = new Point(0, 0.5); 1104temp.EndPoint = new Point(1, 0.5); 1129temp.StartPoint = new Point(0, 0.5); 1130temp.EndPoint = new Point(1, 0.5); 1155temp.StartPoint = new Point(0, 0.5); 1156temp.EndPoint = new Point(1, 0.5); 1198temp.StartPoint = new Point(0.5, 1); 1199temp.EndPoint = new Point(0.5, 0); 1236temp.StartPoint = new Point(1, 0.5); 1237temp.EndPoint = new Point(0, 0.5); 1338temp.StartPoint = new Point(0.5, 1); 1339temp.EndPoint = new Point(0.5, 0); 1364temp.StartPoint = new Point(0.5, 1); 1365temp.EndPoint = new Point(0.5, 0); 1390temp.StartPoint = new Point(0.5, 0); 1391temp.EndPoint = new Point(0.5, 1); 1417temp.StartPoint = new Point(0.5, 0); 1418temp.EndPoint = new Point(0.5, 1);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (17)
114background.StartPoint = new Point(); 115background.EndPoint = new Point(0.0, 1.0); 179tabFigure.StartPoint = new Point(0.5, 0.5); 181LineSegment line = new LineSegment(new Point(size.Width - 0.5, 0.5), true); 185ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 189line = new LineSegment(new Point(2.5, 2.5), true); 193arc = new ArcSegment(new Point(0.5, 0.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 219tabFill.StartPoint = new Point(); 220tabFill.EndPoint = new Point(1.0, 0.0); 274gripper.StartPoint = new Point(); 275gripper.EndPoint = new Point(1.0, 0.0); 322arrowFigure.StartPoint = new Point(0.0, 5.0); 324LineSegment line = new LineSegment(new Point(5.0, 0.0), false); 328line = new LineSegment(new Point(10.0, 5.0), false); 334arrowFigure.StartPoint = new Point(0.0, 0.0); 336LineSegment line = new LineSegment(new Point(10.0, 0.0), false); 340line = new LineSegment(new Point(5.0, 5.0), false);
Microsoft\Windows\Themes\ScrollChrome.cs (74)
448figure.StartPoint = new Point(4.5, 0.0); 449figure.Segments.Add(new LineSegment(new Point(0.0, 4.5), true)); 450figure.Segments.Add(new LineSegment(new Point(4.5, 9.0), true)); 451figure.Segments.Add(new LineSegment(new Point(6.0, 7.5), true)); 452figure.Segments.Add(new LineSegment(new Point(3.0, 4.5), true)); 453figure.Segments.Add(new LineSegment(new Point(6.0, 1.5), true)); 481figure.StartPoint = new Point(3.5, 0.0); 482figure.Segments.Add(new LineSegment(new Point(8.0, 4.5), true)); 483figure.Segments.Add(new LineSegment(new Point(3.5, 9.0), true)); 484figure.Segments.Add(new LineSegment(new Point(2.0, 7.5), true)); 485figure.Segments.Add(new LineSegment(new Point(5.0, 4.5), true)); 486figure.Segments.Add(new LineSegment(new Point(2.0, 1.5), true)); 514figure.StartPoint = new Point(0.0, 4.5); 515figure.Segments.Add(new LineSegment(new Point(4.5, 0.0), true)); 516figure.Segments.Add(new LineSegment(new Point(9.0, 4.5), true)); 517figure.Segments.Add(new LineSegment(new Point(7.5, 6.0), true)); 518figure.Segments.Add(new LineSegment(new Point(4.5, 3.0), true)); 519figure.Segments.Add(new LineSegment(new Point(1.5, 6.0), true)); 547figure.StartPoint = new Point(0.0, 3.5); 548figure.Segments.Add(new LineSegment(new Point(4.5, 8.0), true)); 549figure.Segments.Add(new LineSegment(new Point(9.0, 3.5), true)); 550figure.Segments.Add(new LineSegment(new Point(7.5, 2.0), true)); 551figure.Segments.Add(new LineSegment(new Point(4.5, 5.0), true)); 552figure.Segments.Add(new LineSegment(new Point(1.5, 2.0), true)); 667temp.StartPoint = new Point(0, 0); 668temp.EndPoint = new Point(1, 1); 695temp.StartPoint = new Point(0, 0); 696temp.EndPoint = new Point(1, 0); 722temp.StartPoint = new Point(0, 0); 723temp.EndPoint = new Point(0, 1); 749temp.StartPoint = new Point(0, 0); 750temp.EndPoint = new Point(1, 1); 776temp.StartPoint = new Point(0, 0); 777temp.EndPoint = new Point(1, 0); 803temp.StartPoint = new Point(0, 0); 804temp.EndPoint = new Point(0, 1); 831temp.StartPoint = new Point(0, 0); 832temp.EndPoint = new Point(1, 1); 859temp.StartPoint = new Point(0, 0); 860temp.EndPoint = new Point(1, 0); 886temp.StartPoint = new Point(0, 0); 887temp.EndPoint = new Point(0, 1); 913temp.StartPoint = new Point(0, 0); 914temp.EndPoint = new Point(1, 0); 941temp.StartPoint = new Point(0, 0); 942temp.EndPoint = new Point(0, 1); 969temp.StartPoint = new Point(0, 0); 970temp.EndPoint = new Point(1, 0); 998temp.StartPoint = new Point(0, 0); 999temp.EndPoint = new Point(0, 1); 1026temp.StartPoint = new Point(0, 0); 1027temp.EndPoint = new Point(1, 0); 1054temp.StartPoint = new Point(0, 0); 1055temp.EndPoint = new Point(0, 1); 1082temp.StartPoint = new Point(0, 0); 1083temp.EndPoint = new Point(1, 0); 1111temp.StartPoint = new Point(0.5, 0); 1112temp.EndPoint = new Point(0.5, 1); 1142temp.StartPoint = new Point(0, 0); 1143temp.EndPoint = new Point(1, 0); 1171temp.StartPoint = new Point(0.5, 0); 1172temp.EndPoint = new Point(0.5, 1); 1201temp.StartPoint = new Point(0, 0); 1202temp.EndPoint = new Point(1, 0); 1231temp.StartPoint = new Point(0.5, 0); 1232temp.EndPoint = new Point(0.5, 1); 1261temp.StartPoint = new Point(0, 0); 1262temp.EndPoint = new Point(1, 1); 2335brush.StartPoint = new Point(0, 0); 2336brush.EndPoint = new Point(0, 1); 2367brush.StartPoint = new Point(0, 0); 2368brush.EndPoint = new Point(0, 1); 2399brush.StartPoint = new Point(0, 0); 2400brush.EndPoint = new Point(0, 1);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (22)
255dc.DrawEllipse(fill, null, new Point(centerX, centerY), centerX - 1, centerY - 1); 277dc.DrawEllipse(null, highlightPen, new Point(centerX, centerY), centerX - 2, centerY - 2); 327dc.DrawEllipse(glyphFill, null, new Point(centerX, centerY), centerX - 4, centerY - 4); 373dc.DrawEllipse(null, borderPen, new Point(centerX, centerY), centerX - 0.5, centerY - 0.5); 512sgc.BeginFigure(new Point(3, 5.0), true, true); 513sgc.LineTo(new Point(3, 7.8), false, false); 514sgc.LineTo(new Point(5.5, 10.4), false, false); 515sgc.LineTo(new Point(10.1, 5.8), false, false); 516sgc.LineTo(new Point(10.1, 3), false, false); 517sgc.LineTo(new Point(5.5, 7.6), false, false); 593temp.StartPoint = new Point(); 594temp.EndPoint = new Point(1, 1); 711brush.StartPoint = new Point(0, 0); 712brush.EndPoint = new Point(1, 1); 742brush.StartPoint = new Point(0, 0); 743brush.EndPoint = new Point(1, 1); 791temp.StartPoint = new Point(0, 0); 792temp.EndPoint = new Point(1, 1); 819temp.StartPoint = new Point(0, 0); 820temp.EndPoint = new Point(1, 1); 868temp.StartPoint = new Point(0, 0); 869temp.EndPoint = new Point(1, 1);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (33)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 238figure.StartPoint = new Point(guidelineSetX[1], guidelineSetY[0]); 239figure.Segments.Add(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true)); 240figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true)); 244figure.StartPoint = new Point(guidelineSetX[0], guidelineSetY[0]); 249figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true)); 250figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true)); 251figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true)); 255figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true)); 260figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true)); 261figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true)); 262figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true)); 266figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true)); 272figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true)); 273figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true)); 274figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true)); 278figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true)); 343LinearGradientBrush top = new LinearGradientBrush(sideStops, new Point(0, 1), new Point(0, 0)); 347LinearGradientBrush left = new LinearGradientBrush(sideStops, new Point(1, 0), new Point(0, 0)); 351LinearGradientBrush right = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(1, 0)); 355LinearGradientBrush bottom = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(0, 1)); 371topLeft.Center = new Point(1, 1); 372topLeft.GradientOrigin = new Point(1, 1); 388topRight.Center = new Point(0, 1); 389topRight.GradientOrigin = new Point(0, 1); 407bottomLeft.Center = new Point(1, 0); 408bottomLeft.GradientOrigin = new Point(1, 0); 428bottomRight.Center = new Point(0, 0); 429bottomRight.GradientOrigin = new Point(0, 0);
PresentationFramework.Royale (132)
Microsoft\Windows\Themes\ButtonChrome.cs (20)
578brush.StartPoint = new Point(0,0); 579brush.EndPoint = new Point(0.4,1); 618brush.StartPoint = new Point(0.5, 0); 619brush.EndPoint = new Point(0.5, 1); 650brush.StartPoint = new Point(0.5, 0); 651brush.EndPoint = new Point(0.5, 1); 703temp.StartPoint = new Point(0.5,0); 704temp.EndPoint = new Point(0.5,1); 729temp.StartPoint = new Point(0.5, 0); 730temp.EndPoint = new Point(0.5, 1); 768temp.StartPoint = new Point(0, 0.5); 769temp.EndPoint = new Point(1, 0.5); 806temp.StartPoint = new Point(0.5, 1); 807temp.EndPoint = new Point(0.5, 0); 844temp.StartPoint = new Point(1, 0.5); 845temp.EndPoint = new Point(0, 0.5); 870temp.StartPoint = new Point(1, 0.5); 871temp.EndPoint = new Point(0, 0.5); 919temp.StartPoint = new Point(0.5, 1); 920temp.EndPoint = new Point(0.5, 0);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (17)
70background.StartPoint = new Point(); 71background.EndPoint = new Point(0.0, 1.0); 108tabFigure.StartPoint = new Point(0.5, 0.5); 110LineSegment line = new LineSegment(new Point(size.Width - 0.5, 0.5), true); 114ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 118line = new LineSegment(new Point(2.5, 2.5), true); 122arc = new ArcSegment(new Point(0.5, 0.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 148tabFill.StartPoint = new Point(); 149tabFill.EndPoint = new Point(1.0, 0.0); 196gripper.StartPoint = new Point(); 197gripper.EndPoint = new Point(1.0, 0.0); 244arrowFigure.StartPoint = new Point(0.0, 5.0); 246LineSegment line = new LineSegment(new Point(5.0, 0.0), false); 250line = new LineSegment(new Point(10.0, 5.0), false); 256arrowFigure.StartPoint = new Point(0.0, 0.0); 258LineSegment line = new LineSegment(new Point(10.0, 0.0), false); 262line = new LineSegment(new Point(5.0, 5.0), false);
Microsoft\Windows\Themes\ScrollChrome.cs (40)
408figure.StartPoint = new Point(4.5, 0.0); 409figure.Segments.Add(new LineSegment(new Point(0.0, 4.5), true)); 410figure.Segments.Add(new LineSegment(new Point(4.5, 9.0), true)); 411figure.Segments.Add(new LineSegment(new Point(6.0, 7.5), true)); 412figure.Segments.Add(new LineSegment(new Point(3.0, 4.5), true)); 413figure.Segments.Add(new LineSegment(new Point(6.0, 1.5), true)); 441figure.StartPoint = new Point(3.5, 0.0); 442figure.Segments.Add(new LineSegment(new Point(8.0, 4.5), true)); 443figure.Segments.Add(new LineSegment(new Point(3.5, 9.0), true)); 444figure.Segments.Add(new LineSegment(new Point(2.0, 7.5), true)); 445figure.Segments.Add(new LineSegment(new Point(5.0, 4.5), true)); 446figure.Segments.Add(new LineSegment(new Point(2.0, 1.5), true)); 474figure.StartPoint = new Point(0.0, 4.5); 475figure.Segments.Add(new LineSegment(new Point(4.5, 0.0), true)); 476figure.Segments.Add(new LineSegment(new Point(9.0, 4.5), true)); 477figure.Segments.Add(new LineSegment(new Point(7.5, 6.0), true)); 478figure.Segments.Add(new LineSegment(new Point(4.5, 3.0), true)); 479figure.Segments.Add(new LineSegment(new Point(1.5, 6.0), true)); 507figure.StartPoint = new Point(0.0, 3.5); 508figure.Segments.Add(new LineSegment(new Point(4.5, 8.0), true)); 509figure.Segments.Add(new LineSegment(new Point(9.0, 3.5), true)); 510figure.Segments.Add(new LineSegment(new Point(7.5, 2.0), true)); 511figure.Segments.Add(new LineSegment(new Point(4.5, 5.0), true)); 512figure.Segments.Add(new LineSegment(new Point(1.5, 2.0), true)); 625temp.StartPoint = new Point(0, 0); 626temp.EndPoint = new Point(1, 0); 651temp.StartPoint = new Point(0.5, 0); 652temp.EndPoint = new Point(0.5, 1); 678temp.StartPoint = new Point(0, 0); 679temp.EndPoint = new Point(1, 0); 704temp.StartPoint = new Point(0.5, 0); 705temp.EndPoint = new Point(0.5, 1); 730temp.StartPoint = new Point(1, 0); 731temp.EndPoint = new Point(0, 0); 756temp.StartPoint = new Point(0, 1); 757temp.EndPoint = new Point(0, 0); 782temp.StartPoint = new Point(0, 0); 783temp.EndPoint = new Point(1, 1); 1012brush.StartPoint = new Point(0, 0); 1013brush.EndPoint = new Point(1, 1);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (22)
255dc.DrawEllipse(fill, null, new Point(centerX, centerY), centerX - 1, centerY - 1); 277dc.DrawEllipse(null, highlightPen, new Point(centerX, centerY), centerX - 2, centerY - 2); 327dc.DrawEllipse(glyphFill, null, new Point(centerX, centerY), centerX - 4, centerY - 4); 373dc.DrawEllipse(null, borderPen, new Point(centerX, centerY), centerX - 0.5, centerY - 0.5); 512sgc.BeginFigure(new Point(3, 5.0), true, true); 513sgc.LineTo(new Point(3, 7.8), false, false); 514sgc.LineTo(new Point(5.5, 10.4), false, false); 515sgc.LineTo(new Point(10.1, 5.8), false, false); 516sgc.LineTo(new Point(10.1, 3), false, false); 517sgc.LineTo(new Point(5.5, 7.6), false, false); 593temp.StartPoint = new Point(); 594temp.EndPoint = new Point(1, 1); 711brush.StartPoint = new Point(0, 0); 712brush.EndPoint = new Point(1, 1); 742brush.StartPoint = new Point(0, 0); 743brush.EndPoint = new Point(1, 1); 791temp.StartPoint = new Point(0, 0); 792temp.EndPoint = new Point(1, 1); 819temp.StartPoint = new Point(0, 0); 820temp.EndPoint = new Point(1, 1); 868temp.StartPoint = new Point(0, 0); 869temp.EndPoint = new Point(1, 1);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (33)
109Rect shadowBounds = new Rect(new Point(ShadowDepth, ShadowDepth), 238figure.StartPoint = new Point(guidelineSetX[1], guidelineSetY[0]); 239figure.Segments.Add(new LineSegment(new Point(guidelineSetX[1], guidelineSetY[1]), true)); 240figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[1]), true)); 244figure.StartPoint = new Point(guidelineSetX[0], guidelineSetY[0]); 249figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[3]), true)); 250figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[3]), true)); 251figure.Segments.Add(new LineSegment(new Point(guidelineSetX[3], guidelineSetY[5]), true)); 255figure.Segments.Add(new LineSegment(new Point(guidelineSetX[0], guidelineSetY[5]), true)); 260figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[5]), true)); 261figure.Segments.Add(new LineSegment(new Point(guidelineSetX[4], guidelineSetY[4]), true)); 262figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[4]), true)); 266figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[5]), true)); 272figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[2]), true)); 273figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[2]), true)); 274figure.Segments.Add(new LineSegment(new Point(guidelineSetX[2], guidelineSetY[0]), true)); 278figure.Segments.Add(new LineSegment(new Point(guidelineSetX[5], guidelineSetY[0]), true)); 343LinearGradientBrush top = new LinearGradientBrush(sideStops, new Point(0, 1), new Point(0, 0)); 347LinearGradientBrush left = new LinearGradientBrush(sideStops, new Point(1, 0), new Point(0, 0)); 351LinearGradientBrush right = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(1, 0)); 355LinearGradientBrush bottom = new LinearGradientBrush(sideStops, new Point(0, 0), new Point(0, 1)); 371topLeft.Center = new Point(1, 1); 372topLeft.GradientOrigin = new Point(1, 1); 388topRight.Center = new Point(0, 1); 389topRight.GradientOrigin = new Point(0, 1); 407bottomLeft.Center = new Point(1, 0); 408bottomLeft.GradientOrigin = new Point(1, 0); 428bottomRight.Center = new Point(0, 0); 429bottomRight.GradientOrigin = new Point(0, 0);
System.Activities.Core.Presentation (13)
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
428Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity);
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
301oldCenter = new Point(location.X + element.DesiredSize.Width / 2, location.Y + element.DesiredSize.Height / 2);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
60Point startLocation = SnapVisualToGrid(this.StartSymbol, startPoint, new Point(-1, -1), false);
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (1)
444Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity);
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
139oldCenter = new Point(location.X + element.DesiredSize.Width / 2, location.Y + element.DesiredSize.Height / 2);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (7)
494Point startLocation = SnapVisualToGrid(this.initialNode, startPoint, new Point(-1, -1), false); 1775Point invalidPoint = new Point(-1, -1); 2455Point midPoint = new Point(-1, -1); 2461midPoint = new Point(location.X, location.Y + size.Height / 2); 2464midPoint = new Point(location.X + size.Width, location.Y + size.Height / 2); 2467midPoint = new Point(location.X + size.Width / 2, location.Y); 2470midPoint = new Point(location.X + size.Width / 2, location.Y + size.Height);
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
475newTransitionViewState.Add(new Point(0, 0));
System.Activities.Presentation (149)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (6)
132Point anchorPoint = this.AdornedElement.TranslatePoint(new Point(this.AdornedElement.RenderSize.Width, 0), this.ScrollViewer); 154Point location = new Point(); 159location = new Point(adorneeSize.Width, 0); 162location = new Point(adorneeSize.Width, -adornerSize.Height); 165location = new Point(adorneeSize.Width - adornerSize.Width, -adornerSize.Height); 168location = new Point(adorneeSize.Width - adornerSize.Width, 20);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
79return this.Owner.PointToScreen(new Point(10, 10));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (1)
71return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width - popupSize.Width, targetSize.Height), PopupPrimaryAxis.Horizontal) };
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (6)
906RenderUtils.DrawInscribedRoundedRect(drawingContext, dropButtonBrush, null, new Rect(new Point(dropButtonLeft, dropButtonTop), new Point(dropButtonRight, dropButtonBottom)), innerCornerRadius); 911drawingContext.DrawImage(buttonIcon, new Rect(new Point(buttonCenterX - iconWidth / 2d, buttonCenterY - iconHeight / 2d), new Point(buttonCenterX + iconWidth / 2d, buttonCenterY + iconHeight / 2d))); 919RenderUtils.DrawInscribedRoundedRect(drawingContext, this.Background, null, new Rect(new Point(textAreaLeft, textAreaTop), new Point(textAreaRight, textAreaBottom)), innerCornerRadius);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (4)
19Point spineLeftTop = new Point(outerBounds.Left, outerBounds.Top); 20Point spineRightBottom = new Point(outerBounds.Right, outerBounds.Bottom); 46return new Rect(new Point(outerBounds.Left + strokeThickness, outerBounds.Top + strokeThickness), new Point(outerBounds.Right - strokeThickness, outerBounds.Bottom - strokeThickness));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (8)
284new Point(0, renderSize.Height - halfThickness), 285new Point(renderSize.Width, renderSize.Height - halfThickness)); 290new Point(0, 0 - halfThickness), 291new Point(renderSize.Width, 0 - halfThickness)); 296new Point(renderSize.Width - halfThickness, 0), 297new Point(renderSize.Width - halfThickness, renderSize.Height)); 302new Point(dividerLeft + halfThickness, 0), 303new Point(dividerLeft + halfThickness, renderSize.Height));
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
413DoPaste(context, new Point(-1, -1), null); 746ICompositeView container = GetContainerForPaste(primarySelection, new Point(-1, -1));
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
655referencePoint = new Point(-1, -1); 733Point topLeftPoint = new Point(double.PositiveInfinity, double.PositiveInfinity); 741Point location = new Point(0, 0); 745location = transform.Transform(new Point(0, 0));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (17)
49this.adornedElementRect = new Rect(new Point(0, 0), size); 66StartPoint = new Point(-DropTargetOffset - TriangleHeight, size.Height / 2), Segments = 68new LineSegment() { Point = new Point(-DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)) }, 69new LineSegment() { Point = new Point(-DropTargetOffset, (size.Height / 2) + (TriangleBaseLength / 2)) }, 70new LineSegment() { Point = new Point(-DropTargetOffset - TriangleHeight, size.Height / 2) } 81StartPoint = new Point(size.Width + DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)), Segments = 83new LineSegment() { Point = new Point(size.Width + DropTargetOffset + TriangleHeight, size.Height / 2) }, 84new LineSegment() { Point = new Point(size.Width + DropTargetOffset, (size.Height / 2) + (TriangleBaseLength / 2)) }, 85new LineSegment() { Point = new Point(size.Width + DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)) } 96StartPoint = new Point((size.Width / 2) - (TriangleBaseLength / 2), -DropTargetOffset), Segments = 98new LineSegment() { Point = new Point((size.Width / 2), -DropTargetOffset - TriangleHeight) }, 99new LineSegment() { Point = new Point((size.Width / 2) + (TriangleBaseLength / 2), -DropTargetOffset) }, 100new LineSegment() { Point = new Point((size.Width / 2) - (TriangleBaseLength / 2), -DropTargetOffset) } 111StartPoint = new Point((size.Width / 2) - (TriangleBaseLength / 2), size.Height + DropTargetOffset), Segments = 113new LineSegment() { Point = new Point((size.Width / 2) + (TriangleBaseLength / 2), size.Height + DropTargetOffset) }, 114new LineSegment() { Point = new Point((size.Width / 2), size.Height + TriangleHeight + DropTargetOffset) }, 115new LineSegment() { Point = new Point((size.Width / 2) - (TriangleBaseLength / 2), size.Height + DropTargetOffset) }
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (11)
56Rect rect = new Rect(new Point(location.X - HitRegionOffset, location.Y - HitRegionOffset), new Size(size.Width + (HitRegionOffset * 2), size.Height + (HitRegionOffset * 2))); 91rects.Add(new Rect(new Point(targetLocation.X - HitRegionOffset, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 92rects.Add(new Rect(new Point(targetLocation.X + targetSize.Width, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 93rects.Add(new Rect(new Point(targetLocation.X + ((targetSize.Width - DropTargetWidth) / 2), targetLocation.Y - HitRegionOffset), new Size(DropTargetWidth, HitRegionOffset))); 94rects.Add(new Rect(new Point(targetLocation.X + ((targetSize.Width - DropTargetWidth) / 2), targetLocation.Y + targetSize.Height), new Size(DropTargetWidth, HitRegionOffset))); 117Point dropPoint = new Point(-1, -1); 125dropPoint = new Point(location.X - DropPointOffset - droppedSize.Width, location.Y + ((size.Height - droppedSize.Height) / 2)); 128dropPoint = new Point(location.X + size.Width + DropPointOffset, location.Y + ((size.Height - droppedSize.Height) / 2)); 131dropPoint = new Point(location.X + ((size.Width - droppedSize.Width) / 2), location.Y - DropPointOffset - droppedSize.Height); 134dropPoint = new Point(location.X + ((size.Width - droppedSize.Width) / 2), location.Y + DropPointOffset + size.Height); 141dropPoint = new Point(dropPoint.X < 0 ? 0 : dropPoint.X, dropPoint.Y < 0 ? 0 : dropPoint.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
23this.adornedElementRect = new Rect(new Point(0, 0), size);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (4)
25Point srcCenter = new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2)); 26Point destCenter = new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2)); 70double distToSrc = DesignerGeometryHelper.ManhattanDistanceBetweenPoints(mousePosition, new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2))); 71double distToDest = DesignerGeometryHelper.ManhattanDistanceBetweenPoints(mousePosition, new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2)));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (6)
121return new List<Point> { topLeft, new Point(topLeft.X, topLeft.Y + parentHeight) }; 125return new List<Point> { new Point(topLeft.X + parentWidth, topLeft.Y), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) }; 129return new List<Point> { topLeft, new Point(topLeft.X + parentWidth, topLeft.Y) }; 133return new List<Point> { new Point(topLeft.X, topLeft.Y + parentHeight), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) };
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (1)
33Point connectionPointLocation = new Point(width * widthFraction + origin.X, height * heightFraction + origin.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (14)
300Point location = (slope < 1) ? new Point(next.Location.X, current.Location.Y) : new Point(current.Location.X, next.Location.Y); 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); 418Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset); 439Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset); 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);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (31)
111return new Point( 179excludedLines.Add(new Point(connector.Points[i].X, connector.Points[i].Y)); 180excludedLines.Add(new Point(connector.Points[i + 1].X, connector.Points[i + 1].Y)); 238Point intermediatePoint = (slope < 1) ? new Point(destPoint.X, srcPoint.Y) : new Point(srcPoint.X, destPoint.Y); 408Point r1 = new Point(), r2 = new Point(), r3 = new Point(), r4 = new Point(); 412r1 = new Point(Z.X, topCover.A.Y); 416r2 = new Point(rightCover.A.X, Z.Y); 420r3 = new Point(Z.X, bottomCover.A.Y); 424r4 = new Point(leftCover.A.X, Z.Y); 584escapePoint = new Point(p.X + direction.X * margin.Width, Z.Y); 588escapePoint = new Point(Z.X, p.Y + direction.Y * margin.Height); 959Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y); 1126Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 1127Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 1138Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y); 1139Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 1185return new Point((this.orientation == Orientation.Horizontal) ? k : p.X, (this.orientation == Orientation.Horizontal) ? p.Y : k); 1248return new Point(vertical.A.X, horizontal.A.Y); 1267Point newPoint = new Point(p.X, p.Y); 1307AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Left, rectangle.Bottom))); 1308AddCover(new ConnectorSegment(new Point(rectangle.Right, rectangle.Top), new Point(rectangle.Right, rectangle.Bottom))); 1309AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Top), new Point(rectangle.Right, rectangle.Top))); 1310AddCover(new ConnectorSegment(new Point(rectangle.Left, rectangle.Bottom), new Point(rectangle.Right, rectangle.Bottom)));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorStartDotConverter.cs (2)
29return new Point((point.X - radius), point.Y); 33return new Point((point.X + radius), point.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (1)
38return new Point(Math.Round((point1.X + point2.X) / 2), Math.Round((point1.Y + point2.Y) / 2));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (6)
25public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached("Location", typeof(Point), typeof(FreeFormPanel), new FrameworkPropertyMetadata(new Point(-1, -1))); 254pointCollection.Add(new Point(point.X < 0 ? 0 : point.X, point.Y < 0 ? 0 : point.Y)); 330Point pt = new Point(0, 0); 402Point pt = new Point(0, 0); 409pt = new Point(0, 0); 439pt = new Point(LeftStackingMargin, lastYPosition);
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (1)
109this.mousePosition = new Point();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
778Point contextMenuTopLeft = this.ContextMenu.TranslatePoint(new Point(0, 0), sourceElement); 1503viewElement.ActiveCompositeView.OnItemsPasted(itemsToPaste, metaData, new Point(), null);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
626Point scrPoint = new Point((int)(pos & 0xffff), (int)(pos >> 16));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (7)
57new UIPropertyMetadata(new Point())); 65Point canvasOffset = new Point(); 201Point calculatedPosition = new Point(); 248calculatedPosition = transform.Transform(new Point(0.0, target.ActualHeight)); 252calculatedPosition = transform.Transform(new Point(target.ActualWidth, 0.0)); 256calculatedPosition = transform.Transform(new Point(target.ActualWidth, target.ActualHeight)); 428this.actualPanelRect.Location = new Point(offsetMinusX, offsetMinusY);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (3)
213Point offset = new Point(); 219Point targetPosition = transform.Transform(new Point()); 371this.bottomRight = new Point(topLeft.X + Width, topLeft.Y + Height);
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (4)
175return new Point(point.X < -RubberBandThickness ? -RubberBandThickness : point.X, point.Y < -RubberBandThickness ? -RubberBandThickness : point.Y); 201Point topLeft = transform.Transform(new Point(0, 0)); 202Point bottomRight = transform.Transform(new Point(view.DragHandle.ActualWidth, view.DragHandle.ActualHeight)); 273Point location = transform.Transform(new Point(0, 0));
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (3)
21this.scrollViewerToScreenDistance = designerView.ScrollViewer.PointToScreen(new Point(0, 0)).Y;; 56this.AdornedElement.PointToScreen(new Point(0, 0)).Y - this.scrollViewerToScreenDistance; 60Rect tooltipRect = new Rect(new Point(0, Y), tooltip.DesiredSize);
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (1)
475Point currentPoint = generalTransform1.Transform(new Point(0, 0));
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
799Point dragHandleLocation = transform.Transform(new Point(0, 0));
UIAutomationClient (13)
MS\Internal\Automation\ClickablePoint.cs (10)
38pt = new Point(0, 0); 50pt = new Point((rect.Left + rect.Right) / 2, (rect.Top + rect.Bottom) / 2); 65pt = new Point(rect.Left + (rect.Width /2), rect.Top + 1); 69pt = new Point(rect.Left + (rect.Width /2), rect.Bottom - 1); 73pt = new Point( rect.Left + 1, rect.Top + (rect.Height /2) ); 77pt = new Point( rect.Right - 1, rect.Top + (rect.Height /2) ); 121pt = new Point(x, y); 129pt = new Point(0, 0); 165pt = new Point(across, down); 171pt = new Point(0, 0);
MS\Internal\Automation\Schema.cs (1)
173return new Point(doubles[0], doubles[1]);
System\Windows\Automation\AutomationElement.cs (2)
949pt = new Point (0, 0); 1057return DrillForPointOrFocus(false, new Point(0, 0), CacheRequest.CurrentUiaCacheRequest);
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\WindowsEditBox.cs (1)
813return new Point(x, y);
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
271Point mapClientToScreen = new Point(w32point.x, w32point.y);
MS\Internal\AutomationProxies\WindowsSpinner.cs (1)
168Point pt = new Point(x, y);
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
268if (rcUpDown.Contains(new Point(x, y)))
WindowsBase (14)
Base\System\Windows\Generated\Point.cs (1)
166value = new Point(
Base\System\Windows\Point.cs (4)
63return new Point(point._x + vector._x, point._y + vector._y); 76return new Point(point._x + vector._x, point._y + vector._y); 89return new Point(point._x - vector._x, point._y - vector._y); 102return new Point(point._x - vector._x, point._y - vector._y);
Base\System\Windows\Rect.cs (5)
158return new Point(_x, _y); 367return new Point(Left, Top); 379return new Point(Right, Top); 391return new Point(Left, Bottom); 403return new Point(Right, Bottom);
Base\System\Windows\Size.cs (1)
153return new Point(size._width, size._height);
Base\System\Windows\Vector.cs (3)
166return new Point(point._x + vector._x, point._y + vector._y); 174return new Point(point._x + vector._x, point._y + vector._y); 301return new Point(vector._x, vector._y);
2480 references to Point
PresentationCore (1183)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (16)
98internal static Point InterpolatePoint(Point from, Point to, Double progress) 192internal static Point AddPoint(Point value1, Point value2) 294internal static Point SubtractPoint(Point value1, Point value2) 436internal static Double GetSegmentLengthPoint(Point from, Point to) 542internal static Point ScalePoint(Point value, Double factor) 660internal static bool IsValidAnimationValuePoint(Point value) 792internal static Point GetZeroValuePoint(Point baseValue)
Core\CSharp\MS\Internal\Automation\ElementProxy.cs (2)
345Point point = (Point)arg;
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (3)
175internal static Visual GetElementFromPoint( IntPtr hwnd, Visual root, Point pointScreen ) 182Point pointClient = PointUtil.ScreenToClient( pointScreen, hwndSource ); 183Point pointRoot = PointUtil.ClientToRoot(pointClient, hwndSource);
Core\CSharp\MS\Internal\Automation\TextProviderWrapper.cs (3)
76public ITextRangeProvider RangeFromPoint(Point screenLocation) 141Point screenLocation = (Point)arg;
Core\CSharp\MS\Internal\IListConverters.cs (5)
237List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 240list.Add((Point) converter.ConvertFrom(td, ci, _tokenizer.GetCurrentToken())); 247IList<Point> list = value as IList<Point>;
Core\CSharp\MS\Internal\Ink\Bezier.cs (9)
52internal List<Point> Flatten(double tolerance) 54List<Point> points = new List<Point>(); 76Point p = points[x]; 452_bezierControlPoints.Add((Point)point); 463_bezierControlPoints.Add((Point)data.XY(index)); 499private void FlattenSegment(int iFirst, double tolerance, List<Point> points) 585private List<Point> _bezierControlPoints = new List<Point>();
Core\CSharp\MS\Internal\Ink\ContourSegment.cs (8)
27internal ContourSegment(Point begin, Point end) 40internal ContourSegment(Point begin, Point end, Point center) 51internal Point Begin { get { return _begin; } } 54internal Point End { get { return _begin + _vector; } } 65private Point _begin;
Core\CSharp\MS\Internal\Ink\CuspData.cs (5)
47Point point = (Point)stylusPoints[0]; 67Point point2 = (Point)stylusPoints[i]; 543public Point Point; // Point (coordinates are double)
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (5)
180Point point = node.Position; 217StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint) 388StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint)
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (8)
42internal ErasingStroke(StylusShape erasingShape, IEnumerable<Point> path) 57internal void MoveTo(IEnumerable<Point> path) 60Point[] points = IEnumerablePointHelper.GetPointArray(path); 260private Point[] FilterPoints(Point[] path) 263Point back2, back1; 265List<Point> newPath = new List<Point>();
Core\CSharp\MS\Internal\Ink\Lasso.cs (23)
31_points = new List<Point>(); 78internal Point this[int index] 93internal void AddPoints(IEnumerable<Point> points) 97foreach (Point point in points) 107internal void AddPoint(Point point) 123internal bool Contains(Point point) 144Point prevLassoPoint = _points[_points.Count - 1]; 147Point lassoPoint = _points[i]; 217Point lastNodePosition = new Point(); 218Point lassoLastPoint = _points[_points.Count - 1]; 241Point lastPoint = lassoLastPoint; 242foreach (Point point in _points) 497protected List<Point> PointsList 509protected virtual bool Filter(Point point) 518Point lastPoint = _points[_points.Count - 1]; 530protected virtual void AddPointImpl(Point point) 539private List<Point> _points; 684protected override bool Filter(Point point) 686List<Point> points = PointsList; 723Point intersectionPoint = new Point(0, 0); 760protected override void AddPointImpl(Point point) 770private bool GetIntersectionWithExistingLasso(Point point, ref double bIndex) 772List<Point> points = PointsList;
Core\CSharp\MS\Internal\Ink\Quad.cs (14)
40internal Quad(Point a, Point b, Point c, Point d) 46internal Point A { get { return _A; } set { _A = value; } } 49internal Point B { get { return _B; } set { _B = value; } } 52internal Point C { get { return _C; } set { _C = value; } } 55internal Point D { get { return _D; } set { _D = value; } } 58internal Point this[int index] 80internal void GetPoints(List<Point> pointBuffer) 98private Point _A; 99private Point _B; 100private Point _C; 101private Point _D;
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (27)
63internal Point Position { get { return _thisNode.Position; } } 69internal Point PreviousPosition { get { return _lastNode.Position; } } 117internal void GetContourPoints(List<Point> pointBuffer) 128internal void GetPreviousContourPoints(List<Point> pointBuffer) 192internal void GetPointsAtStartOfSegment(List<Point> abPoints, 193List<Point> dcPoints 244Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 278Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 317internal void GetPointsAtEndOfSegment( List<Point> abPoints, 318List<Point> dcPoints 363Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 390Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 423List<Point> abPoints, 424List<Point> dcPoints, 480Point intersection = GetIntersection(quad1.A, quad1.B, quad2.A, quad2.B); 554Point intersection = GetIntersection(quad1.D, quad1.C, quad2.D, quad2.C); 626Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 686Point intersection = GetIntersection(quad1.A, quad1.B, quad2.A, quad2.B); 731Point intersection = GetIntersection(quad1.D, quad1.C, quad2.D, quad2.C); 764internal static Point GetIntersection(Point line1Start, Point line1End, Point line2Start, Point line2End) 894internal StrokeFIndices CutTest(Point begin, Point end) 1043internal Point GetPointAt(double findex)
Core\CSharp\MS\Internal\Ink\StrokeNodeData.cs (4)
38internal StrokeNodeData(Point position) 49internal StrokeNodeData(Point position, float pressure) 68internal Point Position 80private Point _position;
Core\CSharp\MS\Internal\Ink\StrokeNodeEnumerator.cs (3)
171internal StrokeNodeIterator GetIteratorForNextSegment(Point[] points) 241StrokeNodeData nodeData = new StrokeNodeData((Point)stylusPoint, pressureFactor); 245lastNodeData = new StrokeNodeData((Point)previousStylusPoint, previousPressureFactor);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (20)
74_shapeBounds.Union(new Rect((Point)_vertices[i], (Point)_vertices[i + 1])); 78_shapeBounds.Union((Point)_vertices[i]); 100internal void GetNodeContourPoints(StrokeNodeData node, List<Point> pointBuffer) 133Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor); 136Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 147Point vertex = node.Position + (_vertices[i] * node.PressureFactor); 153Point nextVertex = node.Position + (_vertices[i] * node.PressureFactor); 299StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint) 307Point position; 383Point nodePosition = (node == 0) ? beginNode.Position : endNode.Position; 384Point end = (node == 0) ? quad.A : quad.C; 478StrokeNodeData beginNode, StrokeNodeData endNode, Quad quad, Point hitBeginPoint, Point hitEndPoint) 485Point position = (node == 0) ? beginNode.Position : endNode.Position; 954Point position; 1111Point nodePosition = (k == 0) ? beginNode.Position : endNode.Position; 1112Point end = (k == 0) ? quad.A : quad.C; 1203Point position;
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (3)
81internal static bool HitTestQuadSegment(Quad quad, Point hitBegin, Point hitEnd) 163internal static bool HitTestQuadCircle(Quad quad, Point center, Vector radius)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (33)
58List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 70List<Point> strokeNodePoints = new List<Point>(); 181Point temp = connectingQuadPoints[i]; 269List<Point> pathFigureABSide = new List<Point>();//don't prealloc. It causes Gen2 collections to rise and doesn't help execution time 270List<Point> pathFigureDCSide = new List<Point>(); 271List<Point> polyLinePoints = new List<Point>(4); 759List<Point> pointBuffer1, 760List<Point> pointBuffer2, 761List<Point> pointBuffer3 814private static void ReverseDCPointsRenderAndClear(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints, bool isEllipse, bool clear) 817Point temp; 879private static void AddFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> points, bool isBezierFigure) 907private static void AddPolylineFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints) 930private static void AddArcToFigureToStreamGeometryContext(StreamGeometryContext context, List<Point> abPoints, List<Point> dcPoints, List<Point> polyLinePoints) 947List<Point> points = j == 0 ? abPoints : dcPoints; 951Point next = points[i]; 966Point sizePoint = points[i + 1]; 968Point arcToPoint = points[i + 2]; 1004private static double GetAngleDeltaFromLast(Point previousPosition, Point currentPosition, ref double lastAngle) 1043private static double GetAngleBetween(Point previousPosition, Point currentPosition) 1137internal static readonly Point ArcToMarker = new Point(Double.MinValue, Double.MinValue);
Core\CSharp\MS\Internal\Ink\StylusShape.cs (14)
36private Point[] m_vertices; 142Point[] p = GetBezierControlPoints(); 195foreach (Point vertex in m_vertices) 219Point topLeft = new Point(-(m_width * 0.5), -(m_height * 0.5)); 220m_vertices = new Point[4] { topLeft, 239Point prevVertex = (Point)vertices[vertices.Length - 1]; 244Point vertex = (Point) vertices[i]; 248double det = Vector.Determinant(edge, (Point)vertices[(i + 1) % vertices.Length] - (Point)vertex); 278private Point[] GetBezierControlPoints() 290Point[] controlPoints = new Point[] {
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (30)
107public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed) 136public override void LineTo(Point point, bool isStroked, bool isSmoothJoin) 147public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin) 161public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin) 178public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 189public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 200public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 216public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) 397Point point; 408Point point; 419Point point1; 420Point point2 = new Point(); 434Point point1; 435Point point2 = new Point(); 436Point point3 = new Point(); 456IList<Point> points; 467IList<Point> points; 478IList<Point> points; 488Point point; 540private static IList<Point> DeserializeListOfPointsAndTwoBools(BinaryReader br, Byte firstByte, out bool bool1, out bool bool2) 543IList<Point> points; 544Point point; 551points = new List<Point>(count); 565private static void DeserializePointAndTwoBools(BinaryReader br, Byte firstByte, out Point point, out bool bool1, out bool bool2) 645Point point, 671private void SerializeListOfPointsAndTwoBools(ParserGeometryContextOpCodes opCode, IList<Point> points, bool bool1, bool bool2) 754Point _startPoint;
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (1)
182Point viewportPoint = viewport.WorldToViewport(worldPoint);
Core\CSharp\MS\Internal\Media\XamlSerializationHelper.cs (1)
279Point curPoint ;
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (68)
42Point uv1, 43Point uv2) 58Point projPoint1 = objectToViewportTransform.Transform(_p1); 59Point projPoint2 = objectToViewportTransform.Transform(_p2); 66internal Point _uv1, _uv2; 69internal Point _p1Transformed, _p2Transformed; 159public override bool TryTransform(Point inPoint, out Point result) 178private bool TryInverseTransform(Point inPoint, out Point result) 194Point pointHit = new Point(); 233private bool HandleOffMesh(Point mousePos, out Point outPoint) 235Point[] visCorners = new Point[4]; 246Point[] texCoordsOfInterest = new Point[4]; 266private List<HitTestEdge> GrabValidEdges(Point[] visualTexCoordBounds) 307Point[] triangleTexCoords = new Point[3]; 444Point[] uv, 445Point[] visualTexCoordBounds, 486Point[] uv, 487Point[] visualTexCoordBounds, 493List<Point> uvList = new List<Point>(); 498Point visEdgeStart = visualTexCoordBounds[i]; 499Point visEdgeEnd = visualTexCoordBounds[(i + 1) % visualTexCoordBounds.Length]; 509Point uv1 = uv[j]; 510Point uv2 = uv[(j + 1) % uv.Length]; 537Point intersUV = uv1 + dir * t; 604private void HandleCoincidentLines(Point visUV1, Point visUV2, 606Point triUV1, Point triUV2, 609Point minVisUV, maxVisUV; 611Point minTriUV, maxTriUV; 615Point uv1, uv2; 747private double IntersectRayLine(Point o, Vector d, Point p1, Point p2, out bool coinc) 818public Point _uv1; 819public Point _uv2; 836Point[] uv, 837Point[] visualTexCoordBounds, 845Point uv1, uv2; 917private void HandleSilhouetteEdge(Point uv1, Point uv2, 919Point[] bounds, 923List<Point> uvList = new List<Point>(); 929Point visEdgeStart = bounds[i]; 930Point visEdgeEnd = bounds[(i + 1) % bounds.Length]; 950Point intersUV = uv1 + dir * t; 1007private bool IsPointInPolygon(Point[] polygon, Point p) 1040private bool FindClosestIntersection(Point mousePos, List<HitTestEdge> edges, out Point finalPoint) 1044Point closestIntersection = new Point(); // the uv of the closest intersection 1053Point currClosest; 1115Point ptOnVisual = Viewport2DVisual3D.TextureCoordsToVisualCoords(closestIntersection, _visualBrushBounds); 1119Point ptRelToCapture = _transform2DInverse.Transform(ptOnVisual); 1129Point finalVisualPoint = _transform2D.Transform(ptRelToCapture); 1146private bool TryRegularTransform(Point inPoint, out Point result) 1148Point texCoord = Viewport2DVisual3D.VisualCoordsToTextureCoords(inPoint, _visualBrushBounds); 1184Point[] texCoordsOfInterest = new Point[4];
Core\CSharp\MS\Internal\Media3D\GeneralTransform3Dto2Dto3D.cs (1)
58Point intermediate2DPoint = new Point();
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (1)
416out Point hitCoord,
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (5)
29internal static Point3D Interpolate(ref Point3D v0, ref Point3D v1, ref Point3D v2, ref Point barycentric) 370internal static Point GetNormalizedPoint(Point point, Size size) 588internal static bool IsPointInTriangle(Point p, Point[] triUVVertices, Point3D[] tri3DVertices, out Point3D inters3DPoint)
Core\CSharp\MS\Internal\TextFormatting\DrawingState.cs (5)
30private Point _lineOrigin; // line origin XY relative to drawing context reference location 31private Point _vectorToLineOrigin; // vector to line origin in UV relative to paragraph start 41Point lineOrigin, 140internal Point LineOrigin 149internal Point VectorToLineOrigin
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (5)
235Point currentOrigin 311private IList<Point> _glyphOffsets; 373_glyphOffsets = new PartialArray<Point>(new Point[glyphOffsets.Length]); 416Point currentOrigin,
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (10)
569Point origin, 622Point origin, 685Point vectorToOrigin = new Point(); 705Point lineOrigin, 706Point vectorToLineOrigin 711Point symbolOrigin = LSRun.UVToXY( 1561Point position = new Point(0,0); 2030Point position = new Point(0, 0); 2503Point ptQuery, 2686private void BuildOverhang(Point origin, Rect boundingBox)
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (9)
1316Point baselineOrigin = LSRun.UVToXY( 1324Point lineOrigin = LSRun.UVToXY( 1403Point drawingLineOrigin = lineOrigin; 2656Point baselineOrigin = new Point( 3057out Point baselineOrigin, 3213Point runOrigin = new Point(); 3268IList<Point> glyphOffsets; 3311glyphOffsets = new List<Point>(glyphCount); 3370Point runOrigin = new Point();
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (11)
331internal static Point UVToXY( 332Point origin, 333Point vectorToOrigin, 339Point xy; 364internal static Point UVToXY( 365Point origin, 366Point vectorToOrigin, 372Point xy; 398Point origin, 399Point vectorToOrigin, 429Point origin,
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (4)
490Point origin, 591Point origin 931Point start = new Point(0, 0); 1875Point lineOrigin = new Point(x, y + offset);
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (3)
129Point origin, 134IList<Point> glyphOffsets, 225Point origin,
Core\CSharp\MS\Internal\TextFormatting\TextShapeableSymbols.cs (3)
48Point origin, 53IList<Point> glyphOffsets, 142Point origin,
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (11)
35internal sealed class ThousandthOfEmRealPoints : IList<Point> 51IList<Point> pointValues 82public Point this[int index] 101public int IndexOf(Point item) 121public bool Contains(Point item) 126public void CopyTo(Point[] array, int arrayIndex) 173public IEnumerator<Point> GetEnumerator() 183return ((IEnumerable<Point>)this).GetEnumerator(); 186public void Add(Point value) 192public void Insert(int index, Point item) 198public bool Remove(Point item)
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (6)
706abstract protected Point GetClickablePointCore(); 1173public Point GetClickablePoint() 1175Point result; 1667public AutomationPeer GetPeerFromPoint(Point point) 1672protected virtual AutomationPeer GetPeerFromPointCore(Point point) 2408private static object GetClickablePoint(AutomationPeer peer) { Point pt = peer.GetClickablePoint(); return new double[] {pt.X, pt.Y}; }
Core\CSharp\System\Windows\Automation\Peers\ContentElementAutomationPeer.cs (1)
292override protected Point GetClickablePointCore()
Core\CSharp\System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (2)
398override protected Point GetClickablePointCore() 401Point pt = new Point(double.NaN, double.NaN);
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (2)
514override protected Point GetClickablePointCore() 516Point pt = new Point(double.NaN, double.NaN);
Core\CSharp\System\Windows\DragDrop.cs (8)
961Point targetPoint; 1004Point targetPoint; 1123Point targetPoint; 1166private void RaiseDragEvent(RoutedEvent dragEvent, int dragDropKeyStates, ref int effects, DependencyObject target, Point targetPoint) 1318private Point GetClientPointFromScreenPoint(long dragPoint, PresentationSource source) 1320Point screenPoint; 1321Point clientPoint; 1334private DependencyObject GetCurrentTarget(long dragPoint, out Point targetPoint)
Core\CSharp\System\Windows\DragEventArgs.cs (4)
57internal DragEventArgs(IDataObject data, DragDropKeyStates dragDropKeyStates, DragDropEffects allowedEffects, DependencyObject target, Point point) 95public Point GetPosition(IInputElement relativeTo) 97Point dropPoint; 214private Point _dropPoint;
Core\CSharp\System\Windows\IContentHost.cs (1)
24IInputElement InputHitTest(Point point);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (15)
38public void AddPoint(Point point) 40AddPoints(new Point[1] { point }); 47public void AddPoints(IEnumerable<Point> points) 92Point[] points = new Point[stylusPoints.Count]; 95points[x] = (Point)stylusPoints[x]; 156protected abstract void AddPointsCore(IEnumerable<Point> points); 339protected override void AddPointsCore(IEnumerable<Point> points) 413if (true == lasso.Contains((Point)stylusPoints[i])) 417if (lasso == _lasso || _lasso.Contains((Point)stylusPoints[i])) 530protected override void AddPointsCore(IEnumerable<Point> points) 852Vector spine = (Point)stylusPoints[index] - (Point)stylusPoints[index - 1]; 862Vector spine = (Point)stylusPoints[index + 1] - (Point)stylusPoints[index];
Core\CSharp\System\Windows\Ink\Stroke.cs (24)
264List<Point> bezierPoints = bezier.Flatten(tolerance); 271private StylusPointCollection GetInterpolatedStylusPoints(List<Point> bezierPoints) 313double unbezierLength = GetDistanceBetweenPoints((Point)_stylusPoints[0], (Point)_stylusPoints[1]); 354GetDistanceBetweenPoints((Point)_stylusPoints[stylusPointsIndex - 1], 355(Point)_stylusPoints[stylusPointsIndex]); 375private double GetDistanceBetweenPoints(Point p1, Point p2) 385Point bezierPoint, 936Point begPoint = (Point)stylusPoints[0]; 937Point endPoint = (Point)stylusPoints[stylusPoints.Count - 1]; 1013private Point GetIntermediatePoint(StylusPoint p1, StylusPoint p2, double findex) 1182internal static int GetCount(IEnumerable<Point> ienum) 1185ICollection<Point> icol = ienum as ICollection<Point>; 1191foreach (Point point in ienum) 1201internal static Point[] GetPointArray(IEnumerable<Point> ienum) 1204Point[] points = ienum as Point[]; 1213points = new Point[GetCount(ienum)]; 1215foreach (Point point in ienum)
Core\CSharp\System\Windows\Ink\Stroke2.cs (16)
123return this.GetClipResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 132public StrokeCollection GetClipResult(IEnumerable<Point> lassoPoints) 158return this.GetEraseResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 166public StrokeCollection GetEraseResult(IEnumerable<Point> lassoPoints) 190public StrokeCollection GetEraseResult(IEnumerable<Point> eraserPath, StylusShape eraserShape) 211public bool HitTest(Point point) 213return HitTest(new Point[]{point}, new EllipseStylusShape(TapHitPointSize, TapHitPointSize, TapHitRotation)); 222public bool HitTest(Point point, double diameter) 228return HitTest(new Point[]{point}, new EllipseStylusShape(diameter, diameter, TapHitRotation)); 259if (true == bounds.Contains((Point)stylusPoints[i])) 287public bool HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso) 318if (true == lasso.Contains((Point)stylusPoints[i])) 347public bool HitTest(IEnumerable<Point> path, StylusShape stylusShape) 620internal StrokeIntersection[] EraseTest(IEnumerable<Point> path, StylusShape shape) 731Point w = originalDa.StylusTipTransform.Transform(new Point(originalDa.Width, 0)); 732Point h = originalDa.StylusTipTransform.Transform(new Point(0, originalDa.Height));
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (12)
66public StrokeCollection HitTest(Point point) 77public StrokeCollection HitTest(Point point, double diameter) 93public StrokeCollection HitTest(IEnumerable<Point> lassoPoints, int percentageWithinLasso) 134if (true == lasso.Contains((Point)stylusPoints[i])) 206public StrokeCollection HitTest(IEnumerable<Point> path, StylusShape stylusShape) 253public void Clip(IEnumerable<Point> lassoPoints) 299Clip(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 307public void Erase(IEnumerable<Point> lassoPoints) 345Erase(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 355public void Erase(IEnumerable<Point> eraserPath, StylusShape eraserShape) 482private StrokeCollection PointHitTest(Point point, StylusShape shape) 489if (stroke.HitTest(new Point[] { point }, shape))
Core\CSharp\System\Windows\Input\IManipulator.cs (1)
38Point GetPosition(IInputElement relativeTo);
Core\CSharp\System\Windows\Input\IMouseInputProvider.cs (1)
42int GetIntermediatePoints(IInputElement relativeTo, Point[] points);
Core\CSharp\System\Windows\Input\InputElement.cs (6)
245internal static Point TranslatePoint(Point pt, DependencyObject from, DependencyObject to) 257internal static Point TranslatePoint(Point pt, DependencyObject from, DependencyObject to, out bool translated) 261Point ptTranslated = pt; 324Point ptScreen = PointUtil.ClientToScreen(ptTranslated, sourceFrom);
Core\CSharp\System\Windows\Input\ManipulationBoundaryFeedbackEventArgs.cs (2)
84internal Func<Point, Point> CompensateForBoundaryFeedback
Core\CSharp\System\Windows\Input\ManipulationCompletedEventArgs.cs (2)
28Point origin, 99public Point ManipulationOrigin
Core\CSharp\System\Windows\Input\ManipulationDeltaEventArgs.cs (2)
28Point origin, 106public Point ManipulationOrigin
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (4)
277internal Point GetTransformedManipulatorPosition(Point point) 611private Func<Point, Point> _compensateForBoundaryFeedback;
Core\CSharp\System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (2)
31Point origin, 86public Point ManipulationOrigin
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (5)
545Point center = pivot.Center; 603Point position = updatedManipulator.GetPosition(_currentContainer); 725Point translatedPivotPoint = _root.TranslatePoint(LayoutUpdateDetectionPivotPoint, container); 790private static readonly Point LayoutUpdateDetectionPivotPoint = new Point(-10234.1234, -10234.1234); 793private Point _containerPivotPoint;
Core\CSharp\System\Windows\Input\ManipulationPivot.cs (2)
27public ManipulationPivot(Point center, double radius) 36public Point Center
Core\CSharp\System\Windows\Input\ManipulationStartedEventArgs.cs (2)
28Point origin) 74public Point ManipulationOrigin
Core\CSharp\System\Windows\Input\Mouse.cs (2)
475public static int GetIntermediatePoints(IInputElement relativeTo, Point[] points) 582public static Point GetPosition(IInputElement relativeTo)
Core\CSharp\System\Windows\Input\MouseDevice.cs (39)
99protected Point GetScreenPosition() 129internal Point GetScreenPositionFromSystem() 134Point ptScreen = new Point(0, 0); 170protected Point GetClientPosition() 172Point ptClient = new Point(0, 0); 196protected Point GetClientPosition(PresentationSource presentationSource) 198Point ptScreen = GetScreenPosition(); 199Point ptClient = PointUtil.ScreenToClient(ptScreen, presentationSource); 628public Point GetPosition(IInputElement relativeTo) 667Point ptClient; 668Point ptRoot; 670Point ptRelative; 982Point ptClient = GetClientPosition(); 1421Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y); 1422Point ptRoot = PointUtil.TryClientToRoot(ptClient, rawMouseInputReport.InputSource, false, out success); 1579Point ptClient = new Point(rawMouseInputReport.X, rawMouseInputReport.Y); 1580Point ptRoot = (Point) e.StagingItem.GetData(_tagRootPoint); 1581Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1888Point ptClient = GetClientPosition(); 1910private bool ArePointsClose(Point A, Point B) 2161internal static IInputElement GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2170internal static IInputElement GlobalHitTest(Point ptClient, PresentationSource inputSource) 2183private static void GlobalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2187Point ptClient = clientUnits ? pt : PointUtil.RootToClient(pt, inputSource); 2194Point ptScreen = PointUtil.ClientToScreen(ptClient, source); 2222Point ptClientHit = PointUtil.ScreenToClient(ptScreen, sourceHit); 2230internal static IInputElement LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource) 2239internal static IInputElement LocalHitTest(Point ptClient, PresentationSource inputSource) 2251private static void LocalHitTest(bool clientUnits, Point pt, PresentationSource inputSource, out IInputElement enabledHit, out IInputElement originalHit) 2262Point rootPt = clientUnits ? PointUtil.ClientToRoot(pt, inputSource) : pt; 2268internal bool IsSameSpot(Point newPosition, StylusDevice stylusDevice) 2278internal int CalculateClickCount(MouseButton button, int timeStamp, StylusDevice stylusDevice, Point downPt) 2306internal Point PositionRelativeToOver 2314internal Point NonRelativePosition 2409private Point _positionRelativeToOver = new Point(); 2410private Point _lastPosition = new Point(); 2420private Point _lastClick = new Point();
Core\CSharp\System\Windows\Input\MouseEventArgs.cs (1)
73public Point GetPosition(IInputElement relativeTo)
Core\CSharp\System\Windows\Input\TouchDevice.cs (5)
199private IInputElement CriticalHitTest(Point point, bool isSynchronize) 312private static IInputElement GlobalHitTest(Point pt, PresentationSource inputSource) 317private static IInputElement LocalHitTest(Point pt, PresentationSource inputSource) 863Point position = touchPoint.Position; 1367Point IManipulator.GetPosition(IInputElement relativeTo)
Core\CSharp\System\Windows\Input\TouchPoint.cs (2)
36public TouchPoint(TouchDevice device, Point position, Rect bounds, TouchAction action) 62public Point Position
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (3)
263int IMouseInputProvider.GetIntermediatePoints(IInputElement relativeTo, Point[] points) 328Point currentPosition = new Point(mp_out[i].x, mp_out[i].y); 1403Point currentPosition = new Point(x, y);
Core\CSharp\System\Windows\Interop\HwndPanningFeedback.cs (2)
97var deviceOffset = _hwndSource.TransformToDevice((Point)totalOverpanOffset);
Core\CSharp\System\Windows\Interop\HwndSource.cs (9)
1016internal Point TransformToDevice(Point pt) 1027internal Point TransformFromDevice(Point pt) 1041Point pt = TransformToDevice(new Point(newSize.Width, newSize.Height)); 1065private void RoundDeviceSize(ref Point size) 1375Point convertedPt = TransformFromDevice(new Point(rc.right - rc.left, rc.bottom - rc.top)); 1647Point pt = new Point(x, y); 1665Point relevantPt = new Point(pt.X, pt.Y);
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
130Point ptClient1 = new Point(pt1.x, pt1.y);
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1141else if (type == typeof(Point))
Core\CSharp\System\Windows\Media\Animation\DoubleAnimationUsingPath.cs (6)
189Point pathPoint; 190Point pathTangent; 272Point startPoint; 273Point startTangent; 274Point endPoint; 275Point endTangent;
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
888public DiscretePointKeyFrame(Point value) 896public DiscretePointKeyFrame(Point value, KeyTime keyTime) 924protected override Point InterpolateValueCore(Point baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
926public EasingPointKeyFrame(Point value) 935public EasingPointKeyFrame(Point value, KeyTime keyTime) 945public EasingPointKeyFrame(Point value, KeyTime keyTime, IEasingFunction easingFunction) 974protected override Point InterpolateValueCore(Point baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
1632protected PointKeyFrame(Point value) 1641protected PointKeyFrame(Point value, KeyTime keyTime) 1684typeof(Point), 1699Value = (Point)value; 1706public Point Value 1710return (Point)GetValue(ValueProperty); 1727public Point InterpolateValue( 1728Point baseValue, 1748protected abstract Point InterpolateValueCore( 1749Point baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
590public LinearPointKeyFrame(Point value) 598public LinearPointKeyFrame(Point value, KeyTime keyTime) 624protected override Point InterpolateValueCore(Point baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimation.cs (32)
45private Point[] _keyValues; 60Type typeofProp = typeof(Point?); 69new PropertyMetadata((Point?)null, propCallback), 76new PropertyMetadata((Point?)null, propCallback), 83new PropertyMetadata((Point?)null, propCallback), 107public PointAnimation(Point toValue, Duration duration) 119public PointAnimation(Point toValue, Duration duration, FillBehavior fillBehavior) 132public PointAnimation(Point fromValue, Point toValue, Duration duration) 145public PointAnimation(Point fromValue, Point toValue, Duration duration, FillBehavior fillBehavior) 218protected override Point GetCurrentValueCore(Point defaultOriginValue, Point defaultDestinationValue, AnimationClock animationClock) 235Point from = new Point(); 236Point to = new Point(); 237Point accumulated = new Point(); 238Point foundation = new Point(); 352Point accumulator = AnimatedTypeHelpers.SubtractPoint(to, from); 377_keyValues = new Point[2]; 384_keyValues = new Point[2]; 391_keyValues = new Point[1]; 398_keyValues = new Point[1]; 404_keyValues = new Point[1]; 425Point? typedValue = (Point?)value; 445public Point? From 449return (Point?)GetValue(FromProperty); 465public Point? To 469return (Point?)GetValue(ToProperty); 485public Point? By 489return (Point?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationBase.cs (9)
103return GetCurrentValue((Point)defaultOriginValue, (Point)defaultDestinationValue, animationClock); 115return typeof(Point); 152public Point GetCurrentValue(Point defaultOriginValue, Point defaultDestinationValue, AnimationClock animationClock) 215protected abstract Point GetCurrentValueCore(Point defaultOriginValue, Point defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationClockResource.cs (4)
47Point baseValue, 59public Point BaseValue 70public Point CurrentValue 144private Point _baseValue;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (8)
331protected sealed override Point GetCurrentValueCore( 332Point defaultOriginValue, 333Point defaultDestinationValue, 359Point currentIterationValue; 395Point fromValue; 643private Point GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Point prevKeyValue = _keyFrames[index - 1].Value; 958Point currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\PointIndependentAnimationStorage.cs (2)
61Point tempValue = (Point)dobj.GetValue(_dependencyProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
982public SplinePointKeyFrame(Point value) 991public SplinePointKeyFrame(Point value, KeyTime keyTime) 1001public SplinePointKeyFrame(Point value, KeyTime keyTime, KeySpline keySpline) 1035protected override Point InterpolateValueCore(Point baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (7)
66public KeySpline(Point controlPoint1, Point controlPoint2) 165public Point ControlPoint1 197public Point ControlPoint2 256private bool IsValidControlPoint(Point point) 515private Point _controlPoint1; 516private Point _controlPoint2;
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (6)
272Point pathPoint; 273Point pathTangent; 326Point startPoint; 327Point startTangent; 328Point endPoint; 329Point endTangent;
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (9)
149protected override Point GetCurrentValueCore(Point defaultOriginValue, Point defaultDestinationValue, AnimationClock animationClock) 165Point pathPoint; 166Point pathTangent; 228Point startPoint; 229Point startTangent; 230Point endPoint; 231Point endTangent;
Core\CSharp\System\Windows\Media\ArcSegment.cs (5)
52Point point, 78ref Point current) // In: Segment start point, Out: Segment endpoint, neither transformed 80Point endPoint = Point; 92Point* points = stackalloc Point[12];
Core\CSharp\System\Windows\Media\BezierSegment.cs (10)
47public BezierSegment(Point point1, Point point2, Point point3, bool isStroked) 56internal BezierSegment(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin) 70ref Point current) // Out: Segment endpoint, not transformed 80Point pt1 = Point1; 83Point pt2 = Point2; 86Point pt3 = current;
Core\CSharp\System\Windows\Media\BoundsDrawingContextWalker.cs (3)
84Point point0, 85Point point1) 218Point center,
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (23)
91public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed) 125public override void LineTo(Point point, bool isStroked, bool isSmoothJoin) 131Point* scratchForLine = stackalloc Point[1]; 150public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin) 156Point* scratchForQuadraticBezier = stackalloc Point[2]; 176public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin) 182Point* scratchForBezier = stackalloc Point[3]; 198public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 213public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 228public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 248public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) 678_lastSegmentSize = (UInt32)(sizeof(MIL_SEGMENT_POLY) + (sizeof(Point) * _currentPolySegmentData.Count)); 711private void GenericPolyTo(IList<Point> points, 740Point p = points[i]; 744AppendData((byte*)&p, sizeof(Point)); 755unsafe private void GenericPolyTo(Point* points, 772AppendData((byte*)points, sizeof(Point) * count);
Core\CSharp\System\Windows\Media\CombinedGeometry.cs (1)
154internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type)
Core\CSharp\System\Windows\Media\Composition.cs (9)
234out Point pt, 235out Point vecTangent); 247Point *pPoints, 267Point* pPoints, 273Point* pHitPoint, 291Point* pHitPoint, 335Point ptStart, // The arc's start point 340Point ptEnd, // The arc's end point 342Point* pPt, // An array receiving the Bezier points
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
154new public HitTestResult HitTest(Point point)
Core\CSharp\System\Windows\Media\Drawing.cs (1)
115bool IDrawingContent.HitTestPoint(Point point)
Core\CSharp\System\Windows\Media\DrawingContext.cs (1)
58Point origin)
Core\CSharp\System\Windows\Media\DrawingDrawingContext.cs (6)
64Point point0, 65Point point1) 88Point point0, 90Point point1, 406Point center, 449Point center,
Core\CSharp\System\Windows\Media\DrawingServices.cs (1)
33internal static bool HitTestPoint(Drawing drawing, Point point)
Core\CSharp\System\Windows\Media\Effects\BlurEffect.cs (2)
39Point topLeft = new Point(); 40Point bottomRight = new Point();
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (2)
39Point topLeft = new Point(); 40Point bottomRight = new Point();
Core\CSharp\System\Windows\Media\Effects\Effect.cs (16)
137private static Point UnitToWorldUnsafe(Point unitPoint, Rect worldBounds) 144internal static Point? UnitToWorld(Point unitPoint, Rect worldBounds) 146return worldBounds.IsEmpty ? null : new Nullable<Point>(UnitToWorldUnsafe(unitPoint, worldBounds)); 149internal static Point? WorldToUnit(Point worldPoint, Rect worldBounds) 171Point? tl = WorldToUnit(worldRect.TopLeft, worldBounds); 172Point? br = WorldToUnit(worldRect.BottomRight, worldBounds); 213Point topLeftResult = new Point(); 214Point bottomRightResult = new Point(); 227public override bool TryTransform(Point inPoint, out Point result) 234Point? unitSpace = Effect.WorldToUnit(inPoint, _worldBounds); 241Point unitResult; 246Point? worldSpace = Effect.UnitToWorld(unitResult, _worldBounds);
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (6)
33Point topLeft = new Point(); 34Point bottomRight = new Point(); 864type == typeof(Point) || 925else if (t == typeof(Point)) 927Point p = (Point)value;
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (17)
63Point center, 76Point center, 101Point currentCenter = Center; 166internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point center, double radiusX, double radiusY, 194Point * pPoints = stackalloc Point[(int)c_pointCount]; 222internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type) 226Point *pPoints = stackalloc Point[(int)GetPointCount()]; 287Point [] points = GetPointList(); 341Point[] points = GetPointList(); 367private Point[] GetPointList() 369Point[] points = new Point[GetPointCount()]; 373fixed(Point *pPoints = points) 386private unsafe static void GetPointList(Point * points, uint pointsCount, Point center, double radiusX, double radiusY)
Core\CSharp\System\Windows\Media\FormattedText.cs (10)
1210private void AdvanceLineOrigin(ref Point lineOrigin, TextLine currentLine) 1600public Geometry BuildHighlightGeometry(Point origin) 1612public Geometry BuildGeometry(Point origin) 1615Point lineOrigin = origin; 1653public Geometry BuildHighlightGeometry(Point origin, int startIndex, int count) 1661Point lineOrigin = origin; 1727Point origin 1730Point lineOrigin = origin; 1758private CachedMetrics DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, bool getBlackBoxMetrics) 1790Point origin = new Point(0, 0);
Core\CSharp\System\Windows\Media\GeneralTransform.cs (5)
43public abstract bool TryTransform(Point inPoint, out Point result); 56public Point Transform(Point point) 58Point transformedPoint;
Core\CSharp\System\Windows\Media\GeneralTransformGroup.cs (3)
53public override bool TryTransform(Point inPoint, out Point result) 61Point inP = inPoint;
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (4)
98public Point Point 102return (Point) GetValue(PointProperty); 268internal static Point s_Point = new Point(); 299typeof(Point),
Core\CSharp\System\Windows\Media\Generated\BezierSegment.cs (12)
98public Point Point1 102return (Point) GetValue(Point1Property); 113public Point Point2 117return (Point) GetValue(Point2Property); 128public Point Point3 132return (Point) GetValue(Point3Property); 245internal static Point s_Point1 = new Point(); 246internal static Point s_Point2 = new Point(); 247internal static Point s_Point3 = new Point(); 274typeof(Point), 283typeof(Point), 292typeof(Point),
Core\CSharp\System\Windows\Media\Generated\DrawingContext.cs (6)
50Point point0, 51Point point1); 65Point point0, 67Point point1, 201Point center, 235Point center,
Core\CSharp\System\Windows\Media\Generated\DrawingContextDrawingContextWalker.cs (6)
51Point point0, 52Point point1) 73Point point0, 75Point point1, 251Point center, 294Point center,
Core\CSharp\System\Windows\Media\Generated\DrawingContextWalker.cs (6)
51Point point0, 52Point point1) 69Point point0, 71Point point1, 220Point center, 257Point center,
Core\CSharp\System\Windows\Media\Generated\EllipseGeometry.cs (4)
148public Point Center 152return (Point) GetValue(CenterProperty); 374internal static Point s_Center = new Point(); 419typeof(Point),
Core\CSharp\System\Windows\Media\Generated\LinearGradientBrush.cs (8)
111public Point StartPoint 115return (Point) GetValue(StartPointProperty); 126public Point EndPoint 130return (Point) GetValue(EndPointProperty); 295internal static Point s_StartPoint = new Point(0,0); 296internal static Point s_EndPoint = new Point(1,1); 323typeof(Point), 332typeof(Point),
Core\CSharp\System\Windows\Media\Generated\LineGeometry.cs (8)
111public Point StartPoint 115return (Point) GetValue(StartPointProperty); 126public Point EndPoint 130return (Point) GetValue(EndPointProperty); 325internal static Point s_StartPoint = new Point(); 326internal static Point s_EndPoint = new Point(); 353typeof(Point), 362typeof(Point),
Core\CSharp\System\Windows\Media\Generated\LineSegment.cs (4)
98public Point Point 102return (Point) GetValue(PointProperty); 205internal static Point s_Point = new Point(); 232typeof(Point),
Core\CSharp\System\Windows\Media\Generated\PathFigure.cs (4)
98public Point StartPoint 102return (Point) GetValue(StartPointProperty); 264internal static Point s_StartPoint = new Point(); 296typeof(Point),
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (43)
54public sealed partial class PointCollection : Freezable, IFormattable, IList, IList<Point> 99public void Add(Point value) 120public bool Contains(Point value) 130public int IndexOf(Point value) 140public void Insert(int index, Point value) 155public bool Remove(Point value) 211public Point this[int index] 252public void CopyTo(Point[] array, int index) 272bool ICollection<Point>.IsReadOnly 296IEnumerator<Point> IEnumerable<Point>.GetEnumerator() 309return ((ICollection<Point>)this).IsReadOnly; 344if (value is Point) 346return Contains((Point)value); 354if (value is Point) 356return IndexOf((Point)value); 370if (value is Point) 372Remove((Point)value); 470internal Point Internal_GetItem(int i) 481private Point Cast(object value) 488if (!(value is Point)) 493return (Point) value; 499private int AddHelper(Point value) 510internal int AddWithoutFiringPublicEvents(Point value) 566_collection = new FrugalStructList<Point>(count); 585_collection = new FrugalStructList<Point>(count); 604_collection = new FrugalStructList<Point>(count); 623_collection = new FrugalStructList<Point>(count); 755Point value; 794internal FrugalStructList<Point> _collection; 804public struct Enumerator : IEnumerator, IEnumerator<Point> 815_current = default(Point); 895public Point Current 918private Point _current; 940_collection = new FrugalStructList<Point>(); 949_collection = new FrugalStructList<Point>(capacity); 955public PointCollection(IEnumerable<Point> collection) 966ICollection<Point> icollectionOfT = collection as ICollection<Point>; 970_collection = new FrugalStructList<Point>(icollectionOfT); 978_collection = new FrugalStructList<Point>(icollection); 982_collection = new FrugalStructList<Point>(); 984foreach (Point item in collection)
Core\CSharp\System\Windows\Media\Generated\PolyBezierSegmentFigureLogic.cs (4)
53public PolyBezierSegment(IEnumerable<Point> points, bool isStroked) 67internal PolyBezierSegment(IEnumerable<Point> points, bool isStroked, bool isSmoothJoin) 85ref Point current) // Out: Segment endpoint, not transformed 98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\PolyLineSegmentFigureLogic.cs (4)
53public PolyLineSegment(IEnumerable<Point> points, bool isStroked) 67internal PolyLineSegment(IEnumerable<Point> points, bool isStroked, bool isSmoothJoin) 85ref Point current) // Out: Segment endpoint, not transformed 98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\PolyQuadraticBezierSegmentFigureLogic.cs (4)
53public PolyQuadraticBezierSegment(IEnumerable<Point> points, bool isStroked) 67internal PolyQuadraticBezierSegment(IEnumerable<Point> points, bool isStroked, bool isSmoothJoin) 85ref Point current) // Out: Segment endpoint, not transformed 98Point pt = new Point();
Core\CSharp\System\Windows\Media\Generated\QuadraticBezierSegment.cs (8)
98public Point Point1 102return (Point) GetValue(Point1Property); 113public Point Point2 117return (Point) GetValue(Point2Property); 211internal static Point s_Point1 = new Point(); 212internal static Point s_Point2 = new Point(); 239typeof(Point), 248typeof(Point),
Core\CSharp\System\Windows\Media\Generated\RadialGradientBrush.cs (8)
125public Point Center 129return (Point) GetValue(CenterProperty); 170public Point GradientOrigin 174return (Point) GetValue(GradientOriginProperty); 345internal static Point s_Center = new Point(0.5,0.5); 348internal static Point s_GradientOrigin = new Point(0.5,0.5); 375typeof(Point), 402typeof(Point),
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (12)
40Point point0, 41Point point1 50[FieldOffset(0)] public Point point0; 51[FieldOffset(16)] public Point point1; 61Point point0, 63Point point1, 75[FieldOffset(0)] public Point point0; 76[FieldOffset(16)] public Point point1; 193Point center, 205[FieldOffset(0)] public Point center; 218Point center, 237[FieldOffset(0)] public Point center;
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (7)
55Point point0, 56Point point1) 112Point point0, 114Point point1, 480Point center, 558Point center, 1542Point baseValue,
Core\CSharp\System\Windows\Media\Geometry.cs (8)
172Point* pPoints, 363public bool FillContains(Point hitPoint, double tolerance, ToleranceType type) 372public bool FillContains(Point hitPoint) 384public bool StrokeContains(Pen pen, Point hitPoint, double tolerance, ToleranceType type) 406internal virtual bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type) 475internal unsafe bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type, 476Point *pPoints, uint pointCount, byte *pTypes, uint typeCount) 525public bool StrokeContains(Pen pen, Point hitPoint)
Core\CSharp\System\Windows\Media\GlyphRun.cs (18)
135Point baselineOrigin, 137IList<Point> glyphOffsets, 230Point baselineOrigin, 232IList<Point> glyphOffsets, 288Point baselineOrigin, 290IList<Point> glyphOffsets, 339Point baselineOrigin, 341IList<Point> glyphOffsets, 895public Point BaselineOrigin 1170public IList<Point> GlyphOffsets 1231internal Point GetGlyphOffset(int i) 1340Point glyphOffset = GetGlyphOffset(i); 1511Point glyphOffset = GetGlyphOffset(i); 2374(_glyphOffsets == null ? null : ((_textFormattingMode != TextFormattingMode.Ideal) ? (IList<Point>)(new List<Point>()) : (IList<Point>)(new ThousandthOfEmRealPoints(_renderingEmSize, _glyphOffsets)))), 2500private Point _baselineOrigin; 2506private IList<Point> _glyphOffsets;
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (1)
332private IList<Point> _offsets;
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
1729Point origin,
Core\CSharp\System\Windows\Media\HitTestDrawingContextWalker.cs (3)
63Point point0, 64Point point1) 153Point center,
Core\CSharp\System\Windows\Media\HitTestWithPointDrawingContextWalker.cs (5)
40internal HitTestWithPointDrawingContextWalker(Point point) 328private void PushPointStack(Point point) 332_pointStack = new Stack<Point>(2); 453private Point _point; 456private Stack<Point> _pointStack;
Core\CSharp\System\Windows\Media\IDrawingContent.cs (1)
50bool HitTestPoint(Point point);
Core\CSharp\System\Windows\Media\LinearGradientBrush.cs (7)
80Point startPoint, 81Point endPoint) : base() 126Point startPoint, 127Point endPoint) : base (gradientStopCollection) 192Point tempStartPoint = StartPoint; 195Point tempEndPoint = EndPoint; 230private Point EndPointFromAngle(double angle)
Core\CSharp\System\Windows\Media\LineGeometry.cs (13)
47public LineGeometry(Point startPoint, Point endPoint) 57Point startPoint, 58Point endPoint, 113internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Point pt1, Point pt2, 127Point* pPoints = stackalloc Point[2]; 154internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type) 158Point *pPoints = stackalloc Point[2]; 227Point startPoint = StartPoint; 228Point endPoint = EndPoint;
Core\CSharp\System\Windows\Media\LineSegment.cs (4)
48public LineSegment(Point point, bool isStroked) 55internal LineSegment(Point point, bool isStroked, bool isSmoothJoin) 68ref Point current) // Out: Segment endpoint, not transformed 78Point pt = current;
Core\CSharp\System\Windows\Media\ParsersCommon.cs (6)
200Point _lastStart; // Last figure starting point 201Point _lastPoint; // Last point 202Point _secondLastPoint; // The point before last point 486private Point ReadPoint(char cmd, bool allowcomma) 504private Point Reflect() 613Point p;
Core\CSharp\System\Windows\Media\PathFigure.cs (2)
54public PathFigure(Point start, IEnumerable<PathSegment> segments, bool closed) 149Point current = StartPoint;
Core\CSharp\System\Windows\Media\PathGeometry.cs (9)
284List<Point> points = new List<Point>((int)pSegmentPoly->Count); 290(int)pSegmentPoly->Count * sizeof(Point)); 294(int)pSegmentPoly->Count * sizeof(Point)); 296Point* pPoint = (Point*)(pbData + currentOffset + sizeof(MIL_SEGMENT_POLY)); 324currentOffset += sizeof(MIL_SEGMENT_POLY) + (int)pSegmentPoly->Count * sizeof(Point); 611out Point point, 612out Point tangent)
Core\CSharp\System\Windows\Media\PathSegment.cs (1)
45ref Point current); // In: Segment start point, Out: Segment endpoint
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (14)
52s_defaultValueForPathFigureStartPoint = (Point)PathFigure.StartPointProperty.GetDefaultValue(typeof(PathFigure)); 121public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed) 171public override void LineTo(Point point, bool isStroked, bool isSmoothJoin) 185public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin) 200public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin) 216public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 227public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 238public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 249public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) 325private void GenericPolyTo(IList<Point> points, 486private static Point s_defaultValueForPathFigureStartPoint;
Core\CSharp\System\Windows\Media\PointCollection.cs (1)
41Point point = new Point(
Core\CSharp\System\Windows\Media\PointHitTestParameters.cs (4)
28public PointHitTestParameters(Point point) : base() 36public Point HitPoint 44internal void SetHitPoint(Point hitPoint) 49private Point _hitPoint;
Core\CSharp\System\Windows\Media\PointHitTestResult.cs (3)
24private Point _pointHit; 29public PointHitTestResult(Visual visualHit, Point pointHit) : base(visualHit) 37public Point PointHit
Core\CSharp\System\Windows\Media\QuadraticBezierSegment.cs (7)
46public QuadraticBezierSegment(Point point1, Point point2, bool isStroked) 56internal QuadraticBezierSegment(Point point1, Point point2, bool isStroked, bool isSmoothJoin) 70ref Point current) // Out: Segment endpoint, not transformed 80Point pt1 = Point1; 83Point pt2 = current;
Core\CSharp\System\Windows\Media\RadialGradientBrush.cs (2)
137Point tempCenter = Center; 146Point tempGradientOrigin = GradientOrigin;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (13)
233Point * pPoints = stackalloc Point[(int)pointCount]; 261internal override bool ContainsInternal(Pen pen, Point hitPoint, double tolerance, ToleranceType type) 277Point *pPoints = stackalloc Point[(int)pointCount]; 345Point[] points = GetPointList(rect, radiusX, radiusY); 382new Point[] 442Point[] points = GetPointList(rect, radiusX, radiusY); 475private Point[] GetPointList(Rect rect, double radiusX, double radiusY) 478Point[] points = new Point[pointCount]; 482fixed(Point *pPoints = points) 495private unsafe static void GetPointList(Point * points, uint pointsCount, Rect rect, double radiusX, double radiusY)
Core\CSharp\System\Windows\Media\RenderData.cs (1)
166public bool HitTestPoint(Point point)
Core\CSharp\System\Windows\Media\StreamGeometryContext.cs (11)
100public abstract void BeginFigure(Point startPoint, bool isFilled, bool isClosed); 105public abstract void LineTo(Point point, bool isStroked, bool isSmoothJoin); 110public abstract void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin); 115public abstract void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin); 120public abstract void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin); 125public abstract void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin); 130public abstract void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin); 139public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin);
Core\CSharp\System\Windows\Media\TextFormatting\TextEmbeddedObject.cs (1)
87Point origin,
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
63Point origin,
Core\CSharp\System\Windows\Media\Transform.cs (2)
140public override bool TryTransform(Point inPoint, out Point result)
Core\CSharp\System\Windows\Media\Visual.cs (14)
1912internal HitTestResult HitTest(Point point) 1922internal HitTestResult HitTest(Point point, bool include2DOn3D) 1966Point backupHitPoint = pointParams.HitPoint; 1981Debug.Assert(Point.Equals(pointParams.HitPoint, backupHitPoint), 2065Point originalHitPoint = pointParams.HitPoint; 2066Point hitPoint = originalHitPoint; 2081Point? unitHitPoint = Effect.WorldToUnit(originalHitPoint, _bboxSubgraph); 2084Point transformedPt = new Point(); 2090Point? worldSpace = Effect.UnitToWorld(transformedPt, _bboxSubgraph); 2137Point newHitPoint = hitPoint; 4783public Point PointToScreen(Point point) 4812public Point PointFromScreen(Point point)
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (2)
454public static HitTestResult HitTest(Visual reference, Point point) 462internal static HitTestResult HitTest(Visual reference, Point point, bool include2DOn3D)
Core\CSharp\System\Windows\Media3D\Camera.cs (1)
71internal abstract RayHitTestParameters RayFromViewportPoint(Point point, Size viewSize, Rect3D boundingRect, out double distanceAdjustment);
Core\CSharp\System\Windows\Media3D\GeneralTransform2DTo3D.cs (4)
62public bool TryTransform(Point inPoint, out Point3D result) 64Point final2DPoint; 74Point texCoord = Viewport2DVisual3D.VisualCoordsToTextureCoords(final2DPoint, _childBounds); 107public Point3D Transform(Point point)
Core\CSharp\System\Windows\Media3D\GeneralTransform3DTo2D.cs (3)
43public bool TryTransform(Point3D inPoint, out Point result) 74public Point Transform(Point3D point) 76Point transformedPoint;
Core\CSharp\System\Windows\Media3D\Generated\MeshGeometry3D.cs (3)
260data.TextureCoordinatesSize = (uint)(sizeof(Point) * TextureCoordinatesCount); 296Point resource = vTextureCoordinates.Internal_GetItem(i); 299sizeof(Point)
Core\CSharp\System\Windows\Media3D\MatrixCamera.cs (2)
86internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment) 94Point np = M3DUtil.GetNormalizedPoint(p, viewSize);
Core\CSharp\System\Windows\Media3D\MeshGeometry3D.cs (7)
131Point ptMin = tx[0]; 132Point ptMax = tx[0]; 136Point txPt = tx.Internal_GetItem(i); 230Point barycentric; 308Point barycentric; 378ref Point barycentric 449ref Point barycentric
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (2)
82internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment) 99Point np = M3DUtil.GetNormalizedPoint(p, viewSize);
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (2)
104internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment) 122Point np = M3DUtil.GetNormalizedPoint(p, viewSize);
Core\CSharp\System\Windows\Media3D\RayHitTestParameters.cs (4)
101Point barycentric) 138Point intersectionPoint; 146Point visualPoint = Viewport2DVisual3D.TextureCoordsToVisualCoords(intersectionPoint, viewport2DVisual3DChild); 149Point pointOnChild;
Core\CSharp\System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (2)
46Point barycentricCoordinate) : base (visualHit, modelHit) 178private readonly Point _barycentricCoordinate;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (15)
63internal static bool Get3DPointFor2DCoordinate(Point point, 73Point[] uv = new Point[3]; 167internal static Point TextureCoordsToVisualCoords(Point uv, Visual visual) 174internal static Point TextureCoordsToVisualCoords(Point uv, Rect descBounds) 190internal static bool GetIntersectionInfo(RayHitTestResult rayHitResult, out Point outputPoint) 222Point texCoord1 = textureCoordinates[index1]; 223Point texCoord2 = textureCoordinates[index2]; 224Point texCoord3 = textureCoordinates[index3]; 250internal static Point VisualCoordsToTextureCoords(Point pt, Visual visual) 257internal static Point VisualCoordsToTextureCoords(Point pt, Rect descBounds)
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (3)
126new public HitTestResult HitTest(Point point) 520internal Point WorldToViewport(Point4D point) 530Point point2D = new Point(point.X/point.W, point.Y/point.W);
Core\CSharp\System\Windows\UIElement.cs (11)
1297Point origin = RenderTransformOrigin; 1409typeof(Point), 1419Point v = (Point)value; 1431public Point RenderTransformOrigin 1433get { return (Point)GetValue(RenderTransformOriginProperty); } 2007public Point TranslatePoint(Point point, UIElement relativeTo) 2016public IInputElement InputHitTest(Point point) 2041internal void InputHitTest(Point pt, out IInputElement enabledHit, out IInputElement rawHit) 2066internal void InputHitTest(Point pt, out IInputElement enabledHit, out IInputElement rawHit, out HitTestResult rawHitResult)
Graphics\include\Generated\wgx_commands.cs (8)
93[FieldOffset(8)] internal Point Value; 825[FieldOffset(8)] internal Point StartPoint; 826[FieldOffset(24)] internal Point EndPoint; 851[FieldOffset(24)] internal Point Center; 903[FieldOffset(16)] internal Point StartPoint; 904[FieldOffset(32)] internal Point EndPoint; 921[FieldOffset(16)] internal Point Center; 924[FieldOffset(48)] internal Point GradientOrigin;
Shared\MS\Internal\PointUtil.cs (18)
39public static Point ClientToRoot(Point point, PresentationSource presentationSource) 46public static Point TryClientToRoot(Point point, PresentationSource presentationSource, bool throwOnError, out bool success) 77public static Point RootToClient(Point point, PresentationSource presentationSource) 94public static Point ApplyVisualTransform(Point point, Visual v, bool inverse) 104public static Point TryApplyVisualTransform(Point point, Visual v, bool inverse, bool throwOnError, out bool success) 182public static Point ClientToScreen(Point pointClient, PresentationSource presentationSource) 209internal static Point ScreenToClient(Point pointScreen, PresentationSource presentationSource) 310Point corner1 = ClientToScreen(rectClient.TopLeft, hwndSource); 311Point corner2 = ClientToScreen(rectClient.BottomRight, hwndSource); 408internal static NativeMethods.POINT FromPoint(Point point) 422internal static Point ToPoint(NativeMethods.POINT pt)
PresentationFramework (634)
src\Framework\MS\Internal\Annotations\Anchoring\AttachedAnnotation.cs (3)
200public Point AnchorPoint 204Point pt = _selectionProcessor.GetAnchorPoint(_attachedAnchor); 334private Point _cachedPoint;
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (16)
105Point start; 106Point end; 183public override Point GetAnchorPoint(Object selection) 331Point start; 332Point end; 512private void GetLocatorPartSegmentValues(ContentLocatorPart locatorPart, int segmentNumber, out Point start, out Point end) 537private Point GetPoint(string xstr, string ystr) 539Point point; 695internal PointSegment(Point start, Point end) 704public Point Start 715public Point End 727public static readonly Point NotAPoint = new Point(double.NaN, double.NaN); 729private Point _start; 730private Point _end;
src\Framework\MS\Internal\Annotations\Anchoring\SelectionProcessor.cs (1)
107public abstract Point GetAnchorPoint(Object selection);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
237public static Point GetAnchorPoint(Object selection) 258public static Point GetAnchorPointForPointer(ITextPointer pointer) 283public static Point GetPointForPointer(ITextPointer pointer) 318Point endPoint = new Point(Double.MaxValue, Double.MaxValue);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
124public override Point GetAnchorPoint(Object selection)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
116public override Point GetAnchorPoint(Object selection)
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
126public override Point GetAnchorPoint(Object selection)
src\Framework\MS\Internal\Annotations\AttachedAnnotation.cs (1)
95Point AnchorPoint { get;}
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (1)
965Point currentPosition = Mouse.PrimaryDevice.GetPosition(textView.RenderScope);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (4)
479Point sizeDeviceUnits = LogicalToDeviceUnits(new Point(0, newHeightLogicalUnits)); 505Point sizeDeviceUnits = LogicalToDeviceUnits(new Point(newWidthLogicalUnits, 0)); 707Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.Width, this.Height)); 891Point ptLogicalUnits = DeviceToLogicalUnits(new Point(size.Width, size.Height));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (1)
259internal UIElement HitTestOnElements(Point point)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
112internal InkCanvasSelectionHitResult SelectionHandleHitTest(Point point) 359Point center = new Point();
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1031Point anchor = _attachedAnnotation.AnchorPoint; 1590Point anchor = _attachedAnnotation.AnchorPoint;
src\Framework\MS\Internal\Documents\DocumentGrid.cs (4)
89internal DocumentPage GetDocumentPageFromPoint(Point point) 1244Point pageOffset; 2646private Point GetActiveFocusPoint() 2691private DocumentPageView GetDocumentPageViewFromPoint(Point point)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
123Point uiScopeMouseDownPoint;
src\Framework\MS\Internal\Documents\DocumentPageHost.cs (1)
109internal Point CachedOffset;
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (9)
100internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 176Point offset; 202internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 206Point offset = suggestedOffset; 589private Point TransformToAncestor(Point point) 604private Point TransformToDescendant(Point point)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
444Point contextMenuOffset = transform.Transform(positionRect.BottomLeft);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
363Point point, newPoint;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (23)
94internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 206internal override ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 381internal override void BringPointIntoViewAsync(Point point, object userState) 507internal override void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 833Point newSuggestedOffset; 874Point offset; 973private ITextPointer GetPositionAtNextPageCore(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved, out int pageNumber) 992Point point = TransformToDescendant(pageTextView.RenderScope, suggestedOffset); 1073private DocumentPageTextView GetTextViewFromPoint(Point point, bool snap) 1284private Point TransformToAncestor(Visual innerScope, Point point) 1298private Point TransformToDescendant(Visual innerScope, Point point) 1369Point point; 1400newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true); 1445Point suggestedOffset = point; 1614internal BringPointIntoViewRequest(Point point, object userState) 1620internal readonly Point Point; 1653internal BringPageIntoViewRequest(ITextPointer position, Point suggestedOffset, int count, object userState) 1664internal readonly Point SuggestedOffset; 1667internal Point NewSuggestedOffset;
src\Framework\MS\Internal\Documents\ParagraphResult.cs (2)
625internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPoint(Point point, bool snapToText) 701internal CellInfo GetCellInfoFromPoint(Point point)
src\Framework\MS\Internal\Documents\TextBoxView.cs (10)
604ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 804ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 1028void ITextView.BringPointIntoViewAsync(Point point, object userState) 1050void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 1079/// <see cref="ITextView.Validate(Point)"/> 1081bool ITextView.Validate(Point point) 1644private int GetLineIndexFromPoint(Point point, bool snapToText) 2008private Point TransformToDocumentSpace(Point point)
src\Framework\MS\Internal\Documents\TextDocumentView.cs (18)
69internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 252Point point = new Point(suggestedX, 0); 432internal CellInfo GetCellInfoFromPoint(Point point, Table tableFilter) 688private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText, bool snapToTextInFloatingElements) 751private ITextPointer GetTextPositionFromPoint(ParagraphResult paragraph, Point point, bool snapToText) 908private ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText) 970private CellInfo GetCellInfoFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, Table tableFilter) 1015private CellInfo GetCellInfoFromPoint(ParagraphResult paragraph, Point point, Table tableFilter) 1090private CellInfo GetCellInfoFromPoint(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, Point point, Table tableFilter) 1840private int GetColumnFromPoint(ReadOnlyCollection<ColumnResult> columns, Point point, bool snapToText) 1972private int GetParagraphFromPoint(ReadOnlyCollection<ParagraphResult> paragraphs, Point point, bool snapToText) 2100private int GetParagraphFromPointInFloatingElements(ReadOnlyCollection<ParagraphResult> floatingElements, Point point, bool snapToText) 2114Point midPoint = new Point(paragraphBox.X + paragraphBox.Width / 2, paragraphBox.Y + paragraphBox.Height / 2); 3327private void TransformToContent(ref Point point) 3329Point newPoint; 3389private void TransformFromContent(ref Point point) 3391Point newPoint; 3427private static void TransformToSubpage(ref Point point, Vector subpageOffset)
src\Framework\MS\Internal\Documents\TextParagraphView.cs (5)
70internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 349internal static ITextPointer GetTextPositionFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText) 555internal static int GetLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText) 592private static bool GetVerticalLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText, out int lineIndex) 719private static bool GetHorizontalLineFromPoint(ReadOnlyCollection<LineResult> lines, Point point, bool snapToText, ref int lineIndex)
src\Framework\MS\Internal\Documents\TextViewBase.cs (15)
39internal abstract ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 79internal virtual ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 193internal virtual void BringPointIntoViewAsync(Point point, object userState) 227internal virtual void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 230Point newSuggestedOffset; 258/// <see cref="ITextView.Validate(Point)"/> 260internal virtual bool Validate(Point point) 469ITextPointer ITextView.GetTextPositionFromPoint(Point point, bool snapToText) 509ITextPointer ITextView.GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved) 573void ITextView.BringPointIntoViewAsync(Point point, object userState) 589void ITextView.BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState) 611/// <see cref="ITextView.Validate(Point)"/> 613bool ITextView.Validate(Point point)
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
189IInputElement IContentHost.InputHitTest(Point point)
src\Framework\MS\Internal\Ink\EditingCoordinator.cs (3)
844stylusPoints = new StylusPointCollection(new Point[] { _capturedMouse.GetPosition(_inkCanvas) }); 1041Point[] points = new Point[] { _capturedMouse.GetPosition(_inkCanvas) };
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (6)
451Point originalPosition = new Point(); // Default as (0, 0) 470Point newPosition = originalPosition * transform; 512internal InkCanvasSelectionHitResult HitTestSelection(Point pointOnInkCanvas) 528Point pointOnSelectionAdorner = inkCanvasToSelectionAdorner.Transform(pointOnInkCanvas); 539Point pointOnInnerCanvas = transformToInnerCanvas.Transform(pointOnInkCanvas); 609private bool HasHitSingleSelectedElement(Point pointOnInnerCanvas)
src\Framework\MS\Internal\Ink\LassoHelper.cs (17)
36Point _firstLassoPoint; 37Point _lastLassoPoint; 41List<Point> _lasso = null; 71public Point[] AddPoints(List<Point> points) 79List<Point> justAdded = new List<Point>(); 83Point point = points[i]; 117Point last = _lastLassoPoint; 120Point lassoPoint = last + (last2next * findex); 149private void AddLassoPoint(Point lassoPoint) 174public bool ArePointsInLasso(Point[] points, int percentIntersect) 192foreach (Point point in points) 206private bool Contains(Point point) 226Point prevLassoPoint = _lasso[_lasso.Count - 1]; 230Point lassoPoint = _lasso[i]; 319_lasso = new List<Point>(100);
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (40)
139List<Point> points = new List<Point>(); 142Point point = (Point)( stylusPoints[x] ); 191List<Point> points = new List<Point>(); 194points.Add((Point)stylusPoints[x]); 196Point[] lassoPoints = _lassoHelper.AddPoints(points); 207List<Point> points = new List<Point>(); 210Point point = (Point)( stylusPoints[x] ); 374Point[] points = GeneratePointGrid(elementPoints); 432private Point[] GeneratePointGrid(ElementCornerPoints elementPoints) 436return new Point[]{}; 459Point[] retPointArray = new Point[pointArray.Count]; 468private void FillInPoints(ArrayList pointArray, Point point1, Point point2) 473Point midPoint = LassoSelectionBehavior.GeneratePointBetweenPoints(point1, point2); 494Point upperLeft, 495Point upperRight, 496Point lowerRight, 497Point lowerLeft) 502Point midPointLeft = LassoSelectionBehavior.GeneratePointBetweenPoints(upperLeft, lowerLeft); 503Point midPointRight = LassoSelectionBehavior.GeneratePointBetweenPoints(upperRight, lowerRight); 524private static Point GeneratePointBetweenPoints(Point point1, Point point2) 541private bool PointsAreCloseEnough(Point point1, Point point2) 597private void StartLasso(List<Point> points) 626Point[] lassoPoints = _lassoHelper.AddPoints(points); 645private void TapSelectObject(Point point, out Stroke tappedStroke, out UIElement tappedElement) 658Point pointOnInnerCanvas = transformToInnerCanvas.Transform(point); 676private Point _startPoint; 697internal Point UpperLeft; 698internal Point UpperRight; 699internal Point LowerRight; 700internal Point LowerLeft;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
219private static Cursor CreateCursorFromDrawing(Drawing drawing, Point hotspot)
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (3)
143Point curPoint = args.GetPosition(InkCanvas.SelectionAdorner); 199private Rect ChangeFeedbackRectangle(Point newPoint) 432private Point _previousLocation;
src\Framework\MS\Internal\Ink\SelectionEditor.cs (6)
76Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner); 101Point currentPosition = Mouse.PrimaryDevice.GetPosition(InkCanvas.SelectionAdorner); 178Point pointOnSelectionAdorner = args.GetPosition(InkCanvas.SelectionAdorner); 215Point pointOnSelectionAdorner = args.GetPosition(InkCanvas.SelectionAdorner); 235private InkCanvasSelectionHitResult HitTestOnSelectionAdorner(Point position) 266private void UpdateSelectionCursor(Point hitPoint)
src\Framework\MS\Internal\LayoutDump.cs (7)
228Point point = new Point(0, 0); 260Point point = new Point(0, 0); 310Point point = new Point(0, 0); 383internal static void DumpPoint(XmlTextWriter writer, string tagName, Point point) 555Point offset = new Point(isi.HorizontalOffset, isi.VerticalOffset); 566Point point = new Point(0, 0); 917Point point = new Point(0.0f, 0.0f);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
503internal void Adjust(Point ptAdjust)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
274internal IInputElement InputHitTestCore(Point point) 1216IInputElement IContentHost.InputHitTest(Point point)
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (1)
121Point drawLocation = new Point(TextDpi.FromTextDpi(ur), TextDpi.FromTextDpi(vrBaseline) - line.Baseline);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
117IInputElement IContentHost.InputHitTest(Point point)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
219internal IInputElement InputHitTest(Point p)
src\Framework\MS\Internal\PtsHost\RunClient.cs (1)
103public override void Draw(DrawingContext drawingContext, Point origin, bool rightToLeft, bool sideways)
src\Framework\MS\Internal\PtsHost\SectionVisual.cs (3)
48Point[] rulePositions = null; 55rulePositions = new Point[(arrayColumnDesc.Length - 1)*2]; 129private Point[] _rulePositions;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
654internal CellParaClient GetCellParaClientFromPoint(Point point, bool snapToText) 847internal ReadOnlyCollection<ParagraphResult> GetParagraphsFromPoint(Point point, bool snapToText) 1186internal CellInfo GetCellInfoFromPoint(Point point)
src\Framework\MS\Internal\Text\InlineObject.cs (1)
102public override void Draw(DrawingContext drawingContext, Point origin, bool rightToLeft, bool sideways)
src\Framework\MS\Internal\Text\Line.cs (1)
117internal void Render(DrawingContext ctx, Point lineOffset)
src\Framework\MS\Internal\Text\TextDpi.cs (1)
75internal static PTS.FSPOINT ToTextPoint(Point point)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
489public IInputElement InputHitTest(Point point)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
136protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
114protected override AutomationPeer GetPeerFromPointCore(Point point)
src\Framework\System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
234protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
172protected override Point GetClickablePointCore() 174Point point = new Point();
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
584protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (1)
41protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\SliderAutomationPeer.cs (1)
34protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\TabControlAutomationPeer.cs (1)
46protected override Point GetClickablePointCore()
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
109protected override Point GetClickablePointCore() 111Point pt = new Point();
src\Framework\System\Windows\Controls\Border.cs (9)
577Point ptTL, ptBR; 665Point topLeft = new Point(radii.LeftTop, 0); 666Point topRight = new Point(rect.Width - radii.RightTop, 0); 667Point rightTop = new Point(rect.Width, radii.TopRight); 668Point rightBottom = new Point(rect.Width, rect.Height - radii.BottomRight); 669Point bottomRight = new Point(rect.Width - radii.RightBottom, rect.Height); 670Point bottomLeft = new Point(radii.LeftBottom, rect.Height); 671Point leftBottom = new Point(0, rect.Height - radii.BottomLeft); 672Point leftTop = new Point(0, radii.TopLeft);
src\Framework\System\Windows\Controls\DataGrid.cs (6)
6266Point currentMousePosition = Mouse.GetPosition(this); 6447Point pt = Mouse.GetPosition(row); 6567Point pt = Mouse.GetPosition(cell); 6577Point rowPt = Mouse.GetPosition(rowOwner); 6669Point pt = Mouse.GetPosition(itemsHost); 8689private Point _dragPoint; // Used to detect if a drag actually occurred
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
240private static bool PlaceCaretOnTextBox(TextBox textBox, Point position)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1395internal bool BringPointIntoView(Point point)
src\Framework\System\Windows\Controls\Grid.cs (3)
4260Point start = new Point(startX, startY); 4261Point end = new Point(endX, endY); 4270private static readonly Point c_zeroPoint = new Point(0, 0);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
839Point pos = Mouse.PrimaryDevice.GetPosition(this);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (11)
400Point pos = FindPositionByIndex(_desColumnIndex); 1248private bool CheckStartHeaderDrag(Point currentPos, Point originalPos) 1332private int FindIndexByPosition(Point startPos, bool findNearestColumn) 1373private Point FindPositionByIndex(int index) 1500private void PrepareHeaderDrag(GridViewColumnHeader header, Point pos, Point relativePos, bool cancelInvoke) 1581private static bool IsMousePositionValid(FrameworkElement floatingHeader, Point currentPos, double arrange) 1659private Point _startPos; 1662private Point _relativeStartPos; 1665private Point _currentPos;
src\Framework\System\Windows\Controls\InkCanvas.cs (3)
1850public InkCanvasSelectionHitResult HitTestSelection(Point point) 1910public void Paste(Point point) 2189internal void PasteFromDataObject(IDataObject dataObj, Point point)
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
3303Point mousePosition = Mouse.GetPosition(relativeTo);
src\Framework\System\Windows\Controls\PopupControlService.cs (3)
78Point pt = Mouse.PrimaryDevice.GetPosition(directlyOver); 155private void OnMouseMove(IInputElement directlyOver, Point pt) 193Point pt = Mouse.PrimaryDevice.GetPosition(directlyOver);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
375Point ancestorOffset = new Point();
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (1)
157Point pos = Mouse.PrimaryDevice.GetPosition(this);
src\Framework\System\Windows\Controls\Primitives\CustomPopupPlacement.cs (3)
15public CustomPopupPlacement(Point point, PopupPrimaryAxis primaryAxis) 24public Point Point 100private Point _point;
src\Framework\System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (1)
17public delegate CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (19)
169Point point = FindColumnHeaderPositionByCurrentPosition(_columnHeaderDragCurrentPosition, true); 514Point mousePosition = e.GetPosition(this); 635private void PrepareColumnHeaderDrag(DataGridColumnHeader header, Point pos, Point relativePos) 647private static bool CheckStartColumnHeaderDrag(Point currentPos, Point originalPos) 881private int FindDisplayIndexByPosition(Point startPos, bool findNearestColumn) 883Point headerPos; 893private DataGridColumnHeader FindColumnHeaderByPosition(Point startPos) 895Point headerPos; 905private Point FindColumnHeaderPositionByCurrentPosition(Point startPos, bool findNearestColumn) 907Point headerPos; 932private void FindDisplayIndexAndHeaderPosition(Point startPos, bool findNearestColumn, out int displayIndex, out Point headerPos, out DataGridColumnHeader header) 936Point originPoint = new Point(0, 0); 1073private Point _columnHeaderDragStartPosition; 1074private Point _columnHeaderDragStartRelativePosition; 1075private Point _columnHeaderDragCurrentPosition;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (32)
2013Point[] placementTargetInterestPoints = GetPlacementTargetInterestPoints(placement); 2014Point[] childInterestPoints = GetChildInterestPoints(placement); 2133childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.Value.RenderSize)); 2145Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft]; 2146Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight]; 2182Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft]; 2234Point[] placementTargetInterestPoints = GetPlacementTargetInterestPoints(placement); 2247Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft]; 2248Point bottomLeft = placementTargetInterestPoints[(int)InterestPoint.BottomLeft]; 2269Point topLeft = placementTargetInterestPoints[(int)InterestPoint.TopLeft]; 2270Point topRight = placementTargetInterestPoints[(int)InterestPoint.TopRight]; 2291private Point[] GetPlacementTargetInterestPoints(PlacementMode placement) 2301Point[] interestPoints; 2371private static void SwapPoints(ref Point p1, ref Point p2) 2373Point temp = p1; 2379private Point[] GetChildInterestPoints(PlacementMode placement) 2388Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize)); 2422private static Point[] InterestPointsFromRect(Rect rect) 2424Point[] points = new Point[5]; 2454private Rect GetBounds(Point[] interestPoints) 2635desiredSize = (Size)_secHelper.GetTransformToDevice().Transform((Point)desiredSize); 2647desiredSize = (Size)_secHelper.GetTransformFromDevice().Transform((Point)desiredSize); 2664private Rect GetScreenBounds(Rect boundingBox, Point p) 3031internal Point ClientToScreen(Visual rootVisual, Point clientPoint) 3050private NativeMethods.POINT ClientToScreen(HwndSource hwnd, Point clientPt) 3059Point devicePoint = clientPt; 3096Point pt = Mouse.GetPosition(relativeTarget); 3753Point ptPlacementTargetOrigin; 3758var screenOrigin = popup._secHelper.ClientToScreen(rootVisual, ptPlacementTargetOrigin);
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (4)
160Point pt = e.MouseDevice.GetPosition((IInputElement)Track); 169Point thumbPoint = e.MouseDevice.GetPosition((IInputElement)Track.Thumb); 471Point pt = new Point(-1,-1); 764private Point _latestRightButtonClickPoint = new Point(-1,-1);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
1036Point newPosition = Mouse.GetPosition(this); 2259private Point _lastMousePosition = new Point();
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1560internal TextPointer GetTextPositionFromPointInternal(Point point, bool snapToText) 1607Point offset;
src\Framework\System\Windows\Controls\Primitives\Thumb.cs (6)
272Point pt = SafeSecurityHelper.ClientToScreen(this, e.MouseDevice.GetPosition(this)); 301Point thumbCoordPosition = e.GetPosition(this); 303Point screenCoordPosition = SafeSecurityHelper.ClientToScreen(this, thumbCoordPosition); 342private Point _originThumbPoint; // 347private Point _originScreenCoordPosition; 352private Point _previousScreenCoordPosition;
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (9)
370Point startPoint = new Point(0d,0d); 371Point endPoint = new Point(0d, 0d); 440Point pt = startPoint; 534Point pt0 = new Point(startPoint.X, y0); 535Point pt1 = new Point(startPoint.X + tickLen2, y0); 536Point pt2 = new Point(startPoint.X + tickLen2, y0 + Math.Abs(tickLen2) * progression); 639Point pt0 = new Point(x0, startPoint.Y); 640Point pt1 = new Point(x0, startPoint.Y + tickLen2); 641Point pt2 = new Point(x0 + Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\Windows\Controls\Primitives\Track.cs (2)
72public virtual double ValueFromPoint(Point pt) 503Point offset = new Point();
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
213public TextPointer GetPositionFromPoint(Point point, bool snapToText)
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1721Point manipulatorPosition = viewportTransform.Transform(manipulator.GetPosition(this));
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
832internal bool BringPointIntoView(Point point)
src\Framework\System\Windows\Controls\Slider.cs (2)
780Point pt = e.MouseDevice.GetPosition(Track); 938private CustomPopupPlacement[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset)
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1157Point minBoundary = new Point(-(rectNote.X + rectNote.Width - leftBoundary), - rectNote.Y); 1158Point maxBoundary = new Point(rectPage.Width - rectNote.X - rightBoundary, rectPage.Height - rectNote.Y - 20);
src\Framework\System\Windows\Controls\TextAdaptor.cs (11)
357private Point ClientToScreen(Point point, Visual visual) 376/// A version of <see cref="ClientToScreen(Point, Visual)"/> for compatibility purposes. 381private Point ObsoleteClientToScreen(Point point, Visual visual) 399private Point ScreenToClient(Point point, Visual visual) 417/// A version of <see cref="ScreenToClient(Point, Visual)"/> for compatibility purposes. 422private Point ObsoleteScreenToClient(Point point, Visual visual) 648ITextRangeProvider ITextProvider.RangeFromPoint(Point location)
src\Framework\System\Windows\Controls\TextBlock.cs (4)
78IInputElement IContentHost.InputHitTest(Point point) 414public TextPointer GetPositionFromPoint(Point point, bool snapToText) 1602Point lineOffset = new Point(contentOffset.X, contentOffset.Y); 1747protected virtual IInputElement InputHitTestCore(Point point)
src\Framework\System\Windows\Controls\TextBox.cs (3)
219public int GetCharacterIndexFromPoint(Point point, bool snapToText) 1429Point point = new Point(); 1459Point point = new Point();
src\Framework\System\Windows\Controls\ToolBarTray.cs (7)
543Point pointRelativeToToolBarTray = Mouse.PrimaryDevice.GetPosition((IInputElement)this); 544Point pointRelativeToToolBar = TransformPointToToolBar(toolBar, pointRelativeToToolBarTray); 577Point pointRelativeToPreviousToolBar = TransformPointToToolBar(prevToolBar, pointRelativeToToolBarTray); 625Point pointRelativeToNextToolBar = TransformPointToToolBar(nextToolBar, pointRelativeToToolBarTray); 678private Point TransformPointToToolBar(ToolBar toolBar, Point point) 680Point p = point;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (5)
3342Point previousChildOffset = new Point(); 3382Point previousChildOffsetBeforeViewport = previousChildOffset; 8255ref Point previousChildOffset, 8403ref Point previousChildOffset, 8443ref Point previousChildOffset,
src\Framework\System\Windows\Documents\AdornerHitTestResult.cs (1)
44 internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt)
src\Framework\System\Windows\Documents\AdornerLayer.cs (1)
293public AdornerHitTestResult AdornerHitTest(Point point)
src\Framework\System\windows\Documents\CaretElement.cs (3)
192Point point; 397Point targetPoint = new Point(targetRect.Left, targetRect.Top); 1104Point win32CaretPoint = new Point(0, 0);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (5)
247Point startPoint = new Point(compositionLine.StartPoint.X + clauseGap, compositionLine.StartPoint.Y - halfLineHeight); 248Point endPoint = new Point(compositionLine.EndPoint.X - clauseGap, compositionLine.EndPoint.Y - halfLineHeight); 274Point pathPoint = new Point(startPoint.X, startPoint.Y - halfLineHeight); 702internal Point StartPoint 713internal Point EndPoint
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (3)
84internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 489/// <see cref="ITextView.Validate(Point)"/> 490internal override bool Validate(Point point)
src\Framework\System\Windows\Documents\FixedPageStructure.cs (1)
157internal FixedNode[] FindSnapToLine(Point pt)
src\Framework\System\Windows\Documents\FixedSOMLineCollection.cs (4)
63public void AddVertical(Point point1, Point point2) 69public void AddHorizontal(Point point1, Point point2)
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (20)
48private Point _startPoint; // Start point for current figure 49private Point _lastPoint; // Current end point for current figure 93private void GatherBounds(Point p) 116public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed) 132public override void LineTo(Point point, bool isStroked, bool isSmoothJoin) 147public override void QuadraticBezierTo(Point point1, Point point2, bool isStroked, bool isSmoothJoin) 153public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin) 159public override void PolyLineTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 183public override void PolyQuadraticBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 189public override void PolyBezierTo(IList<Point> points, bool isStroked, bool isSmoothJoin) 195public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) 853public void _AddLine(Point startP, Point endP, Matrix transform) 975Point startPoint = pathFigure.StartPoint; 976Point lastPoint = startPoint; 990Point endPoint = (pathSegment as LineSegment).Point; 1002foreach (Point point in points)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (3)
344internal FixedNode[] GetLine(int pageIndex, Point pt) 880Point prevPt = LTR1 ? box1.TopRight : box1.TopLeft; 881Point currentPt = LTR2 ? box2.TopLeft : box2.TopRight;
src\Framework\System\Windows\Documents\FixedTextView.cs (13)
81internal override ITextPointer GetTextPositionFromPoint(Point point, bool snapToText) 227Point offset = new Point(0, 0); 239Point offset = bounds.TopLeft; 787private bool _HitTest(Point pt, out UIElement e) 834private ITextPointer _SnapToText(Point point) 850Point transformedPt = point; 920Point topOfPage = new Point(suggestedX, 0); 921Point secondPoint = new Point(suggestedX, 1000); 935Point pt1 = topOfPage; 936Point pt2 = secondPoint; 1070private Rect _GetTransformedCaretRect(GeneralTransform transform, Point origin, double height) 1072Point bottom = origin; 1204private ITextPointer _CreateTextPointerFromGlyphs(Glyphs g, Point point)
src\Framework\System\Windows\Documents\Glyphs.cs (4)
387glyphRunProperties.glyphOffsets = new Point[glyphCount]; 1070public Point [] glyphOffsets; 1085public GlyphRun CreateGlyphRun(Point origin, XmlLanguage language) 1126private Point _glyphRunOrigin = new Point();
src\Framework\System\Windows\Documents\ImmComposition.cs (7)
714Point milPointTopLeft; 715Point milPointBottomRight; 716Point milPointCaret; 825Point milPointTopLeft; 826Point milPointBottomRight; 827Point milPointCaret; 1816Point point = Mouse.GetPosition(RenderScope);
src\Framework\System\Windows\Documents\ITextSelection.cs (2)
85bool Contains(Point point); 122void SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint);
src\Framework\System\Windows\Documents\ITextView.cs (13)
63ITextPointer GetTextPositionFromPoint(Point point, bool snapToText); 207ITextPointer GetPositionAtNextPage(ITextPointer position, Point suggestedOffset, int count, out Point newSuggestedOffset, out int pagesMoved); 407void BringPointIntoViewAsync(Point point, object userState); 431void BringPageIntoViewAsync(ITextPointer position, Point suggestedOffset, int count, object userState); 462bool Validate(Point point); 631public BringPointIntoViewCompletedEventArgs(Point point, ITextPointer position, bool succeeded, Exception error, bool cancelled, object userState) 642public Point Point 668private readonly Point _point; 816public BringPageIntoViewCompletedEventArgs(ITextPointer position, Point suggestedOffset, int count, ITextPointer newPosition, Point newSuggestedOffset, int pagesMoved, bool succeeded, Exception error, bool cancelled, object userState) 870public Point NewSuggestedOffset 902private readonly Point _newSuggestedOffset;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (5)
136private void ExtendSelection(Point pt) 461Point pt1; 463Point pt2; 673private FixedDocumentPage GetFixedPanelDocumentPage(Point pt) 716private Point _origin; // point where we started dragging
src\Framework\System\windows\Documents\TextEditor.cs (2)
530internal void RequestExtendSelection(Point point) 2000internal Point Point;
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (6)
67Point renderScopeMouseDownPoint = Mouse.GetPosition(This.TextView.RenderScope); 221Point uiScopeMouseDownPoint = Mouse.GetPosition(This.UiScope); 333Point minPoint = new Point(rc.left, rc.top); 334Point maxPoint = new Point(rc.right, rc.bottom); 360Point minPoint; 361Point maxPoint;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (6)
110internal bool SourceOnMouseLeftButtonDown(Point mouseDownPoint) 146Point mouseDownPoint = e.GetPosition(_textEditor.TextView.RenderScope); 165internal bool SourceOnMouseMove(Point mouseMovePoint) 228private bool InitialThresholdCrossed(Point dragPoint) 395Point pointScroller = e.GetPosition((IInputElement)scroller); 465private ITextPointer GetDropPosition(Visual target, Point point)
src\Framework\System\windows\Documents\TextEditorMouse.cs (10)
78internal static void SetCaretPositionOnMouseEvent(TextEditor This, Point mouseDownPoint, MouseButton changedButton, int clickCount) 138internal static bool IsPointWithinInteractiveArea(TextEditor textEditor, Point point) 247Point mouseDownPoint = e.GetPosition(This.TextView.RenderScope); 358Point mousePoint = e.GetPosition(This.TextView.RenderScope); 466Point mouseMovePoint = e.GetPosition(This.TextView.RenderScope); 531Point targetPoint = new Point(mouseMovePoint.X, mouseMovePoint.Y); 532Point pointScroller = e.GetPosition((IInputElement)scroller); 686private static void UpdateCursor(TextEditor This, Point mouseMovePoint) 729private static UIElement GetUIElementWhenMouseOver(TextEditor This, Point mouseMovePoint) 773private static bool IsPointWithinRenderScope(TextEditor textEditor, Point point)
src\Framework\System\windows\Documents\TextEditorSelection.cs (8)
612Point newSuggestedOffset; 641Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight); 726Point newSuggestedOffset; 755Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight); 1437Point newSuggestedOffset; 1469Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Top + pageHeight); 1533Point newSuggestedOffset; 1565Point targetPoint = new Point(GetViewportXOffset(This.TextView, suggestedX), targetRect.Bottom - pageHeight);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (5)
1568internal static bool TableBorderHitTest(ITextView textView, Point pt) 1580ITextView textView, Point point, 1657internal static TableColumnResizeInfo StartColumnResize(ITextView textView, Point pt) 1730internal void UpdateAdorner(Point mouseMovePoint) 1744internal void ResizeColumn(Point mousePoint)
src\Framework\System\windows\Documents\TextSelection.cs (7)
667bool ITextSelection.Contains(Point point) 797void ITextSelection.SetSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 1237internal bool Contains(Point point) 1950private void MoveSelectionByMouse(ITextPointer cursorPosition, Point cursorMousePoint) 1986private bool ShouldSelectEmbeddedObject(ITextPointer cursorPosition, Point cursorMousePoint, Rect objectEdgeRect) 2255Point top = new Point(caretRectangle.X, caretRectangle.Y); 2256Point bottom = new Point(caretRectangle.X, caretRectangle.Y + caretRectangle.Height);
src\Framework\System\Windows\Documents\TextStore.cs (10)
815Point milPoint; 858Point milPointTopLeft; 859Point milPointBottomRight; 894Point milPointTopLeft; 895Point milPointBottomRight; 1010Point milPointTopLeft; 1011Point milPointBottomRight; 2496private static UnsafeNativeMethods.RECT TransformRootRectToScreenCoordinates(Point milPointTopLeft, Point milPointBottomRight, IWin32Window win32Window, PresentationSource source) 2912Point point = Mouse.GetPosition(RenderScope);
src\Framework\System\Windows\FrameworkElement.cs (3)
5257Point origin = GetRenderTransformOrigin(); 5291private Point GetRenderTransformOrigin() 5293Point relativeOrigin = this.RenderTransformOrigin;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2621private double GetDistance(Point p1, Point p2) 2654Point startPoint; 2655Point endPoint;
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1293Point ptUpperLeft = new Point(rc.left, rc.top); 1294Point ptLowerRight = new Point(rc.right, rc.bottom);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
548case 456: t = () => typeof(Point); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7517typeof(System.Windows.Point),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6000case KnownElements.Point: t = typeof(System.Windows.Point); break;
src\Framework\System\Windows\Shapes\Line.cs (2)
165Point point1 = new Point(X1, Y1); 166Point point2 = new Point(X2, Y2);
src\Framework\System\Windows\Shapes\Polygon.cs (2)
138Point[] array = new Point[pointCollection.Count - 1];
src\Framework\System\Windows\Shapes\Polyline.cs (2)
138Point[] array = new Point[pointCollection.Count - 1];
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (7)
60private Point _windowPosAtStartOfUserMove = default(Point); 549Point adjustedTopLeft = DpiHelper.DevicePixelsToLogical( 602Point windowTopLeft = new Point(_window.Left, _window.Top); 769var mousePosScreen = new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)); 772Point mousePosWindow = mousePosScreen; 1444private HT _HitTestNca(Rect windowPosition, Point mousePosition)
src\Framework\System\Windows\Standard\DpiHelper.cs (12)
24public static Point LogicalPixelsToDevice(Point logicalPoint, double dpiScaleX, double dpiScaleY) 36public static Point DevicePixelsToLogical(Point devicePoint, double dpiScaleX, double dpiScaleY) 46Point topLeft = LogicalPixelsToDevice(new Point(logicalRectangle.Left, logicalRectangle.Top), dpiScaleX, dpiScaleY); 47Point bottomRight = LogicalPixelsToDevice(new Point(logicalRectangle.Right, logicalRectangle.Bottom), dpiScaleX, dpiScaleY); 54Point topLeft = DevicePixelsToLogical(new Point(deviceRectangle.Left, deviceRectangle.Top), dpiScaleX, dpiScaleY); 55Point bottomRight = DevicePixelsToLogical(new Point(deviceRectangle.Right, deviceRectangle.Bottom), dpiScaleX, dpiScaleY); 63Point pt = LogicalPixelsToDevice(new Point(logicalSize.Width, logicalSize.Height), dpiScaleX, dpiScaleY); 70Point pt = DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height), dpiScaleX, dpiScaleY); 77Point topLeft = LogicalPixelsToDevice(new Point(logicalThickness.Left, logicalThickness.Top), dpiScaleX, dpiScaleY); 78Point bottomRight = LogicalPixelsToDevice(new Point(logicalThickness.Right, logicalThickness.Bottom), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\SystemCommands.cs (2)
99public static void ShowSystemMenu(Window window, Point screenLocation) 110internal static void ShowSystemMenuPhysicalCoordinates(Window window, Point physicalScreenLocation)
src\Framework\System\Windows\VisualStateManager.cs (2)
522Point? targetPoint = GetTargetPoint(timeline, isEntering); 698private static Point? GetTargetPoint(Timeline timeline, bool isEntering)
src\Framework\System\Windows\Window.cs (49)
2184internal Point DeviceToLogicalUnits(Point ptDeviceUnits) 2187Point ptLogicalUnits = _swh.CompositionTarget.TransformFromDevice.Transform(ptDeviceUnits); 2196internal Point LogicalToDeviceUnits(Point ptLogicalUnits) 2199Point ptDeviceUnits = _swh.CompositionTarget.TransformToDevice.Transform(ptLogicalUnits); 2614var screenTopLeft = topLeftPointHelper.ScreenTopLeft.Value; 2760Point currentLocationLogicalUnits = DeviceToLogicalUnits(new Point(xDeviceUnits, yDeviceUnits)); 2779Point requestedSizeDeviceUnits = LogicalToDeviceUnits(new Point(requestedWidth, requestedHeight)); 2780Point requestedLocationDeviceUnits = LogicalToDeviceUnits(new Point(requestedLeft, requestedTop)); 2842Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(MinWidth, MinHeight)); 2843Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(MaxWidth, MaxHeight)); 2999Point newSizeDeviceUnits = LogicalToDeviceUnits(new Point(this.ActualWidth, this.ActualHeight)); 3116Point ptDeviceUnits = LogicalToDeviceUnits(new Point(widthLogicalUnits, heightLogicalUnits)); 3168Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rc.Width, 0)); 3187Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(0, rc.Height)); 3543Point maxSizeLogicalUnits = DeviceToLogicalUnits(new Point(maxWidthDeviceUnits, maxHeightDeviceUnits)); 3544Point minSizeLogicalUnits = DeviceToLogicalUnits(new Point(_trackMinWidthDeviceUnits, _trackMinHeightDeviceUnits)); 3921Point ownerSizeDeviceUnits; 3937Point ownerLocationDeviceUnits = Owner.LogicalToDeviceUnits(new Point(Owner.Left, Owner.Top)); 4085Point locationDeviceUnits = new Point(wp.rcNormalPosition_left, wp.rcNormalPosition_top); 4099Point sizeDeviceUnits = new Point(wp.rcNormalPosition_right - wp.rcNormalPosition_left, 4113Point sizeLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.Width, rectDeviceUnits.Height)); 4114Point locationLogicalUnits = DeviceToLogicalUnits(new Point(rectDeviceUnits.X, rectDeviceUnits.Y)); 4818Point windowSize = new Point(rc.right - rc.left, rc.bottom - rc.top); 4819Point ptLogicalUnits = DeviceToLogicalUnits(windowSize); 4987Point ptLogicalUnits = DeviceToLogicalUnits(new Point(rc.left, rc.top)); 5098Point minSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.minWidth, finalMinMax.minHeight)); 5099Point maxSizeDeviceUnits = LogicalToDeviceUnits(new Point(finalMinMax.maxWidth, finalMinMax.maxHeight)); 5164Point ptLogicalUnits = DeviceToLogicalUnits(new Point(pt.x, pt.y)); 5177Point mousePositionWRTResizeGripControl = ptLogicalUnits; 6025Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height)); 6063Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height)); 6125Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height)); 6162Point logicalSize = DeviceToLogicalUnits(new Point(rcHwnd.Width, rcHwnd.Height)); 6268private Point TransformWorkAreaScreenArea(Point pt, TransformType transformType) 6272Point retPt; 6526Point ptDeviceUnits = LogicalToDeviceUnits(new Point(leftLogicalUnits, topLogicalUnits)); 7487Point CompensateForPanningFeedback(Point point) 7493Point windowLocation = DeviceToLogicalUnits(new Point(rc.left, rc.top)); 7717Point _prePanningLocation = new Point(double.NaN, double.NaN); 8097Point pt = new Point(0,0); 8125Point pt = new Point( 8309/// A helper class to convert (Left, Top) <see cref="Point"/> expressed 8329internal Point LogicalTopLeft { get; } 8334internal Point? ScreenTopLeft { get; private set; } = null; 8340internal WindowStartupTopLeftPointHelper(Point topLeft)
src\Shared\MS\Internal\FixedPageInfo.cs (2)
67internal abstract System.Windows.Point StartPosition { get; } 77internal abstract System.Windows.Point EndPosition { get; }
src\Shared\MS\Internal\SafeSecurityHelper.cs (5)
131internal static Point ClientToScreen(UIElement relativeTo, Point point) 141Point ptRoot; 143Point ptClient = PointUtil.RootToClient(ptRoot, source); 144Point ptScreen = PointUtil.ClientToScreen(ptClient, source);
System.Activities.Core.Presentation (163)
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (2)
44Point actualPoint; 45Point origin = FreeFormPanel.GetLocation(AdornedElement);
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (16)
267public void OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint, WorkflowViewElement pastePointReference) 325Point panelPoint = this.TranslatePoint(pastePoint, this.panel); 397Point locationOfShape = (Point)location; 399foreach (var point in this.shapeLocations) 425void UpdateViewStateOnPastePoint(List<ModelItem> modelItemsInMetaData, Point newOrigin) 428Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity); 436if (viewStatePoints == null && viewStateValue is Point) 438viewStatePoints = new PointCollection { (Point)viewStateValue }; 442foreach (Point viewStatePoint in viewStatePoints) 463foreach (Point pt in collection) 465Point nPt = Point.Add(pt, offset); 483else if (viewStatePair.Value is Point) 485modifiedValues.Add(viewStatePair.Key, Point.Add((Point)viewStatePair.Value, offsetVector));
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (10)
25bool IsVisualHit(UIElement visual, UIElement reference, Point point) 145internal ConnectionPoint FindClosestConnectionPoint(Point srcConnPointLocation, List<ConnectionPoint> destConnPoints, out double minDist) 202ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint) 271Point SnapPointToGrid(Point pt) 283Point SnapVisualToGrid(UIElement element, Point location, Point shapeAnchorPoint, bool isAnchorPointValid) 287Point oldCenter = location; 304Point newCenter = SnapPointToGrid(oldCenter);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (10)
50Point locationPt = (Point)locationOfShape; 59Point startPoint = new Point(panel.MinWidth / 2, startSymbolTopMargin + startHeight / 2); 60Point startLocation = SnapVisualToGrid(this.StartSymbol, startPoint, new Point(-1, -1), false); 113FreeFormPanel.SetLocation(this.modelElement[itemOnCanvas], (Point)e.NewValue); 117this.shapeLocations.Remove((Point)e.OldValue); 119this.shapeLocations.Add((Point)e.NewValue); 607this.shapeLocations.Remove((Point)locationOfShape); 828Point[] points = new Point[connector.Points.Count];
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (2)
308internal bool CreateLinkGesture(ConnectionPoint sourceConnectionPoint, UIElement dest, Point mouseLocation, out string errorMessage, bool isLinkValidDueToLinkMove, IFlowSwitchLink caseKey) 341internal bool CreateLinkGesture(UIElement source, ConnectionPoint destConnectionPoint, Point mouseLocation, out string errorMessage, bool isLinkValidDueToLinkMove, IFlowSwitchLink caseKey)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (35)
77HashSet<Point> shapeLocations = null; 105this.shapeLocations = new HashSet<Point>(); 463Point[] points = ConnectorRouter.Route(this.panel, this.srcConnectionPoint, e); 469List<Point> segments = new List<Point>(points); 765void UpdateFlowchartOnLinkVisualMoved(ConnectionPoint knownConnectionPoint, Point newPoint, Connector movedConnector, bool isSourceKnown) 868Point destPoint = e.NewConnectorLocation[newEndConnectorPointIndex]; 1241Point locationPt = (Point)locationOfShape; 1442void StoreShapeViewState(UIElement movedElement, Point newLocation) 1457void StoreShapeViewState(ModelItem storageModelItem, Point newLocation) 1469void PerformInternalMove(UIElement movedElement, Point newPoint, Point? shapeAnchorPoint, 1475Point shapeLocation; 1533Dictionary<WorkflowViewElement, Point> relativeLocations = DragDropHelper.GetDraggedViewElementRelativeLocations(e); 1552Point anchorPoint = DragDropHelper.GetDragDropAnchorPoint(e); 1756Point CalculateDropLocationForAutoConnect(AutoConnectDirections autoConnectDirection, Size droppedSize) 1761Point CalculateDropLocationForAutoSplit(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize) 1869Point newPoint, 1870Point anchorPoint, 1876Point shapeLocationPtr; 1907private void OffsetDroppedItemToNewPosition(ModelItem flownodeMI, Point newLocationPtr) 1914Point oldLocationPoint = (Point)locationOfShape; 2009Point currentLocation = FreeFormPanel.GetLocation(shapeToMove); 2010Point newLocation = Point.Add(currentLocation, moveDir); 2046Point mouseUpLocation = e.GetPosition(sender as IInputElement); 2134Point point = (Point)viewStateService.RetrieveViewState(flowStep, shapeLocation); 2631private Point lastShape; 2634public Point OffsetShapeLocation(Point shapeLocation)
System\Activities\Core\Presentation\FlowchartResizeGrip.cs (2)
31Point offset; 85Point currentPosition = Mouse.GetPosition(flowchartGrid);
System\Activities\Core\Presentation\LocationChangedEventArgs.cs (3)
13Point newLocation; 15public LocationChangedEventArgs(Point newLocation) 20public Point NewLocation
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (17)
77Point location = (Point)viewState; 265public void OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint, WorkflowViewElement pastePointReference) 442void UpdateLocationViewStatesByPoint(List<ModelItem> itemsPasted, Point point) 444Point topLeft = new Point(Double.PositiveInfinity, Double.PositiveInfinity); 450Point location = (Point)viewState; 469foreach (Point point in points) 490viewState = Point.Add((Point)viewState, offsetVector); 512foreach (Point location in locations) 514Point newLocation = Point.Add(location, offsetVector); 539HashSet<Point> targetOccupiedLocations = null; 558Point locationOfShape = (Point)location; 566foreach (var point in targetOccupiedLocations)
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (3)
280FreeFormPanel.SetLocation(this.modelItemToUIElement[modelItem], (Point)e.NewValue); 284this.shapeLocations.Remove((Point)e.OldValue); 286this.shapeLocations.Add((Point)e.NewValue);
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (2)
240void StoreShapeLocationViewState(UIElement view, Point newLocation) 254void StoreShapeLocationViewState(ModelItem storageModelItem, Point newLocation)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (11)
102static bool IsVisualHit(UIElement visual, UIElement reference, Point point) 124static Point SnapVisualToGrid(UIElement element, Point location, Point shapeAnchorPoint, bool isAnchorPointValid) 128Point oldCenter = location; 142Point newCenter = SnapPointToGrid(oldCenter); 159static Point SnapPointToGrid(Point pt) 240static ConnectionPoint ConnectionPointHitTest(UIElement element, Point hitPoint) 247static ConnectionPoint GetConnectionPoint(UIElement element, Point location) 314Point srcPoint = FreeFormPanel.GetLocationRelativeToOutmostPanel(srcConnPoint);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (45)
48HashSet<Point> shapeLocations = null; 190this.shapeLocations = new HashSet<Point>(); 487Point locationPt = (Point)locationOfShape; 493Point startPoint = new Point(this.panel.MinWidth / 2, startSymbolTopMargin + startHeight / 2); 494Point startLocation = SnapVisualToGrid(this.initialNode, startPoint, new Point(-1, -1), false); 514Point srcLocation = FreeFormPanel.GetLocation(this.initialNode); 517Point destLocation = FreeFormPanel.GetLocation(initialStateView); 583Point locationPt = (Point)locationOfShape; 700this.shapeLocations.Remove((Point)locationOfShape); 816return locationPts.All<Point>((p) => { return p.X.IsNoLessThan(0) && p.Y.IsNoLessThan(0); }); 1196Point mousePosition = e.GetPosition(this.GetStateMachineContainerEditor()); 1544void UpdateStateMachineOnConnectorMoved(ConnectionPoint knownConnectionPoint, Point newPoint, Connector movedConnector, bool isConnectorStartMoved) 1642Point destPoint = e.NewConnectorLocation[newEndConnectorPointIndex]; 1700Point[] points = ConnectorRouter.Route(this.panel, this.activeSrcConnectionPoint, e); 1706List<Point> segments = new List<Point>(points); 1763Point src, dest; 1766src = Point.Add(FreeFormPanel.GetLocationRelativeToOutmostPanel(srcConnectionPoint), offset); 1772dest = Point.Add(FreeFormPanel.GetLocationRelativeToOutmostPanel(destConnectionPoint), offset); 1775Point invalidPoint = new Point(-1, -1); 1782void OffsetConnectorViewState(UIElement view, Point oldLocation, Point newLocation, bool offsetNonContainedConnectors) 1886Dictionary<WorkflowViewElement, Point> relativeLocations = DragDropHelper.GetDraggedViewElementRelativeLocations(e); 1893Point anchorPoint = DragDropHelper.GetDragDropAnchorPoint(e); 1970Point shapeLocation; 1990Point oldLocation = (Point)viewState; 1992Point newLocation = this.panel.GetLocationRelativeToOutmostPanel(shapeLocation); 2025Point CalculateDropLocationForAutoConnect(AutoConnectDirections autoConnectDirection, Size droppedSize) 2030Point CalculateDropLocationForAutoSplit(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize) 2104Point currentLocation = FreeFormPanel.GetLocation(shapeToMove); 2105Point newLocation = Point.Add(currentLocation, moveDir); 2247void PerformInternalMove(UIElement movedElement, Point newPoint, Point? shapeAnchorPoint, AutoConnectDirections autoConnectDirection, Connector connectorToSplit) 2253Point newLocation; 2277Point oldLocation = (Point)viewState; 2333Point location = e.GetPosition(sourceElement); 2455Point midPoint = new Point(-1, -1); 2456Point location = FreeFormPanel.GetLocation(designer);
System\Activities\Core\Presentation\StateContainerResizeGrip.cs (2)
31Point offset; 133Point currentPosition = Mouse.GetPosition(stateContainerGrid);
System\Activities\Core\Presentation\StateMachineConnetionPointsAdorner.cs (2)
28Point actualPoint; 29Point origin = FreeFormPanel.GetLocation(AdornedElement);
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
536private WorkflowViewElement FindTopmostWorkflowViewelementByHitTest(Visual visualToHitTest, Point point)
System.Activities.Presentation (390)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (5)
81internal static AdornerLocation FindAnchor(Point anchorPoint, Size desiredSize, Rect canvas) 132Point anchorPoint = this.AdornedElement.TranslatePoint(new Point(this.AdornedElement.RenderSize.Width, 0), this.ScrollViewer); 145Point location = CalculateLocation(anchor, this.AdornedElement.RenderSize, this.content.DesiredSize); 152private static Point CalculateLocation(AdornerLocation anchor, Size adorneeSize, Size adornerSize) 154Point location = new Point();
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Automation\PropertyInspectorAutomationPeer.cs (1)
75protected override Point GetClickablePointCore()
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (1)
69public static CustomPopupPlacement[] RightAlignedPopupPlacementCallback(Size popupSize, Size targetSize, Point offset)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\RenderUtils.cs (2)
19Point spineLeftTop = new Point(outerBounds.Left, outerBounds.Top); 20Point spineRightBottom = new Point(outerBounds.Right, outerBounds.Bottom);
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (3)
416internal static void DoPaste(EditingContext context, Point pastePoint, WorkflowViewElement pastePointReference) 453static ICompositeView GetClickedContainer(ModelItem clickedModelItem, Point clickPoint) 476static ICompositeView GetContainerForPaste(ModelItem pasteModelItem, Point clickPoint)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (15)
80internal static DataObject DoDragMoveImpl(IEnumerable<WorkflowViewElement> draggedViewElements, Point referencePoint) 140public static DragDropEffects DoDragMove(WorkflowViewElement draggedViewElement, Point referencePoint) 646public static Point GetDragDropAnchorPoint(DragEventArgs e) 648Point referencePoint; 651referencePoint = (Point)e.Data.GetData(DragAnchorPointFormat); 729internal static Dictionary<WorkflowViewElement, Point> GetViewElementRelativeLocations(IEnumerable<WorkflowViewElement> viewElements) 732Dictionary<WorkflowViewElement, Point> locations = new Dictionary<WorkflowViewElement, Point>(); 733Point topLeftPoint = new Point(double.PositiveInfinity, double.PositiveInfinity); 741Point location = new Point(0, 0); 768internal static Dictionary<WorkflowViewElement, Point> GetDraggedViewElementRelativeLocations(DragEventArgs e) 825public ViewElementDragShadow(UIElement owner, WorkflowViewElement viewElement, Point offset, double scaleFactor) 844public ViewElementDragShadow(UIElement owner, IEnumerable<WorkflowViewElement> viewElements, Point offset, double scaleFactor) 847Dictionary<WorkflowViewElement, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements); 929private void InitializeCommon(Point offset, double scaleFactor)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (2)
133Point position = e.GetPosition(this.AdornedElement); 139internal void UpdateHighlightedDirection(Point position)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (9)
55Point location = FreeFormPanel.GetLocation(target); 86internal static List<Rect> CreateHitTestRects(Point targetLocation, Size targetSize) 115internal static Point CalculateDropLocation(Size droppedSize, DependencyObject autoConnectTarget, AutoConnectDirections direction, HashSet<Point> shapeLocations) 117Point dropPoint = new Point(-1, -1); 120Point location = FreeFormPanel.GetLocation(autoConnectTarget); 176internal static DependencyObject GetShapeContainingPoint(Point point, List<DependencyObject> shapes) 199internal DependencyObject FindTarget(Point point, DependencyObject dragged, out AutoConnectDirections directions) 278Point shapeLocation = FreeFormPanel.GetLocation(shape);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (30)
16public static void CalculateEntryExitEdges(Point mousePosition, Connector connector, out EdgeLocation entryEdge, out EdgeLocation exitEdge) 20Point srcLocation = FreeFormPanel.GetLocation(srcShape); 21Point destLocation = FreeFormPanel.GetLocation(destShape); 25Point srcCenter = new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2)); 26Point destCenter = new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2)); 54public static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize, HashSet<Point> shapeLocations) 58Point srcLocation = FreeFormPanel.GetLocation(srcShape); 59Point destLocation = FreeFormPanel.GetLocation(destShape); 66internal static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Size droppedSize, Point srcLocation, Point destLocation, Size srcSize, Size destSize, HashSet<Point> shapeLocations) 68Point dropLocation = originalDropLocation; 108internal static AutoSplitAlignment GetAlignment(Point mousePosition, Point targetLocation, Size targetSize) 123internal static Point CalculateDropLocationToAlignVertically(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize) 125Point dropLocation = originalDropLocation; 139internal static Point CalculateDropLocationToAlignHorizontally(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize) 141Point dropLocation = originalDropLocation; 155internal static EdgeLocation CalculateEdgeLocation(Point mousePosition, Point shapeCenter)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (10)
13public static readonly DependencyProperty LocationProperty = DependencyProperty.Register("Location", typeof(Point), typeof(ConnectionPoint)); 42public Point Location 44get { return (Point)GetValue(ConnectionPoint.LocationProperty); } 109public List<Point> Edge 115Point topLeft = FreeFormPanel.GetLocation(parent); 121return new List<Point> { topLeft, new Point(topLeft.X, topLeft.Y + parentHeight) }; 125return new List<Point> { new Point(topLeft.X + parentWidth, topLeft.Y), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) }; 129return new List<Point> { topLeft, new Point(topLeft.X + parentWidth, topLeft.Y) }; 133return new List<Point> { new Point(topLeft.X, topLeft.Y + parentHeight), new Point(topLeft.X + parentWidth, topLeft.Y + parentHeight) }; 145public static ConnectionPoint GetClosestConnectionPoint(List<ConnectionPoint> connectionPoints, Point refPoint, out double minDist)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (3)
24Point origin = (Point)values[1]; 33Point connectionPointLocation = new Point(width * widthFraction + origin.X, height * heightFraction + origin.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (1)
57protected void DrawConnectionPoint(ConnectionPoint connPoint, Point actualLocation, DrawingContext drawingContext)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (2)
16List<Point> linkPoints; 17public ConnectorCreationAdorner(UIElement adornedElement, List<Point> linkPoints)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (23)
99public List<Point> ConnectorEditorLocation 120public bool EditPointsHitTest(Point pt) 138public bool Persist(Point finalSnappedPoint) 140List<Point> segments = new List<Point>(); 168public void Update(Point newPoint) 195List<Point> segments = new List<Point>(this.editedConnector.Points); 235List<Point> GetPointsFromEditPoints() 237List<Point> segments = new List<Point>(); 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 }); 326distance = DesignerGeometryHelper.DistanceOfLineSegments(new Point[] { current.Location, next.Location }); 385void UpdateEditPoints(Point newPoint) 418Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset); 439Point editPointLocation = (orientation == Orientation.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset); 452Point[] points = null; 453Point begin = this.editPoints[0].Location; 454Point end = this.editPoints[this.editPoints.Count - 1].Location; 547Point point; 549public EditPoint(EditPointTypes editPointType, Point point) 555public Point Location
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorLabelMarginConverter.cs (1)
33Point labelLocation = DesignerGeometryHelper.MidPointOfLineSegment(connectorPoints[longestSegmentIndex], connectorPoints[longestSegmentIndex + 1]);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorMovedEventArgs.cs (3)
13List<Point> newConnectorLocation; 15public ConnectorMovedEventArgs(List<Point> newConnectorLocation) 20public List<Point> NewConnectorLocation
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToArrowTransformConverter.cs (2)
41Point srcPoint = points[points.Count - 2]; 42Point destPoint = points[points.Count - 1];
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (4)
41Point turningPoint1 = Point.Add(pointCollection[i - 1], Vector.Multiply(dist1 - RoundRadius, firstSegmentPointingVector)); 42Point turningPoint2 = Point.Add(pointCollection[i], Vector.Multiply(RoundRadius, secondSegmentPointingVector));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (159)
55internal static Point[] Route(FreeFormPanel panel, Point srPoint, ConnectionPoint destConnPoint) 63internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnPoint, Point destPoint) 71internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnectionPoint, MouseEventArgs e) 74Point[] points = null; 99internal static Point[] Route(FreeFormPanel panel, ConnectionPoint srcConnPoint, ConnectionPoint destConnPoint) 108internal static Point GetDirection(Point from, Point to) 120static void AddExcludedAndSrcDestRects(FreeFormPanel outmostPanel, FreeFormPanel panel, Point srcPoint, Point destPoint, UIElement srcElement, UIElement destElement, List<Rect> excludedRects, List<Rect> srcDestRects) 133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize); 163internal static Point[] Route(FreeFormPanel panel, Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, UIElement srcElement, UIElement destElement) 171List<Point> excludedLines = new List<Point>(); 190internal static Point[] Route(Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects) 218static Point[] TryRoute(Point srcPoint, Point destPoint, List<Rect> excludedRects, List<Point> excludedLines, List<Rect> srcDestRects) 220Point[] segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), excludedLines.ToArray()); 225segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), new Point[] { }); 231segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), srcDestRects.ToArray(), new Point[] { }); 238Point intermediatePoint = (slope < 1) ? new Point(destPoint.X, srcPoint.Y) : new Point(srcPoint.X, destPoint.Y); 239segments = new Point[] { srcPoint, intermediatePoint, destPoint }; 241segments = RemoveRedundantPoints(new List<Point>(segments)); 246internal static Point[] RemoveRedundantPoints(List<Point> points) 286static void AddBoundPoint(ref List<DistanceFromPoint> extremitiesList, Point p, ConnectorSegment segment, Point Z) 294internal static bool AreSegmentsValid(Point[] segments) 313static Nullable<Point> EscapeAlgorithm(CoverSet coverSet, Point Z, 314ref List<Point> escapePointsA, ref List<ConnectorSegment> horizontalSegmentsA, ref List<ConnectorSegment> verticalSegmentsA, ref List<ConnectorSegment> horizontalSegmentsB, ref List<ConnectorSegment> verticalSegmentsB, 317Nullable<Point> intersection = null; 380Nullable<Point> escapePoint = null; 387escapePointsA.Add((Point)escapePoint); 398escapePointsA.Add((Point)escapePoint); 408Point r1 = new Point(), r2 = new Point(), r3 = new Point(), r4 = new Point(); 435Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 447coverSet.AddUsedEscapeLine(new ConnectorSegment(r1, (Point)escape)); 448escapePointsA.Add((Point)escape); 460Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 472coverSet.AddUsedEscapeLine(new ConnectorSegment(r2, (Point)escape)); 473escapePointsA.Add((Point)escape); 485Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Vertical, 497coverSet.AddUsedEscapeLine(new ConnectorSegment(r3, (Point)escape)); 498escapePointsA.Add((Point)escape); 510Nullable<Point> escape = EscapeProcessII(coverSet, Orientation.Horizontal, 522coverSet.AddUsedEscapeLine(new ConnectorSegment(r4, (Point)escape)); 523escapePointsA.Add((Point)escape); 534static Nullable<Point> EscapeProcessI(CoverSet coverSet, Point Z, 561Point p = extremitiesList[i].P; 562Point direction = GetDirection(Z, p); 581Point escapePoint; 604static Nullable<Point> EscapeProcessII(CoverSet coverSet, Orientation orientation, ref List<Point> escapePointsA, 606Point R, Size margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB) 618Nullable<Point> intersection = h.Intersect(segment); 631Nullable<Point> intersection = v.Intersect(segment); 642Nullable<Point> escapePointI = null; 684static List<Point> FirstRefinementAlgorithm(List<Point> points, ConnectorSegment intersectionSegment) 686List<Point> refinedSet = new List<Point>(); 691Point point; 721static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rect[] rectanglesToExclude, Point[] linesToExclude) 742Point A = begin; 743Point B = end; 746List<Point> escapePointsA = new List<Point>(); //escape points from begin to end 747List<Point> escapePointsB = new List<Point>(); //escape points from end to begin 766Nullable<Point> intersection = null; 782List<Point> tempList = escapePointsA; 786Point tempPoint = A; 810Point objectPoint = escapePointsA[escapePointsA.Count - 1]; 821List<Point> tempList = escapePointsA; 825Point tempPoint = A; 853List<Point> refinedPath = new List<Point>(); 862refinedPath.Add((Point)intersection); 883static void EraseRedundentWarps(CoverSet coverSet, ref List<Point> refinedPath) 889List<Point> newPath = new List<Point>(); 893Point a1 = refinedPath[currentSegment]; 894Point a2 = refinedPath[currentSegment + 1]; 901Point b1 = refinedPath[intersectingSegment]; 902Point b2 = refinedPath[intersectingSegment + 1]; 905Nullable<Point> intersection = a.Intersect(b); 914newPath.Add((Point)intersection); 920List<Point> temp = refinedPath; 937static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<Point> refinedPath, Size margin) 940List<Point> newPath = new List<Point>(); 944Point a1 = refinedPath[currentSegment]; 945Point a2 = refinedPath[currentSegment + 1]; 953Point direction = GetDirection(a1, a2); 959Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y); 969Point c1 = refinedPath[intersectingSegment]; 970Point c2 = refinedPath[intersectingSegment + 1]; 973Nullable<Point> intersection = b.Intersect(c); 974if (intersection != null && c.IsPointOnSegment((Point)intersection)) 984newPath.Add((Point)intersection); 989List<Point> temp = refinedPath; 1051public Point P; 1053public DistanceFromPoint(ConnectorSegment segment, Point z, Point p) 1065Point point1; 1066Point point2; 1068public ConnectorSegment(Point point1, Point point2) 1081public Point A 1089public Point B 1105public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Point b) 1115public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a, Orientation orientation) 1120public static ConnectorSegment SegmentFromBottomToTopCover(CoverSet coverSet, Point p) 1126Point bottom = new Point(p.X, (bottomCover != null) ? bottomCover.A.Y : int.MinValue); 1127Point top = new Point(p.X, (topCover != null) ? topCover.A.Y : int.MaxValue); 1132public static ConnectorSegment SegmentFromLeftToRightCover(CoverSet coverSet, Point p) 1138Point left = new Point((leftCover != null) ? leftCover.A.X : int.MinValue, p.Y); 1139Point right = new Point((rightCover != null) ? rightCover.A.X : int.MaxValue, p.Y); 1144public bool Covers(Point p) 1174public Point ExtendPointOutwards(Point p) 1194this.point1 = Point.Add(this.point1, new Vector(extendedLength, 0)); 1195this.point2 = Point.Add(this.point2, new Vector(-extendedLength, 0)); 1199this.point1 = Point.Add(this.point1, new Vector(-extendedLength, 0)); 1200this.point2 = Point.Add(this.point2, new Vector(extendedLength, 0)); 1207this.point1 = Point.Add(this.point1, new Vector(0, extendedLength)); 1208this.point2 = Point.Add(this.point2, new Vector(0, -extendedLength)); 1212this.point1 = Point.Add(this.point1, new Vector(0, -extendedLength)); 1213this.point2 = Point.Add(this.point2, new Vector(0, extendedLength)); 1228public Nullable<Point> Intersect(ConnectorSegment segment) 1251public bool IsPointOnSegment(Point p) 1264public ConnectorSegment PerpendicularThroughPoint(Point p) 1267Point newPoint = new Point(p.X, p.Y); 1281public bool PointLiesOnThisLine(Point p) 1303public CoverSet(Rect[] rectanglesToExclude, Point[] linesToExclude) 1351public bool EscapeLineHasBeenUsed(Point escapePoint) 1365public ConnectorSegment GetCover(Point p, DesignerEdges side) 1406public List<ConnectorSegment> GetCovers(Point p, DesignerEdges side) 1438public bool IsEscapePoint(Point origin, Point escape, DesignerEdges side)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorStartDotConverter.cs (2)
20Point point = (Point)value;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (10)
15public static double ManhattanDistanceBetweenPoints(Point begin, Point end) 20public static double DistanceBetweenPoints(Point point1, Point point2) 26public static double DistanceOfLineSegments(Point[] segments) 36public static Point MidPointOfLineSegment(Point point1, Point point2) 41public static double SlopeOfLineSegment(Point start, Point end)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (22)
25public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached("Location", typeof(Point), typeof(FreeFormPanel), new FrameworkPropertyMetadata(new Point(-1, -1))); 190public static Point GetLocation(DependencyObject obj) 192return (Point)obj.GetValue(FreeFormPanel.LocationProperty); 195public static void SetLocation(DependencyObject obj, Point point) 249public void UpdateConnectorPoints(Connector connector, List<Point> points) 252foreach (Point point in points) 260static public List<Point> GetEdgeRelativeToOutmostPanel(ConnectionPoint connectionPoint) 265static public Point GetLocationRelativeToOutmostPanel(ConnectionPoint connectionPoint) 270public Point GetLocationRelativeToOutmostPanel(Point location) 300internal static ConnectionPoint ConnectionPointHitTest(Point hitPoint, ConnectionPointsAdorner adorner) 306internal static ConnectionPoint ConnectionPointHitTest(Point hitPoint, List<ConnectionPoint> connectionPoints, FreeFormPanel panel) 330Point pt = new Point(0, 0); 402Point pt = new Point(0, 0); 413Point srcPoint = FreeFormPanel.GetLocationRelativeToOutmostPanel(FreeFormPanel.GetSourceConnectionPoint(connectorChild)); 414Point destPoint = FreeFormPanel.GetLocationRelativeToOutmostPanel(FreeFormPanel.GetDestinationConnectionPoint(connectorChild)); 459static bool IsLocationValid(Point location) 597Point[] pts = ConnectorRouter.Route(this, FreeFormPanel.GetSourceConnectionPoint(connector), FreeFormPanel.GetDestinationConnectionPoint(connector)); 598List<Point> points = new List<Point>(pts); 607void SaveConnectorEditor(Point pt) 614List<Point> points = this.connectorEditor.ConnectorEditorLocation;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\LocationChangedEventArgs.cs (3)
12Point newLocation; 14public LocationChangedEventArgs(Point newLocation) 19public Point NewLocation
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\PointExtensions.cs (2)
11public static bool IsEqualTo(this Point point1, Point point2)
System.Activities.Presentation\System\Activities\Presentation\ICompositeView.cs (1)
17void OnItemsPasted(List<object> itemsToPaste, List<object> metadata, Point pastePoint, WorkflowViewElement pastePointReference);
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (5)
102Point mousePosition; 195public bool Select(object clickedItem, Point clickedPosition) 331Point pt = args.GetPosition(this.lookupCanvas); 362Point clickedPosition = args.GetPosition(hitTest.VisualHit as IInputElement); 381Point to = args.GetPosition(this.lookupCanvas);
System.Activities.Presentation\System\Activities\Presentation\View\AutoScrollHelper.cs (4)
31AutoScroll(e.GetPosition(scrollViewer), scrollViewer, logicalView != null ? e.GetPosition(logicalView) : (Point?)null, logicalView, 41public static void AutoScroll(Point position, ScrollViewer scrollViewer, double offsetPerScroll) 47static void AutoScroll(Point positionInScrollViewer, ScrollViewer scrollViewer, Point? positionInLogicalView, FrameworkElement logicalView, double scrollOnDragThresholdX, double scrollOnDragThresholdY, double scrollOnDragOffset)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
778Point contextMenuTopLeft = this.ContextMenu.TranslatePoint(new Point(0, 0), sourceElement);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (3)
626Point scrPoint = new Point((int)(pos & 0xffff), (int)(pos >> 16)); 628Point clientPoint = layer.PointFromScreen(scrPoint); 1686Point mousePosition = e.GetPosition(scrollViewer);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (14)
55typeof(Point), 62KeyValuePair<FrameworkElement, Point> selectedChild; 65Point canvasOffset = new Point(); 199Point position = ExtensionSurface.GetPosition(window); 201Point calculatedPosition = new Point(); 288internal void SetWindowPosition(ExtensionWindow window, Point position) 326Point p = ExtensionSurface.GetPosition(child); 351Point pos = ExtensionSurface.GetPosition(window); 377Point pos = ExtensionSurface.GetPosition(child); 412Point pos = ExtensionSurface.GetPosition(child); 446this.selectedChild = new KeyValuePair<FrameworkElement, Point>(window, this.canvasOffset); 494public static void SetPosition(DependencyObject container, Point value) 499public static Point GetPosition(DependencyObject container) 501return (Point)container.GetValue(PositionProperty);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (12)
92Point bottomRight; 211public Point GetPlacementTargetOffset() 213Point offset = new Point(); 219Point targetPosition = transform.Transform(new Point()); 220Point windowPosition = ExtensionSurface.GetPosition(this); 235((ExtensionWindow)sender).OnPositionChanged((Point)args.NewValue); 262protected virtual void OnPositionChanged(Point position) 323Point position = e.GetPosition(this.border); 370Point topLeft = ExtensionSurface.GetPosition(this); 451Point current = Mouse.GetPosition(this); 452Point absolutePosition = Mouse.GetPosition(this.surface); 454Point topLeft = ExtensionSurface.GetPosition(this);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowHeader.cs (2)
37Point offset; 106Point moveTo = Mouse.GetPosition(this.surface);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (2)
24Point offset; 57Point currentPosition = Mouse.GetPosition(this.parent);
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (12)
40private Point StartPoint 47private Point EndPoint 54private Point MouseDownPointToScreen { get; set; } 124Point position = e.GetPosition(this.Designer.scrollableContent); 125Point positionToScreen = this.Designer.scrollableContent.PointToScreen(position); 170private static Point ClipPoint(Point point) 201Point topLeft = transform.Transform(new Point(0, 0)); 202Point bottomRight = transform.Transform(new Point(view.DragHandle.ActualWidth, view.DragHandle.ActualHeight)); 251Point start = ClipPoint(transform2.Transform(transform1.Transform(this.StartPoint))); 252Point end = ClipPoint(transform2.Transform(transform1.Transform(this.EndPoint))); 273Point location = transform.Transform(new Point(0, 0));
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (5)
17private Point panningStartPosition; 118internal bool IsInScrollableArea(Point mousePosition) 167Point currentPosition = Mouse.GetPosition(this.scrollViewer); 168Vector offset = Point.Subtract(currentPosition, this.panningStartPosition); 282Point pt = Mouse.GetPosition(this.ScrollViewer);
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (3)
395Point currentPoint = GetPosition(); 471private Point GetPosition() 475Point currentPoint = generalTransform1.Transform(new Point(0, 0));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (1)
687Point position = Mouse.GetPosition(textbox);
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
706void ICompositeView.OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint, WorkflowViewElement pastePointReference)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
833public void OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint, WorkflowViewElement pastePointReference)
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (8)
128Point lastMouseDownPoint; 756Point newPosition = e.GetPosition(this); 794private bool IsMouseOnDragHandle(Point mousePoint) 799Point dragHandleLocation = transform.Transform(new Point(0, 0)); 946Point relativeLocation = GetRelativeLocation(draggedViews); 947Point referencePoint = this.lastMouseDownPoint; 1044private Point GetRelativeLocation(IEnumerable<WorkflowViewElement> draggedViews) 1051Dictionary<WorkflowViewElement, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);
UIAutomationClient (26)
MS\Internal\Automation\ClickablePoint.cs (6)
34public static bool HitTestForClickablePoint(AutomationElement el, out Point pt) 102private static bool TryLinePattern( out Point pt, ref Rect rect, AutomationElement el) 135private static bool TrySparsePattern( out Point pt, ref Rect rect, AutomationElement el) 159private static bool TryPattern(double x, double y, out Point pt, ref Rect rect, AutomationElement el ) 175private static bool TryPoint( ref Point pt, AutomationElement el ) 181private static bool TryPoint( ref Point pt, AutomationElement el, out AutomationElement hitEl )
MS\Internal\Automation\Schema.cs (1)
270new AutomationPropertyInfo( convertToPoint, AutomationElement.ClickablePointProperty, typeof(Point), null ),
MS\Internal\Automation\UiaCoreAPI.cs (2)
923internal static SafeTextRangeHandle TextPattern_RangeFromPoint(SafePatternHandle hobj, Point point) 1397private static extern int RawTextPattern_RangeFromPoint(SafePatternHandle hobj, Point point, out SafeTextRangeHandle result);
System\Windows\Automation\AutomationElement.cs (10)
425public static AutomationElement FromPoint(Point pt) 946public bool TryGetClickablePoint( out Point pt ) 960if (ptClickable is Point) 963if (double.IsNaN (((Point) ptClickable).X) || double.IsNaN (((Point) ptClickable).Y)) 969AutomationElement scan = AutomationElement.FromPoint((Point)ptClickable); 974pt = (Point)ptClickable; 1000public Point GetClickablePoint() 1002Point pt; 1371private static AutomationElement DrillForPointOrFocus(bool atPoint, Point pt, UiaCoreApi.UiaCacheRequest cacheRequest)
System\Windows\Automation\ItemContainerPattern.cs (3)
173else if (value is Point) 175Point pt = (Point)value;
System\Windows\Automation\PropertyCondition.cs (3)
178else if (val is Point) 180Point pt = (Point)val;
System\Windows\Automation\TextPattern.cs (1)
229public TextPatternRange RangeFromPoint(Point screenLocation)
UIAutomationClientsideProviders (15)
MS\Internal\AutomationProxies\WindowsEditBox.cs (6)
386ITextRangeProvider ITextProvider.RangeFromPoint(Point screenLocation) 675Point pt = PosFromChar(start); 717Point pt = PosFromChar(mid); 801internal Point PosFromChar(int index) 817internal Point PosFromCharUR(int index, string text) 820Point pt;
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (6)
271Point mapClientToScreen = new Point(w32point.x, w32point.y); 290Point startPoint = _provider.PosFromChar(Start); 291Point endPoint = _provider.PosFromCharUR(End - 1, text); 677private ArrayList GetMultilineBoundingRectangles(string text, Point mapClientToScreen, Rect clippingRectangle) 712Point startPoint; 723Point endPoint;
MS\Internal\AutomationProxies\WindowsRichEdit.cs (1)
280ITextRangeProvider ITextProvider.RangeFromPoint(Point screenLocation)
MS\Internal\AutomationProxies\WindowsSpinner.cs (1)
168Point pt = new Point(x, y);
MS\Win32\NativeMethods.cs (1)
1271static public explicit operator Win32Point(Point pt)
WindowsBase (69)
Base\System\Windows\Converters\Generated\PointValueSerializer.cs (5)
51if (!(value is Point)) 67return Point.Parse(value ); 81if (value is Point) 83Point instance = (Point) value;
Base\System\Windows\Generated\Point.cs (14)
62public static bool operator == (Point point1, Point point2) 79public static bool operator != (Point point1, Point point2) 95public static bool Equals (Point point1, Point point2) 114if ((null == o) || !(o is Point)) 119Point value = (Point)o; 120return Point.Equals(this,value); 134public bool Equals(Point value) 136return Point.Equals(this, value); 156public static Point Parse(string source) 162Point value;
Base\System\Windows\Generated\PointConverter.cs (4)
95return Point.Parse(source); 117if (destinationType != null && value is Point) 119Point instance = (Point)value;
Base\System\Windows\Media\Matrix.cs (4)
351public Point Transform(Point point) 353Point newPoint = point; 362public void Transform(Point[] points)
Base\System\Windows\Point.cs (18)
61public static Point operator + (Point point, Vector vector) 74public static Point Add(Point point, Vector vector) 87public static Point operator - (Point point, Vector vector) 100public static Point Subtract(Point point, Vector vector) 113public static Vector operator - (Point point1, Point point2) 126public static Vector Subtract(Point point1, Point point2) 134public static Point operator * (Point point, Matrix matrix) 142public static Point Multiply(Point point, Matrix matrix) 155public static explicit operator Size(Point point) 167public static explicit operator Vector(Point point)
Base\System\Windows\Rect.cs (12)
37public Rect(Point location, 76public Rect(Point point1, 77Point point2) 91public Rect(Point point, 154public Point Location 363public Point TopLeft 375public Point TopRight 387public Point BottomLeft 399public Point BottomRight 419public bool Contains(Point point) 577public void Union(Point point) 585public static Rect Union(Rect rect, Point point)
Base\System\Windows\Size.cs (1)
151public static explicit operator Point(Size size)
Base\System\Windows\Vector.cs (5)
164public static Point operator + (Vector vector, Point point) 172public static Point Add(Vector vector, Point point) 299public static explicit operator Point(Vector vector)
Shared\MS\Internal\DoubleUtil.cs (2)
190public static bool AreClose(Point point1, Point point2)
Shared\MS\Internal\MatrixUtil.cs (4)
107Point point0 = matrix.Transform(rect.TopLeft); 108Point point1 = matrix.Transform(rect.TopRight); 109Point point2 = matrix.Transform(rect.BottomRight); 110Point point3 = matrix.Transform(rect.BottomLeft);