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\TextFormatting\FullTextLine.cs (9)
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\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\System\Windows\Input\ManipulationLogic.cs (7)
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),
790private static readonly Point LayoutUpdateDetectionPivotPoint = new Point(-10234.1234, -10234.1234);
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (15)
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);
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\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\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\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\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\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\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\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\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\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\Window.cs (31)
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);