Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (4)
396internal static Rect s_Viewport = new Rect(0,0,1,1);
397internal static Rect s_Viewbox = new Rect(0,0,1,1);
464new Rect(0,0,1,1),
473new Rect(0,0,1,1),
src\Framework\MS\Internal\AppModel\IconHelper.cs (4)
159var drawingDimensions = new Rect(0, 0, renderSize.Width, renderSize.Height);
168drawingDimensions = new Rect((renderSize.Width - img.Width) / 2, (renderSize.Height - img.Height) / 2, img.Width, img.Height);
173drawingDimensions = new Rect((renderSize.Width - scaledRenderWidth) / 2, 0, scaledRenderWidth, renderSize.Height);
178drawingDimensions = new Rect(0, (renderSize.Height - scaledRenderHeight) / 2, renderSize.Width, scaledRenderHeight);
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (4)
76new Rect(0.0, 0.0, 1f, 1f));
96tileBrush.Viewport = new Rect(0, 0, HatchBorderMargin, HatchBorderMargin);
315rectGeometry = new RectangleGeometry(new Rect(0, 0, RenderSize.Width, RenderSize.Height));
419visibleRect = new Rect(center.X - size / 2, center.Y - size / 2, size, size);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (5)
1413Rect viewport = new Rect(0, 0, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight);
1423Rect rect = new Rect(0, 0, Width, Height);
1594ret = new Rect(anchor.X + PositionTransform.X + _deltaX, anchor.Y + PositionTransform.Y + _deltaY, Width, Height);
1614pageBounds = new Rect(-scrollInfo.HorizontalOffset, -scrollInfo.VerticalOffset, scrollInfo.ExtentWidth, scrollInfo.ExtentHeight);
1623pageBounds = new Rect(0, 0, pageSize.Width, pageSize.Height);
src\Framework\MS\Internal\Documents\TextBoxView.cs (7)
541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height));
746Rect rect = new Rect(contentOffset, lineIndex * _lineHeight, _lineMetrics[lineIndex].Width, _lineHeight);
2058Rect rect = new Rect(0, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight);
2105Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight);
2154Rect rect = new Rect(0, 0, endOfParaGlyphWidth, _lineHeight);
2184Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, 0, endOfParaGlyphWidth, _lineHeight);
3004new Rect(_scrollData.HorizontalOffset, _scrollData.VerticalOffset, _scrollData.ViewportWidth, _scrollData.ViewportHeight);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
216visibleRect = new Rect(scrollInfo.HorizontalOffset, scrollInfo.VerticalOffset, scrollInfo.ViewportWidth, scrollInfo.ViewportHeight);
3494return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
3499return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
3528return new Rect(paragraphResult.LayoutBox.Left, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
3533return new Rect(paragraphResult.LayoutBox.Right, paragraphResult.LayoutBox.Top, 0.0, paragraphResult.LayoutBox.Height);
src\Framework\System\windows\Documents\CaretElement.cs (4)
339scrollRectangle = new Rect(_left - CaretPaddingWidth, _top, CaretPaddingWidth * 2 + (IsInInterimState ? _interimWidth : _systemCaretWidth), _height);
377MS.Internal.Documents.TextViewBase.BringRectIntoViewMinimally(_textEditor.TextView, new Rect(scrollToOriginPosition, scrollRectangle.Y, scrollRectangle.Width, scrollRectangle.Height));
687context.DrawRectangle(_caretBrush, null, new Rect(0, 0, _interimWidth, _height));
700context.DrawRectangle(_caretBrush, null, new Rect(-(_systemCaretWidth / 2), 0, _systemCaretWidth, _height));
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (3)
86_pageConstructor._ProcessFilledRect(_transform, new Rect(_xMin, _yMin, _xMax - _xMin, _yMax - _yMin));
477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height);
506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height);
src\Framework\System\Windows\FrameworkElement.cs (10)
4285Rect childBoundsTr = Rect.Transform(new Rect(0, 0, w, h),
4419Rect unclippedBoundsTransformed = Rect.Transform(new Rect(0, 0, unclippedDesiredSize.Width, unclippedDesiredSize.Height), ltd.Transform.Value);
4444Rect childBoundsTransformed = Rect.Transform(new Rect(0, 0, desiredSize.Width, desiredSize.Height), ltd.Transform.Value);
4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value);
4924inkRectTransformed = Rect.Transform(new Rect(0, 0, inkSize.Width, inkSize.Height), ltd.Transform.Value);
4946Rect clipRect = new Rect(0, 0, maxWidthClip, maxHeightClip);
4964Rect slotClipRect = new Rect(-offset.X + inkRectTransformed.X,
4984Rect localClipRect = new Rect(0, 0, maxWidthClip, maxHeightClip);
5010Rect slotRect = new Rect(-offset.X + inkRectTransformed.X,
5022Rect localRect = new Rect(0, 0, maxWidthClip, maxHeightClip);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (7)
445Rect rcLogicalWindow = DpiHelper.DeviceRectToLogical(new Rect(rcWindow.Left, rcWindow.Top, rcWindow.Width, rcWindow.Height), dpi.DpiScaleX, dpi.DpiScaleY);
446Rect rcLogicalClient = DpiHelper.DeviceRectToLogical(new Rect(rcAdjustedClient.Left, rcAdjustedClient.Top, rcAdjustedClient.Width, rcAdjustedClient.Height), dpi.DpiScaleX, dpi.DpiScaleY);
1041return new Rect(windowPosition.Left, windowPosition.Top, windowPosition.Width, windowPosition.Height);
1242hrgn = _CreateRoundRectRgn(new Rect(0, 0, windowSize.Width / 2 + topLeftRadius, windowSize.Height / 2 + topLeftRadius), topLeftRadius);
1246Rect topRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + topRightRadius, windowSize.Height / 2 + topRightRadius);
1254Rect bottomLeftRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomLeftRadius, windowSize.Height / 2 + bottomLeftRadius);
1262Rect bottomRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomRightRadius, windowSize.Height / 2 + bottomRightRadius);