42 references to TopLeft
PresentationCore (19)
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
1185texCoordsOfInterest[0] = Viewport2DVisual3D.VisualCoordsToTextureCoords(rect.TopLeft, _visualBrushBounds);
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (2)
447if(DoubleUtil.AreClose(rect.TopLeft.X, rect.BottomRight.X)) 452if(DoubleUtil.AreClose(rect.TopLeft.Y, rect.BottomRight.Y))
Core\CSharp\System\Windows\Ink\Stroke2.cs (2)
123return this.GetClipResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 158return this.GetEraseResult(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
Core\CSharp\System\Windows\Ink\StrokeCollection2.cs (2)
299Clip(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft }); 345Erase(new Point[4] { bounds.TopLeft, bounds.TopRight, bounds.BottomRight, bounds.BottomLeft });
Core\CSharp\System\Windows\Media\Effects\BlurEffect.cs (2)
43topLeft.X = contentBounds.TopLeft.X - radius; 44topLeft.Y = contentBounds.TopLeft.Y - radius;
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (2)
43topLeft.X = contentBounds.TopLeft.X - radius; 44topLeft.Y = contentBounds.TopLeft.Y - radius;
Core\CSharp\System\Windows\Media\Effects\Effect.cs (3)
165: new Rect(UnitToWorldUnsafe(unitRect.TopLeft, worldBounds), 171Point? tl = WorldToUnit(worldRect.TopLeft, worldBounds); 216bool ok = TryTransform(rect.TopLeft, out topLeftResult)
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
36topLeft.X = contentBounds.TopLeft.X - PaddingLeft; 37topLeft.Y = contentBounds.TopLeft.Y - PaddingTop;
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (2)
379rect.TopLeft * matrix, 455ctx.BeginFigure(rect.TopLeft, true /* is filled */, true /* is closed */);
Shared\MS\Internal\PointUtil.cs (1)
310Point corner1 = ClientToScreen(rectClient.TopLeft, hwndSource);
PresentationFramework (17)
src\Framework\System\Windows\Controls\Border.cs (4)
715Vector offset = new Vector(rect.TopLeft.X, rect.TopLeft.Y); 770radiusX = topLeft.X - rect.TopLeft.X; 771radiusY = leftTop.Y - rect.TopLeft.Y;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
2426points[(int)InterestPoint.TopLeft] = rect.TopLeft;
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
164lineRect = new Rect(ClientToScreen(lineRect.TopLeft, textView.RenderScope), ClientToScreen(lineRect.BottomRight, textView.RenderScope)); 523ITextPointer visibleStart = textView.GetTextPositionFromPoint(visibleRect.TopLeft, true);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (2)
880Point prevPt = LTR1 ? box1.TopRight : box1.TopLeft; 881Point currentPt = LTR2 ? box2.TopLeft : box2.TopRight;
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
221designRect = _GetTransformedCaretRect(tran, designRect.TopLeft, designRect.Height); 239Point offset = bounds.TopLeft;
src\Framework\System\Windows\Documents\TextStore.cs (2)
933milPointTopLeft = rectStart.TopLeft; 982milPointTopLeft = rectBound.TopLeft;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
2659startPoint = sourceRect.TopLeft; 2662endPoint = targetRect.TopLeft; 2680startPoint = sourceRect.TopLeft; 2683endPoint = targetRect.TopLeft;
PresentationFramework.Classic (1)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (1)
881figure.StartPoint = rect.TopLeft;
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
472figure.StartPoint = rect.TopLeft;
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
472figure.StartPoint = rect.TopLeft;
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (1)
257ExtensionSurface.SetPosition(this.rubberBand, rect.TopLeft);
WindowsBase (1)
Shared\MS\Internal\MatrixUtil.cs (1)
107Point point0 = matrix.Transform(rect.TopLeft);