6 writes to RenderSize
PresentationCore (1)
System\Windows\UIElement.cs (1)
1258RenderSize = finalRect.Size;
PresentationFramework (5)
MS\Internal\Ink\InkCanvasSelection.cs (2)
402updatedElement.RenderSize = newSize; 416updatedElement.RenderSize = newSize;
System\Windows\FrameworkElement.cs (3)
4540RenderSize = inkSize; 4716RenderSize = innerInkSize; 4719RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY);
257 references to RenderSize
Microsoft.CodeAnalysis.EditorFeatures.Wpf (3)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (3)
302top += adornment.RenderSize.Height; 306Canvas.SetLeft(this, _textView.ViewportLeft + _textView.VisualElement.RenderSize.Width - this.RenderSize.Width);
Microsoft.VisualStudio.LanguageServices (4)
DocumentOutline\DocumentOutlineView.xaml.cs (4)
335renderHeight = ((UIElement)border).RenderSize.Height; 339renderHeight = item.RenderSize.Height; 342var croppedRenderWidth = Math.Min(item.RenderSize.Width, SymbolTree.RenderSize.Width / 4);
PresentationCore (19)
MS\Internal\Automation\ElementUtil.cs (2)
119double height = element.RenderSize.Height; 120double width = element.RenderSize.Width;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
190Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 261Rect boundingRect = new Rect(owner.RenderSize); 507Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize);
System\Windows\Input\ManipulationLogic.cs (1)
668Size renderSize = container.RenderSize;
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
259_rc = new Rect(new Point(), _element.RenderSize);// _element.GetContentBoundingBox();
System\Windows\InterOp\HwndSource.cs (2)
786Size newSize = root.RenderSize; 1335NativeMethods.RECT rect = AdjustWindowSize(rootUIElement.RenderSize);
System\Windows\SizeChangedInfo.cs (1)
58get { return _element.RenderSize; }
System\Windows\UIElement.cs (9)
870Size oldSize = RenderSize; 892sizeChanged = markForSizeChangedIfNeeded(oldSize, RenderSize); 992xLines.Add(this.RenderSize.Width); 1000if(!DoubleUtil.AreClose(xLines[lastGuideline], this.RenderSize.Width)) 1001xLines[lastGuideline] = this.RenderSize.Width; 1009yLines.Add(this.RenderSize.Height); 1017if(!DoubleUtil.AreClose(yLines[lastGuideline], this.RenderSize.Height)) 1018yLines[lastGuideline] = this.RenderSize.Height; 3341RectangleGeometry rect = new RectangleGeometry(new Rect(RenderSize));
PresentationFramework (186)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
299rectGeometry = new RectangleGeometry(new Rect(0, 0, RenderSize.Width, RenderSize.Height));
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1596Size pageSize = parent.RenderSize;
MS\Internal\Documents\MultiPageTextView.cs (6)
442else if (DoubleUtil.GreaterThan(point.X, _viewer.RenderSize.Width)) 458else if (DoubleUtil.GreaterThan(point.Y, _viewer.RenderSize.Height)) 916position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, pageTextView.RenderScope.RenderSize.Height), true); 1076textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1090textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1393newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true);
MS\Internal\Documents\TextBoxView.cs (8)
538context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 787suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 1561double width = GetWrappingWidth(this.RenderSize.Width); 1739double width = GetWrappingWidth(this.RenderSize.Width); 2017point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2035rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2866double width = GetWrappingWidth(this.RenderSize.Width);
MS\Internal\Ink\InkCanvasSelection.cs (4)
382size = originalElement.RenderSize; 400Size newSize = originalElement.RenderSize; 414Size newSize = originalElement.RenderSize; 1071Size size = element.RenderSize;
MS\Internal\Ink\LassoSelectionBehavior.cs (4)
408parentTransform.TryTransform(new Point(childElement.RenderSize.Width, 0), out elementPoints.UpperRight); 409parentTransform.TryTransform(new Point(0, childElement.RenderSize.Height), out elementPoints.LowerLeft); 410parentTransform.TryTransform(new Point(childElement.RenderSize.Width, childElement.RenderSize.Height), out elementPoints.LowerRight);
MS\Internal\LayoutDump.cs (1)
246DumpSize(writer, "ComputedSize", element.RenderSize);
MS\Internal\Text\Line.cs (1)
64_wrappingWidth = _owner.RenderSize.Width;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
238boundingRect = new Rect(textView.RenderScope.RenderSize);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
189Size desiredSize = AdornedElement.RenderSize;
System\Windows\Controls\Border.cs (16)
433new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 461new Point(halfThickness, RenderSize.Height)); 492new Point(RenderSize.Width - halfThickness, 0), 493new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 524new Point(RenderSize.Width, halfThickness)); 553new Point(0, RenderSize.Height - halfThickness), 554new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 573ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 574UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 578ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 579RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 585ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
System\Windows\Controls\Canvas.cs (1)
340return new RectangleGeometry(new Rect(RenderSize));
System\Windows\Controls\ComboBox.cs (9)
904visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 908visualBrush.Viewport = new Rect(_clonedElement.RenderSize); 926visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 932rect.Width = _clonedElement.RenderSize.Width; 933rect.Height = _clonedElement.RenderSize.Height; 964rect.Width = _clonedElement.RenderSize.Width; 965rect.Height = _clonedElement.RenderSize.Height; 968visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 969visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
System\Windows\Controls\DataGrid.cs (5)
6440Rect rowBounds = new Rect(new Point(), row.RenderSize); 6464Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6554Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6570Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6662Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
System\Windows\Controls\DataGridCell.cs (4)
867Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 868rect.X = RenderSize.Width - thickness; 876Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 877rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\DocumentViewer.cs (1)
1371Rect gridRect = Rect.Transform(new Rect(grid.RenderSize),
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1127targetRect = new Rect(targetUIElement.RenderSize);
System\Windows\Controls\GridViewRowPresenter.cs (2)
482Rect viewPortBounds = new Rect(new Point(), _viewPort.RenderSize); 483Rect itemBounds = new Rect(new Point(), _viewItem.RenderSize);
System\Windows\Controls\Image.cs (1)
257dc.DrawImage(imageSource, new Rect(new Point(), RenderSize));
System\Windows\Controls\InkCanvas.cs (1)
248Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\ItemsControl.cs (4)
2628Rect elementBounds = new Rect(new Point(), element.RenderSize); 3002Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 3003Rect elementBounds = new Rect(new Point(), element.RenderSize); 3366Rect bounds = new Rect(new Point(), relativeTo.RenderSize);
System\Windows\Controls\MediaElement.cs (1)
736drawingContext.DrawVideo(_helper.Player, new Rect(new Point(), RenderSize));
System\Windows\Controls\MenuItem.cs (3)
855Rect itemBounds = new Rect(new Point(), RenderSize); 1475Rect r = new Rect(new Point(), RenderSize); 1497Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\Panel.cs (1)
65Size renderSize = RenderSize;
System\Windows\Controls\PopupControlService.cs (1)
852Rect rectElement = new Rect(new Point(0, 0), ownerUIE.RenderSize);
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
199new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 281bulletSize = bullet.RenderSize; 373return element.RenderSize.Height;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
481Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 482rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
178RectangleGeometry clip = new RectangleGeometry(new Rect(RenderSize)); 689height = _draggingSrcColumnHeader.RenderSize.Height; 693height = Math.Max(_draggingSrcColumnHeader.RenderSize.Height, _columnHeaderDragIndicator.Height); 980headerEndX = headerStartX + currentHeader.RenderSize.Width;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
291Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 292rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1173targetRect = new Rect(targetObject.RenderSize); 1177targetRect.IntersectsWith(new Rect(this.RenderSize));
System\Windows\Controls\Primitives\Popup.cs (4)
2121childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.RenderSize)); 2331placementRect = new Rect(0.0, 0.0, target.RenderSize.Width, target.RenderSize.Height); 2375Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize));
System\Windows\Controls\Primitives\PopupRoot.cs (2)
316double width = _adornerDecorator.RenderSize.Width; 321double height = _adornerDecorator.RenderSize.Height;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
507return new RectangleGeometry(new Rect(RenderSize));
System\Windows\Controls\Primitives\Track.cs (2)
65val = Value + ValueFromDistance(pt.X - ThumbCenterOffset, pt.Y - (RenderSize.Height * 0.5)); 69val = Value + ValueFromDistance(pt.X - (RenderSize.Width * 0.5), pt.Y - ThumbCenterOffset);
System\Windows\Controls\ScrollViewer.cs (2)
2244targetRect = new Rect(uie.RenderSize); 2271rcNew.Intersect(new Rect(uie.RenderSize));
System\Windows\Controls\SinglePageViewer.cs (1)
836pageRect = new Rect(pageViews[index].RenderSize);
System\Windows\Controls\Slider.cs (4)
985trackSize = Track.RenderSize; 986thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d); 1058Size trackSize = Track.RenderSize; 1059Size thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d);
System\Windows\Controls\TextAdaptor.cs (1)
344Rect visibleRect = new Rect(textView.RenderScope.RenderSize);
System\Windows\Controls\TextBlock.cs (25)
1497ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1509double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1510Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1531double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1638Rect r = new Rect(new Point(), RenderSize); 1666double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1667Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1794double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1798Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2043double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2044Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2080double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2126double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2127Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2183double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2184Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2283double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2284Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2411double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2495double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2603double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3156double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 3412double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3413Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
System\Windows\Controls\ToolBarTray.cs (18)
330new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 675if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Width - shrinkAmount, toolBar.MinLength)) 677toolBar.Width = toolBar.RenderSize.Width - shrinkAmount; 683shrinkAmount -= toolBar.RenderSize.Width - toolBar.MinLength; 692if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Height - shrinkAmount, toolBar.MinLength)) 694toolBar.Height = toolBar.RenderSize.Height - shrinkAmount; 700shrinkAmount -= toolBar.RenderSize.Height - toolBar.MinLength; 723if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Width + expandAmount, toolBar.MaxLength)) 725toolBar.Width = toolBar.RenderSize.Width + expandAmount; 731expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Width; 740if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Height + expandAmount, toolBar.MaxLength)) 742toolBar.Height = toolBar.RenderSize.Height + expandAmount; 748expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Height; 785toolBarOffset += fHorizontal ? currentToolBar.RenderSize.Width : currentToolBar.RenderSize.Height; // points at the end of currentToolBar 792currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position); 794currentToolBar.Height = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Height - toolBarOffset + position);
System\Windows\Documents\Adorner.cs (3)
71desiredSize = new Size(AdornedElement.RenderSize.Width, AdornedElement.RenderSize.Height); 227return !DoubleUtil.AreClose(AdornedElement.RenderSize, oldSize);
System\Windows\Documents\AdornerLayer.cs (2)
725size = element.RenderSize; 974matrix = new Matrix(-1.0, 0.0, 0.0, 1.0, adorner.RenderSize.Width, 0.0);
System\Windows\Documents\FixedPage.cs (2)
150new Rect(0, 0, RenderSize.Width, RenderSize.Height));
System\Windows\Documents\FixedSOMImage.cs (1)
60Rect sourceRect = new Rect(image.RenderSize);
System\Windows\FrameworkElement.cs (12)
3344return fe.RenderSize.Width; 3367return RenderSize.Width; 3389return fe.RenderSize.Height; 3412return RenderSize.Height; 3954return new MatrixTransform(-1.0, 0.0, 0.0, 1.0, RenderSize.Width, 0.0); 4538Size oldRenderSize = RenderSize; 4710Size oldRenderSize = RenderSize; 4719RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4898Size inkSize = this.RenderSize; 5202if (!AreTransformsClean || !DoubleUtil.AreClose(RenderSize, oldRenderSize)) 5235Size inkSize = this.RenderSize; 5290Size renderSize = this.RenderSize;
System\Windows\Input\KeyboardNavigation.cs (6)
541desiredSize = AdornedElement.RenderSize; 739return !DoubleUtil.AreClose(AdornedElement.RenderSize, oldSize); 2381double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right; 2382double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom; 2385x = uiElement.RenderSize.Width * 0.5; 2390y = uiElement.RenderSize.Height * 0.5;
System\Windows\Interop\HwndHost.cs (3)
393Rect rectElement = new Rect(RenderSize); 724return new Rect(RenderSize); 789Rect rectElement = new Rect(RenderSize);
System\Windows\SizeChangedEventArgs.cs (1)
46get { return _element.RenderSize; }
System\Windows\Window.cs (2)
5018(mousePositionWRTResizeGripControl.X > _resizeGripControl.RenderSize.Width) || 5019(mousePositionWRTResizeGripControl.Y > _resizeGripControl.RenderSize.Height))
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
35Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
35Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.AeroLite (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
35Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (5)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
839double width = this.RenderSize.Width; 847double height = this.RenderSize.Height;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
44Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
75Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
31Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
101new Size(RenderSize.Width, RenderSize.Height));
System.Windows.Controls.Ribbon (25)
Microsoft\Windows\Controls\KeyTipAdorner.cs (4)
206horizontalPosition += (placementTarget.RenderSize.Width / 2); 210horizontalPosition += placementTarget.RenderSize.Width; 259verticalPosition += (placementTarget.RenderSize.Height / 2); 263verticalPosition += placementTarget.RenderSize.Height;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1624return popupPlacementTarget.RenderSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
555visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 559visualBrush.Viewport = new Rect(_clonedElement.RenderSize); 569visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 575rect.Width = _clonedElement.RenderSize.Width; 576rect.Height = _clonedElement.RenderSize.Height; 608rect.Width = _clonedElement.RenderSize.Width; 609rect.Height = _clonedElement.RenderSize.Height; 612visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 613visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (4)
54popupRoot.PointToScreen(new Point(popupRoot.RenderSize.Width, popupRoot.RenderSize.Height))); 163targetElement.PointToScreen(new Point(targetElement.RenderSize.Width, targetElement.RenderSize.Height)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1730DoubleUtil.LessThanOrClose(horizontalOffset, ribbonPopupChild.RenderSize.Width)) 1735e.KeyTipVerticalOffset = ribbonPopupChild.RenderSize.Height + popupChildOrigin.Y + KeyTipVerticalOffsetDelta;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1117DoubleUtil.LessThanOrClose(position.X, element.RenderSize.Width) && 1118DoubleUtil.LessThanOrClose(position.Y, element.RenderSize.Height))
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
1269Point popupBottomRightCorner = popupChild.PointToScreen(new Point(popupChild.RenderSize.Width, popupChild.RenderSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
766Rect itemBounds = new Rect(new Point(), RenderSize);