6 writes to RenderSize
PresentationCore (1)
System\Windows\UIElement.cs (1)
1250RenderSize = finalRect.Size;
PresentationFramework (5)
MS\Internal\Ink\InkCanvasSelection.cs (2)
402updatedElement.RenderSize = newSize; 416updatedElement.RenderSize = newSize;
System\Windows\FrameworkElement.cs (3)
4531RenderSize = inkSize; 4707RenderSize = innerInkSize; 4710RenderSize = 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)
669Size 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)
792Size newSize = root.RenderSize; 1341NativeMethods.RECT rect = AdjustWindowSize(rootUIElement.RenderSize);
System\Windows\SizeChangedInfo.cs (1)
58get { return _element.RenderSize; }
System\Windows\UIElement.cs (9)
866Size oldSize = RenderSize; 888sizeChanged = markForSizeChangedIfNeeded(oldSize, RenderSize); 988xLines.Add(this.RenderSize.Width); 996if(!DoubleUtil.AreClose(xLines[lastGuideline], this.RenderSize.Width)) 997xLines[lastGuideline] = this.RenderSize.Width; 1005yLines.Add(this.RenderSize.Height); 1013if(!DoubleUtil.AreClose(yLines[lastGuideline], this.RenderSize.Height)) 1014yLines[lastGuideline] = this.RenderSize.Height; 3327RectangleGeometry rect = new RectangleGeometry(new Rect(RenderSize));
PresentationFramework (186)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
302rectGeometry = 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)
496context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 745suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 1521double width = GetWrappingWidth(this.RenderSize.Width); 1699double width = GetWrappingWidth(this.RenderSize.Width); 1977point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 1995rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2826double 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)
411parentTransform.TryTransform(new Point(childElement.RenderSize.Width, 0), out elementPoints.UpperRight); 412parentTransform.TryTransform(new Point(0, childElement.RenderSize.Height), out elementPoints.LowerLeft); 413parentTransform.TryTransform(new Point(childElement.RenderSize.Width, childElement.RenderSize.Height), out elementPoints.LowerRight);
MS\Internal\LayoutDump.cs (1)
248DumpSize(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)
435new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 463new Point(halfThickness, RenderSize.Height)); 496new Point(RenderSize.Width - halfThickness, 0), 497new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 530new Point(RenderSize.Width, halfThickness)); 561new Point(0, RenderSize.Height - halfThickness), 562new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 581ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 582UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 586ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 587RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 593ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
System\Windows\Controls\Canvas.cs (1)
339return new RectangleGeometry(new Rect(RenderSize));
System\Windows\Controls\ComboBox.cs (9)
897Viewbox = new Rect(_clonedElement.RenderSize), 901Viewport = new Rect(_clonedElement.RenderSize) 920visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 927Width = _clonedElement.RenderSize.Width, 928Height = _clonedElement.RenderSize.Height 960rect.Width = _clonedElement.RenderSize.Width; 961rect.Height = _clonedElement.RenderSize.Height; 964visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 965visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
System\Windows\Controls\DataGrid.cs (5)
6399Rect rowBounds = new Rect(new Point(), row.RenderSize); 6423Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6513Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6529Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6621Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
System\Windows\Controls\DataGridCell.cs (4)
855Rect rect = new Rect(new Size(thickness, RenderSize.Height)) 857X = RenderSize.Width - thickness 866Rect rect = new Rect(new Size(RenderSize.Width, thickness)) 868Y = RenderSize.Height - thickness
System\Windows\Controls\DocumentViewer.cs (1)
1317Rect gridRect = Rect.Transform(new Rect(grid.RenderSize),
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1119targetRect = 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)
258Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\ItemsControl.cs (4)
2598Rect elementBounds = new Rect(new Point(), element.RenderSize); 2972Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 2973Rect elementBounds = new Rect(new Point(), element.RenderSize); 3336Rect 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); 1471Rect r = new Rect(new Point(), RenderSize); 1493Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\Panel.cs (1)
65Size renderSize = RenderSize;
System\Windows\Controls\PopupControlService.cs (1)
859Rect 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)
478Rect rect = new Rect(new Size(RenderSize.Width, thickness)) 480Y = RenderSize.Height - thickness
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
178RectangleGeometry clip = new RectangleGeometry(new Rect(RenderSize)); 683height = _draggingSrcColumnHeader.RenderSize.Height; 687height = Math.Max(_draggingSrcColumnHeader.RenderSize.Height, _columnHeaderDragIndicator.Height); 975headerEndX = headerStartX + currentHeader.RenderSize.Width;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
291Rect rect = new Rect(new Size(RenderSize.Width, thickness)) 293Y = RenderSize.Height - thickness
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1151targetRect = new Rect(targetObject.RenderSize); 1155targetRect.IntersectsWith(new Rect(this.RenderSize));
System\Windows\Controls\Primitives\Popup.cs (4)
2134childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.RenderSize)); 2344placementRect = new Rect(0.0, 0.0, target.RenderSize.Width, target.RenderSize.Height); 2388Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize));
System\Windows\Controls\Primitives\PopupRoot.cs (2)
328double width = _adornerDecorator.RenderSize.Width; 333double 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)
2243targetRect = new Rect(uie.RenderSize); 2270rcNew.Intersect(new Rect(uie.RenderSize));
System\Windows\Controls\SinglePageViewer.cs (1)
838pageRect = new Rect(pageViews[index].RenderSize);
System\Windows\Controls\Slider.cs (4)
969trackSize = Track.RenderSize; 970thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d); 1042Size trackSize = Track.RenderSize; 1043Size thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d);
System\Windows\Controls\TextAdaptor.cs (1)
335Rect visibleRect = new Rect(textView.RenderScope.RenderSize);
System\Windows\Controls\TextBlock.cs (25)
1489ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1501double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1502Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1523double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1630Rect r = new Rect(new Point(), RenderSize); 1658double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1659Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1786double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1790Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2032double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2033Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2069double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2115double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2116Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2172double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2173Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2272double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2273Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2400double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2484double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2592double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3147double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 3403double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3404Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
System\Windows\Controls\ToolBarTray.cs (18)
330new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 672if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Width - shrinkAmount, toolBar.MinLength)) 674toolBar.Width = toolBar.RenderSize.Width - shrinkAmount; 680shrinkAmount -= toolBar.RenderSize.Width - toolBar.MinLength; 689if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Height - shrinkAmount, toolBar.MinLength)) 691toolBar.Height = toolBar.RenderSize.Height - shrinkAmount; 697shrinkAmount -= toolBar.RenderSize.Height - toolBar.MinLength; 720if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Width + expandAmount, toolBar.MaxLength)) 722toolBar.Width = toolBar.RenderSize.Width + expandAmount; 728expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Width; 737if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Height + expandAmount, toolBar.MaxLength)) 739toolBar.Height = toolBar.RenderSize.Height + expandAmount; 745expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Height; 782toolBarOffset += fHorizontal ? currentToolBar.RenderSize.Width : currentToolBar.RenderSize.Height; // points at the end of currentToolBar 789currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position); 791currentToolBar.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); 226return !DoubleUtil.AreClose(AdornedElement.RenderSize, oldSize);
System\Windows\Documents\AdornerLayer.cs (2)
727size = element.RenderSize; 978matrix = new Matrix(-1.0, 0.0, 0.0, 1.0, adorner.RenderSize.Width, 0.0);
System\Windows\Documents\FixedPage.cs (2)
152new Rect(0, 0, RenderSize.Width, RenderSize.Height));
System\Windows\Documents\FixedSOMImage.cs (1)
60Rect sourceRect = new Rect(image.RenderSize);
System\Windows\FrameworkElement.cs (12)
3335return fe.RenderSize.Width; 3358return RenderSize.Width; 3380return fe.RenderSize.Height; 3403return RenderSize.Height; 3945return new MatrixTransform(-1.0, 0.0, 0.0, 1.0, RenderSize.Width, 0.0); 4529Size oldRenderSize = RenderSize; 4701Size oldRenderSize = RenderSize; 4710RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4891Size inkSize = this.RenderSize; 5199if (!AreTransformsClean || !DoubleUtil.AreClose(RenderSize, oldRenderSize)) 5234Size inkSize = this.RenderSize; 5289Size renderSize = this.RenderSize;
System\Windows\Input\KeyboardNavigation.cs (6)
543desiredSize = AdornedElement.RenderSize; 743return !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)
390Rect rectElement = new Rect(RenderSize); 720return new Rect(RenderSize); 785Rect rectElement = new Rect(RenderSize);
System\Windows\SizeChangedEventArgs.cs (1)
46get { return _element.RenderSize; }
System\Windows\Window.cs (2)
4996(mousePositionWRTResizeGripControl.X > _resizeGripControl.RenderSize.Width) || 4997(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)
841double width = this.RenderSize.Width; 849double 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)
203horizontalPosition += (placementTarget.RenderSize.Width / 2); 207horizontalPosition += placementTarget.RenderSize.Width; 256verticalPosition += (placementTarget.RenderSize.Height / 2); 260verticalPosition += placementTarget.RenderSize.Height;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1605return popupPlacementTarget.RenderSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
555Viewbox = new Rect(_clonedElement.RenderSize), 559Viewport = new Rect(_clonedElement.RenderSize) 570visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 577Width = _clonedElement.RenderSize.Width, 578Height = _clonedElement.RenderSize.Height 611rect.Width = _clonedElement.RenderSize.Width; 612rect.Height = _clonedElement.RenderSize.Height; 615visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 616visualBrush.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)
1721DoubleUtil.LessThanOrClose(horizontalOffset, ribbonPopupChild.RenderSize.Width)) 1726e.KeyTipVerticalOffset = ribbonPopupChild.RenderSize.Height + popupChildOrigin.Y + KeyTipVerticalOffsetDelta;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1115DoubleUtil.LessThanOrClose(position.X, element.RenderSize.Width) && 1116DoubleUtil.LessThanOrClose(position.Y, element.RenderSize.Height))
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
1263Point popupBottomRightCorner = popupChild.PointToScreen(new Point(popupChild.RenderSize.Width, popupChild.RenderSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
763Rect itemBounds = new Rect(new Point(), RenderSize);