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