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\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
99return new Rect();
src\Framework\System\Windows\Controls\Border.cs (5)
277Rect boundRect = new Rect(finalSize);
443Rect rect = new Rect(new Point(halfThickness, halfThickness),
608dc.DrawRoundedRectangle(background, null, new Rect(ptTL, ptBR), innerCornerRadius, innerCornerRadius);
612dc.DrawRectangle(background, null, new Rect(ptTL, ptBR));
646return new Rect(rt.Left + thick.Left,
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
360rect = new Rect(accumulatedWidth, 0.0, childArrangeWidth, arrangeSize.Height);
391rect = new Rect(accumulatedWidth, 0.0, Math.Max(remainingWidth, 0.0), arrangeSize.Height);
398_floatingHeader.Arrange(new Rect(new Point(_currentPos.X - _relativeStartPos.X, 0), HeadersPositionList[_startColumnIndex].Size));
401_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (7)
1438Rect newRect = new Rect();
3338Rect rcChild = new Rect(arrangeSize);
4266viewport = new Rect(offsetX, offsetY, size.Width, size.Height);
4271viewport = new Rect(offsetX, offsetY, viewportSize.Width, viewportSize.Height);
4503viewport = new Rect(0, 0, constraint.Width, constraint.Height);
6332Rect childRect = new Rect(new Point(), child.DesiredSize);
7948Rect viewport = new Rect();
src\Framework\System\windows\Documents\CaretElement.cs (5)
202_caretElement.Arrange(new Rect(point, availableSize));
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 (12)
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);
4921Rect inkRectTransformed = new Rect();
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);
5250Rect inkRectTransformed = Rect.Transform(new Rect(inkSize), ltd.Transform.Value);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
679((UIElement)GetVisualChild(0)).Arrange(new Rect(new Point(), finalSize));
2490return transform.TransformBounds(new Rect(x, y, width, height));
3089Rect sourceRect = new Rect(0, 0, 0, 0);
3100sourceRect = new Rect(0, 0, 0, 0);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (8)
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);
1234hrgn = _CreateRoundRectRgn(new Rect(windowSize), topLeftRadius);
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);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (4)
896Rect fullRect = new Rect(0d, 0d, this.ActualWidth, this.ActualHeight);
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\PropertyPanel.cs (3)
225child.Arrange(new Rect(Math.Max(0, finalSize.Width - lastChildWidth), 0, lastChildWidth, finalSize.Height));
229child.Arrange(new Rect(left, 0, Math.Min(desiredWidth, availableWidth), finalSize.Height));
263dc.DrawRectangle(selectionBrush, null, new Rect(
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (5)
49this.adornedElementRect = new Rect(new Point(0, 0), size);
52new Rect(-HitTestHeight, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth),
53new Rect(size.Width, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth),
54new Rect((size.Width / 2) - (HitTestWidth / 2), -HitTestHeight, HitTestWidth, HitTestHeight),
55new Rect((size.Width / 2) - (HitTestWidth / 2), size.Height, HitTestWidth, HitTestHeight)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (7)
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)));
280Rect shapeRect = new Rect(shapeLocation, shapeSize);
294Rect panelRect = new Rect(0, 0, this.panel.Width, this.panel.Height);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (3)
133Rect rect = new Rect(Point.Add(panel.TranslatePoint(FreeFormPanel.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize);
135Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2);
210Rect shrunk = new Rect(rect.X + delta, rect.Y + delta, rect.Width - delta * 2, rect.Height - delta * 2);
System.Activities.Presentation\System\Activities\Presentation\View\QuadTree.cs (12)
333Rect topLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top, w, h);
334Rect topRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top, w, h);
335Rect bottomLeft = new Rect(toInsert.bounds.Left, toInsert.bounds.Top + h, w, h);
336Rect bottomRight = new Rect(toInsert.bounds.Left + w, toInsert.bounds.Top + h, w, h);
413Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h);
414Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h);
415Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h);
416Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h);
479Rect topLeft = new Rect(this.bounds.Left, this.bounds.Top, w, h);
480Rect topRight = new Rect(this.bounds.Left + w, this.bounds.Top, w, h);
481Rect bottomLeft = new Rect(this.bounds.Left, this.bounds.Top + h, w, h);
482Rect bottomRight = new Rect(this.bounds.Left + w, this.bounds.Top + h, w, h);
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (6)
53this.tree.Bounds = new Rect(0, 0, int.MaxValue, int.MaxValue);
162var designers = this.tree.GetNodesInside(new Rect(0, 0, double.MaxValue, double.MaxValue));
195Rect viewerBounds = new Rect(parentView.HorizontalOffset, parentView.VerticalOffset, parentView.ViewportWidth, parentView.ViewportHeight);
328this.oldBounds = new Rect(0, 0, 0, 0);
398Rect bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight));
405bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight));
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (25)
202override protected Rect GetBoundingRectangleCore()
208return Rect.Empty;
214return Rect.Empty;
216Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize);
217Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource);
218Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource);
219Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
231internal override Rect GetVisibleBoundingRectCore()
237return Rect.Empty;
243return Rect.Empty;
245Rect rectElement = CalculateVisibleBoundingRect(_owner);
246Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource);
247Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource);
248Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
272Rect boundingRect = CalculateVisibleBoundingRect(_owner);
274isOffscreen = (DoubleUtil.AreClose(boundingRect, Rect.Empty) ||
291internal static Rect CalculateVisibleBoundingRect(UIElement owner)
293Rect boundingRect = new Rect(owner.RenderSize);
300!DoubleUtil.AreClose(boundingRect, Rect.Empty) &&
315Rect clipBounds = clipGeometry.Bounds;
322boundingRect = Rect.Empty;
530Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize);
531Rect rectRoot = PointUtil.ElementToRoot(rectElement, _owner, presentationSource);
532Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource);
533Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimation.cs (32)
45private Rect[] _keyValues;
60Type typeofProp = typeof(Rect?);
69new PropertyMetadata((Rect?)null, propCallback),
76new PropertyMetadata((Rect?)null, propCallback),
83new PropertyMetadata((Rect?)null, propCallback),
107public RectAnimation(Rect toValue, Duration duration)
119public RectAnimation(Rect toValue, Duration duration, FillBehavior fillBehavior)
132public RectAnimation(Rect fromValue, Rect toValue, Duration duration)
145public RectAnimation(Rect fromValue, Rect toValue, Duration duration, FillBehavior fillBehavior)
218protected override Rect GetCurrentValueCore(Rect defaultOriginValue, Rect defaultDestinationValue, AnimationClock animationClock)
235Rect from = new Rect();
236Rect to = new Rect();
237Rect accumulated = new Rect();
238Rect foundation = new Rect();
352Rect accumulator = AnimatedTypeHelpers.SubtractRect(to, from);
377_keyValues = new Rect[2];
384_keyValues = new Rect[2];
391_keyValues = new Rect[1];
398_keyValues = new Rect[1];
404_keyValues = new Rect[1];
425Rect? typedValue = (Rect?)value;
445public Rect? From
449return (Rect?)GetValue(FromProperty);
465public Rect? To
469return (Rect?)GetValue(ToProperty);
485public Rect? By
489return (Rect?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (24)
46public RectangleGeometry(Rect rect)
54public RectangleGeometry(Rect rect,
70Rect rect,
83public override Rect Bounds
89Rect boundsRect;
91Rect currentRect = Rect;
96boundsRect = Rect.Empty;
150Rect rect1 = rectGeometry1.Rect;
151Rect rect2 = rectGeometry2.Rect;
172internal override Rect GetBoundsInternal(Pen pen, Matrix worldMatrix, double tolerance, ToleranceType type)
194internal static Rect GetBoundsHelper(Pen pen, Matrix worldMatrix, Rect rect, double radiusX, double radiusY,
197Rect boundingRect;
204boundingRect = Rect.Empty;
270Rect rect = Rect;
311Rect rect = Rect;
341Rect rect = Rect;
436Rect rect = Rect;
475private Point[] GetPointList(Rect rect, double radiusX, double radiusY)
495private unsafe static void GetPointList(Point * points, uint pointsCount, Rect rect, double radiusX, double radiusY)
537private static byte[] GetTypeList(Rect rect, double radiusX, double radiusY)
553private uint GetPointCount(Rect rect, double radiusX, double radiusY)
569private uint GetSegmentCount(Rect rect, double radiusX, double radiusY)
585private static void GetCounts(Rect rect, double radiusX, double radiusY, out uint pointCount, out uint segmentCount)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (20)
272public Rect MakeVisible(Visual v, Rect r)
292public Rect MakeVisible(object o, Rect r, int pageNumber)
318MakeContentPositionVisibleAsync(new MakeVisibleData(null, cp, Rect.Empty));
1855Rect boundingRect = (data.Rect != Rect.Empty) ? data.Rect : data.Visual.VisualContentBounds;
1857Rect offsetRect = transform.TransformBounds(boundingRect);
1884private void MakeRectVisible(Rect r, bool alwaysCenter)
1886if (r != Rect.Empty)
1889Rect translatedRect = new Rect(HorizontalOffset + r.X, VerticalOffset + r.Y,
1892Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset,
1912private void MakeIPVisible(Rect r)
1914if (r != Rect.Empty && TextEditor != null)
1916Rect viewportRect = new Rect(HorizontalOffset, VerticalOffset,
2653Rect selectionRect = TextView.GetRectangleFromTextPosition(tp);
2656if (selectionRect != Rect.Empty)
3416public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect)
3442public Rect Rect
3449private Rect _rect;
src\Framework\MS\Internal\Documents\ParagraphResult.cs (11)
59internal ParagraphResult(BaseParaClient paraClient, Rect layoutBox, DependencyObject element) : this(paraClient)
128internal Rect LayoutBox { get { return _layoutBox; } }
187protected readonly Rect _layoutBox;
248internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
357internal Rect GetRectangleFromTextPosition(ITextPointer position)
370internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
649internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
713internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
792internal RowParagraphResult(BaseParaClient paraClient, int index, Rect rowRect, RowParagraph rowParagraph)
1091internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
1264internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect, out bool success)
src\Framework\MS\Internal\Documents\TextBoxView.cs (21)
232Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle)
236rectangle = Rect.Empty;
629Rect ITextView.GetRectangleFromTextPosition(ITextPointer position)
631Rect rect;
683Rect ITextView.GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
746Rect rect = new Rect(contentOffset, lineIndex * _lineHeight, _lineMetrics[lineIndex].Width, _lineHeight);
2025private Rect TransformToVisualSpace(Rect rect)
2043IList<Rect> bounds;
2058Rect rect = new Rect(0, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight);
2092Rect rect = TransformToVisualSpace(bounds[i]);
2105Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight);
2129IList<Rect> bounds;
2154Rect rect = new Rect(0, 0, endOfParaGlyphWidth, _lineHeight);
2171Rect rect = bounds[i];
2184Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, 0, endOfParaGlyphWidth, _lineHeight);
2196Rect viewport = this.Viewport;
2999private Rect Viewport
3003return _scrollData == null ? Rect.Empty :
3099Rect viewport = this.Viewport;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (55)
92internal override Rect GetRawRectangleFromTextPosition(ITextPointer position, out Transform transform)
106Rect rect = GetRectangleFromTextPosition(Columns, FloatingElements, position);
133Rect visibleRect = CalculateViewportRect();
176Rect columnBox = columns[columnIndex].LayoutBox;
208private Rect CalculateViewportRect()
210Rect visibleRect = Rect.Empty;
754Rect paragraphBox = paragraph.LayoutBox;
1119private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1124Rect rect = Rect.Empty;
1156private Rect GetRectangleFromTextPosition(ParagraphResult paragraph, ITextPointer position)
1158Rect rect = Rect.Empty;
1168if (rect == Rect.Empty)
1190if (rect == Rect.Empty)
1209if (rect != Rect.Empty)
1246if (rect == Rect.Empty)
1259private Rect GetRectangleFromTextPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position)
1261Rect rect = Rect.Empty;
1285Rect visibleRect)
1306Rect layoutBox = GetLayoutBox(paragraphs[i]);
1353Rect visibleRect)
1379Rect visibleRect,
1396Rect layoutBox = GetLayoutBox(floatingElements[i]);
1397Rect visibleRectThisPara = visibleRect;
1444private static Rect GetLayoutBox(ParagraphResult paragraph)
1450return Rect.Empty;
1844Rect columnBox;
1902Rect nextColumnBox = columns[columnIndex + 1].LayoutBox;
1932Rect nextColumnBox = columns[columnIndex + 1].LayoutBox;
1976Rect paragraphBox;
2033Rect nextParagraphBox = paragraphs[paragraphIndex + 1].LayoutBox;
2063Rect nextParagraphBox = paragraphs[paragraphIndex + 1].LayoutBox;
2107Rect paragraphBox = floatingElements[paragraphIndex].LayoutBox;
2474Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2504Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2582Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2818Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2845Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2883Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2908Rect paragraphBox = paragraphs[paragraphIndex].LayoutBox;
2977Rect paragraphBox = paragraph.LayoutBox;
3347private void TransformToContent(ref Rect rect)
3365private void TransformFromContent(ref Rect rect, out Transform transform)
3370if (rect == Rect.Empty)
3437private static void TransformToSubpage(ref Rect rect, Vector subpageOffset)
3439if (rect == Rect.Empty)
3451private static void TransformFromSubpage(ref Rect rect, Vector subpageOffset)
3453if (rect == Rect.Empty)
3486private Rect GetRectangleFromEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
3503return Rect.Empty;
3516private Rect GetRectangleFromContentEdge(ParagraphResult paragraphResult, ITextPointer textPointer)
3537return Rect.Empty;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (36)
64_inkCanvas.FeedbackAdorner.UpdateBounds(Rect.Empty);
124internal Rect SelectionBounds
128return Rect.Union(GetStrokesBounds(), GetElementsUnionBounds());
148internal void StartFeedbackAdorner(Rect feedbackRect, InkCanvasSelectionHitResult activeSelectionHitResult)
174internal void UpdateFeedbackAdorner(Rect feedbackRect)
189internal void EndFeedbackAdorner(Rect finalRectangle)
198feedbackAdorner.UpdateBounds(Rect.Empty);
290internal void CommitChanges(Rect finalRectangle, bool raiseEvent)
295Rect selectionBounds = SelectionBounds;
412Rect elementBounds = new Rect(0, 0, size.Width, size.Height); // Rect in element space
416Rect newBounds = Rect.Transform(elementBounds, transform);
615IEnumerator<Rect> enumerator = SelectedElementsBoundsEnumerator.GetEnumerator();
618Rect elementRect = enumerator.Current;
666private void CommitMoveChange(Rect finalRectangle)
668Rect selectionBounds = SelectionBounds;
700private void CommitResizeChange(Rect finalRectangle)
702Rect selectionBounds = SelectionBounds;
736private void MoveSelection(Rect previousRect, Rect newRect)
833private Rect GetStrokesBounds()
839SelectedStrokes.GetBounds( ) : Rect.Empty;
850private List<Rect> GetElementsBounds()
852List<Rect> rects = new List<Rect>();
857foreach ( Rect elementRect in SelectedElementsBoundsEnumerator )
870private Rect GetElementsUnionBounds()
874return Rect.Empty;
877Rect elementsBounds = Rect.Empty;
880foreach ( Rect elementRect in SelectedElementsBoundsEnumerator )
937private static Matrix MapRectToRect(Rect target, Rect source)
1081private IEnumerable<Rect> SelectedElementsBoundsEnumerator
1097Rect rect = new Rect(0, 0, size.Width, size.Height); // Rect in element space
1128private Rect _cachedStrokesBounds;
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (6)
331internal override List<Rect> GetRectangles(ContentElement e, int start, int length)
333List<Rect> rectangles = new List<Rect>();
368List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]);
815internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
830Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (6)
333internal override List<Rect> GetRectangles(ContentElement e, int start, int length)
335List<Rect> rectangles = new List<Rect>();
370List<Rect> trackRectangles = PtsHelper.GetRectanglesInTrack(PtsContext, e, start, length, ref arrayColumnDesc[index]);
821internal Geometry GetTightBoundingGeometryFromTextPositions(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
836Rect viewport = new Rect(0, 0, TextDpi.FromTextDpi(_contentRect.du), TextDpi.FromTextDpi(_contentRect.dv));
src\Framework\MS\Internal\PtsHost\ParagraphVisual.cs (4)
30_renderBounds = Rect.Empty;
42internal void DrawBackgroundAndBorder(Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
66internal void DrawBackgroundAndBorderIntoContext(DrawingContext dc, Brush backgroundBrush, Brush borderBrush, Thickness borderThickness, Rect renderBounds, bool isFirstChunk, bool isLastChunk)
164private Rect _renderBounds; // Render bounds of the visual
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (16)
251Rect tableContentRect = GetTableContentRect(mbpInfo).FromTextDpi();
473internal override List<Rect> GetRectangles(ContentElement e, int start, int length)
477List<Rect> rectangles = new List<Rect>();
491rectangles = new List<Rect>();
747Rect tableContentRect = GetTableContentRect(mbpInfo).FromTextDpi();
749Rect rowRect = tableContentRect;
886internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, Rect visibleRect)
1211internal Rect GetRectangleFromRowEndPosition(ITextPointer position)
1243return System.Windows.Rect.Empty;
1869private void DrawColumnBackgrounds(DrawingContext dc, Rect tableContentRect)
1872Rect colRect = tableContentRect;
1949private void DrawRowGroupBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo)
1953Rect rowRect = tableContentRect;
2011private void DrawRowBackgrounds(DrawingContext dc, PTS.FSTABLEROWDESCRIPTION[] arrayTableRowDesc, Rect tableContentRect, MbpInfo mbpInfo)
2014Rect rowRect = tableContentRect;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (47)
295internal override List<Rect> GetRectangles(ContentElement e, int start, int length)
297List<Rect> rectangles = new List<Rect>();
733Rect rect = System.Windows.Rect.Empty;
778internal Rect GetRectangleFromTextPosition(ITextPointer position)
780Rect rect = System.Windows.Rect.Empty;
847internal Geometry GetTightBoundingGeometryFromTextPositions(ITextPointer startPosition, ITextPointer endPosition, double paragraphTopSpace, Rect visibleRect)
1728Rect lbox = new Rect(
1797Rect lbox = new Rect(TextDpi.FromTextDpi(element.urBBox), TextDpi.FromTextDpi(lineDesc.vrStart),
1841ref Rect rect,
1934ref Rect rect,
2032Rect visibleRect)
2106IList<Rect> rectangles = RectanglesFromDcpRangeOfSimpleLine(
2144Rect visibleRect)
2221IList<Rect> rectangles = RectanglesFromDcpRangeOfCompositeLineElement(
2279private List<Rect> RectanglesFromDcpRangeOfSimpleLine(
2286Rect visibleRect)
2288List<Rect> rectangles = null;
2292Rect lineRect = new PTS.FSRECT(lineDesc.urBBox, lineDesc.vrStart, lineDesc.durBBox, lineDesc.dvrAscent + lineDesc.dvrDescent).FromTextDpi();
2308Rect testRect = lineRect;
2316rectangles = new List<Rect>(1);
2341Rect r = rectangles[i];
2390private List<Rect> RectanglesFromDcpRangeOfCompositeLineElement(
2399Rect visibleRect)
2401List<Rect> rectangles = null;
2403Rect elementRect = new PTS.FSRECT(elemDesc.urBBox, lineDesc.vrStart, elemDesc.durBBox, lineDesc.dvrAscent + lineDesc.dvrDescent).FromTextDpi();
2419Rect testRect = elementRect;
2427rectangles = new List<Rect>(1);
2451Rect r = rectangles[i];
2574Rect objectRect = objectParaClient.Rect.FromTextDpi();
4150private List<Rect> GetRectanglesInSimpleLines(
4158List<Rect> rectangles = new List<Rect>();
4178List<Rect> lineRectangles = GetRectanglesInSingleLine(lineDesc, e, localStart, length);
4192private List<Rect> GetRectanglesInSingleLine(
4200List<Rect> rectangles = new List<Rect>();
4340private List<Rect> GetRectanglesInCompositeLines(
4348List<Rect> rectangles = new List<Rect>();
4367List<Rect> lineRectangles = GetRectanglesInCompositeLine(lineDesc, e, localStart, length);
4388private List<Rect> GetRectanglesInCompositeLine(
4394List<Rect> rectangles = new List<Rect>();
4448List<Rect> elementRectangles = line.GetRangeBounds(localStart, localEnd - localStart, TextDpi.FromTextDpi(element.urStart), TextDpi.FromTextDpi(lineDesc.vrStart));
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (20)
58protected override Rect GetBoundingRectangleCore()
65return Rect.Empty;
76return Rect.Empty;
84return Rect.Empty;
87Rect rectElement = geometry.Bounds;
88Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource);
89Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource);
90Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
96return Rect.Empty;
139Rect rectElement = CalculateVisibleRect(textView, textElement, textElement.ContentStart, endPosition);
140Rect rectRoot = PointUtil.ElementToRoot(rectElement, textView.RenderScope, presentationSource);
141Rect rectClient = PointUtil.RootToClient(rectRoot, presentationSource);
142Rect rectScreen = PointUtil.ClientToScreen(rectClient, hwndSource);
174if (CalculateVisibleRect(textView, textElement, textElement.ContentStart, textElement.ContentEnd) == Rect.Empty)
187private Rect CalculateVisibleRect(ITextView textView, TextElement textElement, TextPointer startPointer, TextPointer endPointer)
190Rect visibleRect = (geometry != null) ? geometry.Bounds : Rect.Empty;
192while (visual != null && visibleRect != Rect.Empty)
202Rect rectBounds = VisualTreeHelper.GetClip(visual).Bounds;
210return Rect.Empty;
src\Framework\System\Windows\Controls\DataGrid.cs (6)
6448Rect rowBounds = new Rect(new Point(), row.RenderSize);
6472Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize);
6559private static bool CalculateCellDistance(FrameworkElement cell, DataGridRow rowOwner, Panel itemsHost, Rect itemsHostBounds, bool isMouseInCorner, out double distance)
6562Rect cellBounds = new Rect(new Point(), cell.RenderSize);
6578Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize);
6670Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
src\Framework\System\Windows\Controls\TextBlock.cs (22)
92ReadOnlyCollection<Rect> IContentHost.GetRectangles(ContentElement child)
1733Rect r = new Rect(new Point(), RenderSize);
1827protected virtual ReadOnlyCollection<Rect> GetRectanglesCore(ContentElement child)
1838return new ReadOnlyCollection<Rect>(new List<Rect>(0));
1848return new ReadOnlyCollection<Rect>(new List<Rect>(0));
1855return new ReadOnlyCollection<Rect>(new List<Rect>(0));
1871return new ReadOnlyCollection<Rect>(new List<Rect>(0));
1891List<Rect> rectangles = new List<Rect>();
1926List<Rect> lineBounds = line.GetRangeBounds(boundStart, boundEnd - boundStart, xOffset, yOffset);
1940return new ReadOnlyCollection<Rect>(rectangles);
2155Rect layoutBox = new Rect(contentOffset.X + lineMetrics.Start, contentOffset.Y + lineOffset, lineMetrics.Width, lineMetrics.Height);
2259internal Rect GetRectangleFromTextPosition(ITextPointer orientedPosition)
2288Rect rect = Rect.Empty;
2424IList<Rect> aryTextBounds = line.GetRangeBounds(dcpStart, dcpEnd - dcpStart, contentOffset.X, contentOffset.Y + lineOffset);
2433Rect rect = aryTextBounds[j];
3477ReadOnlyCollection<Rect> rects = textBlock.GetRectanglesCore(child);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (63)
1159Rect elementRect;
1433public Rect MakeVisible(Visual visual, Rect rectangle)
1438Rect newRect = new Rect();
1439Rect originalRect = rectangle;
1449return Rect.Empty;
2151Rect viewport = Rect.Empty, extendedViewport = Rect.Empty;
3338Rect rcChild = new Rect(arrangeSize);
3379Rect rcChildBeforeViewport = rcChild;
3906Rect viewport = _viewport;
3907Rect currentExtendedViewport = _extendedViewport;
3908Rect estimatedExtendedViewport = Rect.Empty;
4234ref Rect viewport,
4237out Rect extendedViewport)
4590Rect viewport,
4626private Rect ExtendViewport(
4629Rect viewport,
4644Rect extendedViewport = viewport;
4874private void CoerceScrollingViewportOffset(ref Rect viewport, Size extent, bool isHorizontal)
4902ref Rect viewport,
4915ref Rect viewport,
4929ref Rect viewport,
4937Rect parentViewport = viewport;
5164ref Rect viewport,
5172Rect parentViewport = viewport;
5407Rect viewport,
5546ref Rect viewport,
6332Rect childRect = new Rect(new Point(), child.DesiredSize);
6336Rect itemsRect = transform.TransformBounds(childRect);
6524private bool IsEndOfViewport(bool isHorizontal, Rect viewport, Size stackPixelSizeInViewport)
6536private bool IsViewportEmpty(bool isHorizontal, Rect viewport)
6563Rect parentViewport,
6574out Rect childViewport,
6738Rect childViewport,
6786Rect childItemsViewport = childViewport;
6823Rect childHeaderViewport = childViewport;
6917Rect childViewport,
7001Rect adjustedChildViewport = childViewport;
7064Rect childViewport,
7948Rect viewport = new Rect();
8022ref Rect viewport,
8046Rect childViewport = Rect.Empty;
8253ref Rect rcChild,
8401ref Rect rcChild,
8441ref Rect rcChild,
9444Rect viewport,
10303Rect viewport,
11015private void MakeVisiblePhysicalHelper(Rect r, ref Vector newOffset, ref Rect newRect, bool isHorizontal, ref bool alignTop, ref bool alignBottom)
11072private void MakeVisibleLogicalHelper(int childIndex, Rect r, ref Vector newOffset, ref Rect newRect, ref bool alignTop, ref bool alignBottom)
11564private Rect _viewport;
11570private Rect _extendedViewport;
11787public Rect Viewport; // in local coordinates
11792public FirstContainerInformation(ref Rect viewport, DependencyObject firstContainer, int firstItemIndex, double firstItemOffset)
12711internal Rect _viewport;
12713internal Rect _extendedViewport;
12782private static void WriteRect(BinaryWriter writer, ref Rect rect)
12815internal Rect _arrangeRect;
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (11)
430Rect alignmentBox = glyphRun.ComputeAlignmentBox();
477Rect boundingRect = new Rect(lastX, alignmentBox.Top, advWidth + advFont, alignmentBox.Height);
506Rect boundingRect = new Rect(lastX, alignmentBox.Top, alignmentBox.Right-lastX, alignmentBox.Height);
519private void _CreateTextRun(Rect boundingRect, GeneralTransform trans, Glyphs glyphs, FixedNode node, int startIndex, int endIndex)
566Rect textRunRect = textRun.BoundingRect;
567Rect fixedBlockRect = _currentFixedBlock.BoundingRect;
599Rect textRunRect = textRun.BoundingRect;
600Rect fixedBlockRect = fixedBlock.BoundingRect;
742private bool _IsSpatiallyCombinable(Rect rect1, Rect rect2, double inflateH, double inflateV)
926internal bool _ProcessFilledRect(Matrix transform, Rect bounds)
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (4)
38private FixedSOMTextRun(Rect boundingRect, GeneralTransform trans, FixedNode fixedNode, int startIndex, int endIndex) : base(fixedNode, startIndex, endIndex, trans)
54Rect thisRect = this.BoundingRect;
55Rect otherRect = otherRun.BoundingRect;
101public static FixedSOMTextRun Create(Rect boundingRect, GeneralTransform transform, Glyphs glyphs, FixedNode fixedNode, int startIndex, int endIndex, bool allowReverseGlyphs)
src\Framework\System\Windows\FrameworkElement.cs (20)
3302BringIntoView( /*RenderSize*/ Rect.Empty);
3308public void BringIntoView(Rect targetRectangle)
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);
4527protected sealed override void ArrangeCore(Rect finalRect)
4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value);
4921Rect inkRectTransformed = new Rect();
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);
5250Rect inkRectTransformed = Rect.Transform(new Rect(inkSize), ltd.Transform.Value);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (34)
636Rect desiredRect = Rect.Empty;
638IEnumerator<Rect> enumerator = _contentRects.GetEnumerator();
646Rect rect = enumerator.Current;
663Rect rect = enumerator.Current;
745ReadOnlyCollection<Rect> oldRects = _contentRects;
808private ReadOnlyCollection<Rect> _contentRects;
2459internal static Rect GetRectangle(DependencyObject element)
2514ReadOnlyCollection<Rect> rects = parentICH.GetRectangles(ce);
2515IEnumerator<Rect> enumerator = rects.GetEnumerator();
2519Rect rect = enumerator.Current;
2535Rect rectElement = uiElement3D.Visual2DContentBounds;
2544return Rect.Empty;
2552private Rect GetRepresentativeRectangle(DependencyObject element)
2554Rect rect = GetRectangle(element);
2561Rect itemsHostRect = GetRectangle(itemsHost);
2562if (itemsHostRect != Rect.Empty)
2571Rect headerRect = GetRectangle(header);
2628private double GetPerpDistance(Rect sourceRect, Rect targetRect, FocusNavigationDirection direction)
2652private double GetDistance(Rect sourceRect, Rect targetRect, FocusNavigationDirection direction)
2694private bool IsInDirection(Rect fromRect, Rect toRect, FocusNavigationDirection direction)
2748private bool IsInRange(DependencyObject sourceElement, DependencyObject targetElement, Rect sourceRect, Rect targetRect, FocusNavigationDirection direction, double startRange, double endRange)
2926Rect sourceRect,
2935Rect resultRect = Rect.Empty;
2944Rect currentRect = GetRepresentativeRectangle(currElement);
2947if (currentRect != Rect.Empty)
3012Rect sourceRect = searchInsideContainer ? GetRectangle(container)
3089Rect sourceRect = new Rect(0, 0, 0, 0);
3123Rect currentRect;
src\Framework\System\Windows\Shapes\Shape.cs (5)
547internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds)
558internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds)
583internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds,
713Rect bounds = geometry.GetRenderBounds(pen);
727internal virtual Rect GetDefiningGeometryBounds()
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (11)
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);
770Rect windowPosition = _GetWindowRect();
1037private Rect _GetWindowRect()
1176Rect r = _GetWindowRect();
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);
1285private static IntPtr _CreateRoundRectRgn(Rect region, double radius)
1313private static void _CreateAndCombineRoundRectRgn(IntPtr hrgnSource, Rect region, double radius)
1444private HT _HitTestNca(Rect windowPosition, Point mousePosition)