1215 references to Point
PresentationCore (147)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (5)
118temp.Location = new Point( 194return new Point( 296return new Point( 544return new Point( 566temp.Location = new Point(
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 (1)
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 (2)
555point = new Point(XamlSerializationHelper.ReadDouble(br), 572point = new Point(DeserializeDouble(br, isScaledIntegerX),
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (7)
61_p1Transformed = new Point(projPoint1.X, projPoint1.Y); 62_p2Transformed = new Point(projPoint2.X, projPoint2.Y); 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);
Core\CSharp\MS\Internal\Media3D\LineUtil.cs (1)
472hitCoord = new Point(u, v);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (1)
372return new Point(
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\LineServicesCallbacks.cs (5)
1504new Point(drawingLineOrigin.X + lineLength, drawingLineOrigin.Y) 2656Point baselineOrigin = new Point( 3063baselineOrigin = new Point(RoundDipForDisplayModeJustifiedText(IdealToRealWithNoRounding(idealBaselineOriginX), pixelsPerDip), 3281glyphOffsets[i] = new Point( 3315glyphOffsets.Add(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\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);
Core\CSharp\System\Windows\Input\MouseDevice.cs (8)
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);
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
1403Point currentPosition = new Point(x, y);
Core\CSharp\System\Windows\Interop\HwndSource.cs (5)
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)); 1647Point pt = new Point(x, y); 1665Point relevantPt = new Point(pt.X, pt.Y);
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\Effect.cs (2)
139return new Point( 156return 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 (2)
1790Point origin = new Point(0, 0); 1807new Point(origin.X + drawingOffset.X, origin.Y + drawingOffset.Y),
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\PointCollection.cs (1)
759value = new 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\PointCollection.cs (1)
41Point point = new Point(
Core\CSharp\System\Windows\Media3D\GeneralTransform3DTo2D.cs (1)
56result = _transformBetween2D.Transform(new Point(projectedPoint.X, projectedPoint.Y));
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (4)
100uv[j] = new Point(0, 0); 176return new Point(uv.X * descBounds.Width + descBounds.Left, 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 (331)
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 (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\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 (1)
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\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 (1)
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 (1)
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\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\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\InkCanvas.cs (1)
1904Paste(new Point(c_pasteDefaultLocation, c_pasteDefaultLocation));
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 (1)
435_pageHost.CachedOffset = new Point((finalSize.Width - pageSize.Width) / 2, (finalSize.Height - pageSize.Height) / 2);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (3)
2039customPlacements = customCallback(childBounds.Size, targetBounds.Size, new Point(HorizontalOffset, VerticalOffset)); 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\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\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 (1)
1602Point lineOffset = new Point(contentOffset.X, contentOffset.Y);
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\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 (1)
207_measurementGlyphRun = _glyphRunProperties.CreateGlyphRun(new Point(OriginX,OriginY), Language);
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\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 (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);
src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
138return new Point(double.NaN, double.NaN);
PresentationFramework.Aero (186)
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 (13)
78bevel.EndPoint = new Point(0.0, 1.0); 111background.EndPoint = new Point(0.0, 1.0); 185lgBrush.EndPoint = new Point(0.0, 1.0); 236topBrush.EndPoint = new Point(0.0, 1.0); 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); 364arrowBorder.EndPoint = new Point(1.0, 1.0); 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 (182)
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 (14)
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); 220tabFill.EndPoint = new Point(1.0, 0.0); 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 (21)
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); 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 (128)
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 (14)
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); 149tabFill.EndPoint = new Point(1.0, 0.0); 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 (21)
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); 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 (137)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (5)
132Point anchorPoint = this.AdornedElement.TranslatePoint(new Point(this.AdornedElement.RenderSize.Width, 0), this.ScrollViewer); 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 (27)
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); 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\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 (1)
626Point scrPoint = new Point((int)(pos & 0xffff), (int)(pos >> 16));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
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 (1)
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);