6 writes to RenderSize
PresentationCore (1)
System\Windows\UIElement.cs (1)
1263RenderSize = finalRect.Size;
PresentationFramework (5)
MS\Internal\Ink\InkCanvasSelection.cs (2)
414updatedElement.RenderSize = newSize; 428updatedElement.RenderSize = newSize;
System\Windows\FrameworkElement.cs (3)
4551RenderSize = inkSize; 4727RenderSize = innerInkSize; 4730RenderSize = 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)
330renderHeight = ((UIElement)border).RenderSize.Height; 334renderHeight = item.RenderSize.Height; 337var croppedRenderWidth = Math.Min(item.RenderSize.Width, SymbolTree.RenderSize.Width / 4);
PresentationCore (19)
MS\Internal\Automation\ElementUtil.cs (2)
134double height = element.RenderSize.Height; 135double width = element.RenderSize.Width;
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
199Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize); 270Rect boundingRect = new Rect(owner.RenderSize); 516Rect rectElement = new Rect(new Point(0, 0), _owner.RenderSize);
System\Windows\Input\ManipulationLogic.cs (1)
675Size renderSize = container.RenderSize;
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
268_rc = new Rect(new Point(), _element.RenderSize);// _element.GetContentBoundingBox();
System\Windows\InterOp\HwndSource.cs (2)
798Size newSize = root.RenderSize; 1358NativeMethods.RECT rect = AdjustWindowSize(rootUIElement.RenderSize);
System\Windows\SizeChangedInfo.cs (1)
61get { return _element.RenderSize; }
System\Windows\UIElement.cs (9)
875Size oldSize = RenderSize; 897sizeChanged = markForSizeChangedIfNeeded(oldSize, RenderSize); 997xLines.Add(this.RenderSize.Width); 1005if(!DoubleUtil.AreClose(xLines[lastGuideline], this.RenderSize.Width)) 1006xLines[lastGuideline] = this.RenderSize.Width; 1014yLines.Add(this.RenderSize.Height); 1022if(!DoubleUtil.AreClose(yLines[lastGuideline], this.RenderSize.Height)) 1023yLines[lastGuideline] = this.RenderSize.Height; 3346RectangleGeometry rect = new RectangleGeometry(new Rect(RenderSize));
PresentationFramework (186)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
306rectGeometry = new RectangleGeometry(new Rect(0, 0, RenderSize.Width, RenderSize.Height));
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1606Size pageSize = parent.RenderSize;
MS\Internal\Documents\MultiPageTextView.cs (6)
444else if (DoubleUtil.GreaterThan(point.X, _viewer.RenderSize.Width)) 460else if (DoubleUtil.GreaterThan(point.Y, _viewer.RenderSize.Height)) 918position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, pageTextView.RenderScope.RenderSize.Height), true); 1078textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1092textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1395newPosition = pageTextView.GetTextPositionFromPoint((Point)pageTextView.RenderScope.RenderSize, true);
MS\Internal\Documents\TextBoxView.cs (8)
540context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 789suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 1563double width = GetWrappingWidth(this.RenderSize.Width); 1741double width = GetWrappingWidth(this.RenderSize.Width); 2019point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2037rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2868double width = GetWrappingWidth(this.RenderSize.Width);
MS\Internal\Ink\InkCanvasSelection.cs (4)
394size = originalElement.RenderSize; 412Size newSize = originalElement.RenderSize; 426Size newSize = originalElement.RenderSize; 1083Size size = element.RenderSize;
MS\Internal\Ink\LassoSelectionBehavior.cs (4)
417parentTransform.TryTransform(new Point(childElement.RenderSize.Width, 0), out elementPoints.UpperRight); 418parentTransform.TryTransform(new Point(0, childElement.RenderSize.Height), out elementPoints.LowerLeft); 419parentTransform.TryTransform(new Point(childElement.RenderSize.Width, childElement.RenderSize.Height), out elementPoints.LowerRight);
MS\Internal\LayoutDump.cs (1)
249DumpSize(writer, "ComputedSize", element.RenderSize);
MS\Internal\Text\Line.cs (1)
71_wrappingWidth = _owner.RenderSize.Width;
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (1)
240boundingRect = new Rect(textView.RenderScope.RenderSize);
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
196Size desiredSize = AdornedElement.RenderSize;
System\Windows\Controls\Border.cs (16)
437new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 465new Point(halfThickness, RenderSize.Height)); 496new Point(RenderSize.Width - halfThickness, 0), 497new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 528new Point(RenderSize.Width, halfThickness)); 557new Point(0, RenderSize.Height - halfThickness), 558new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 577ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 578UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 582ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 583RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 589ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
System\Windows\Controls\Canvas.cs (1)
349return new RectangleGeometry(new Rect(RenderSize));
System\Windows\Controls\ComboBox.cs (9)
914visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 918visualBrush.Viewport = new Rect(_clonedElement.RenderSize); 936visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 942rect.Width = _clonedElement.RenderSize.Width; 943rect.Height = _clonedElement.RenderSize.Height; 974rect.Width = _clonedElement.RenderSize.Width; 975rect.Height = _clonedElement.RenderSize.Height; 978visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 979visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
System\Windows\Controls\DataGrid.cs (5)
6443Rect rowBounds = new Rect(new Point(), row.RenderSize); 6467Rect itemsHostBounds = new Rect(new Point(), itemsHost.RenderSize); 6557Rect cellBounds = new Rect(new Point(), cell.RenderSize); 6573Rect rowBounds = new Rect(new Point(), rowOwner.RenderSize); 6665Rect bounds = new Rect(new Point(), itemsHost.RenderSize);
System\Windows\Controls\DataGridCell.cs (4)
874Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 875rect.X = RenderSize.Width - thickness; 883Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 884rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\DocumentViewer.cs (1)
1383Rect gridRect = Rect.Transform(new Rect(grid.RenderSize),
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1130targetRect = new Rect(targetUIElement.RenderSize);
System\Windows\Controls\GridViewRowPresenter.cs (2)
486Rect viewPortBounds = new Rect(new Point(), _viewPort.RenderSize); 487Rect itemBounds = new Rect(new Point(), _viewItem.RenderSize);
System\Windows\Controls\Image.cs (1)
265dc.DrawImage(imageSource, new Rect(new Point(), RenderSize));
System\Windows\Controls\InkCanvas.cs (1)
260Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\ItemsControl.cs (4)
2637Rect elementBounds = new Rect(new Point(), element.RenderSize); 3011Rect viewPortBounds = new Rect(new Point(), viewPort.RenderSize); 3012Rect elementBounds = new Rect(new Point(), element.RenderSize); 3375Rect bounds = new Rect(new Point(), relativeTo.RenderSize);
System\Windows\Controls\MediaElement.cs (1)
743drawingContext.DrawVideo(_helper.Player, new Rect(new Point(), RenderSize));
System\Windows\Controls\MenuItem.cs (3)
865Rect itemBounds = new Rect(new Point(), RenderSize); 1485Rect r = new Rect(new Point(), RenderSize); 1507Rect r = new Rect(new Point(), RenderSize);
System\Windows\Controls\Panel.cs (1)
72Size renderSize = RenderSize;
System\Windows\Controls\PopupControlService.cs (1)
862Rect rectElement = new Rect(new Point(0, 0), ownerUIE.RenderSize);
System\Windows\Controls\Primitives\BulletDecorator.cs (4)
205new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 287bulletSize = bullet.RenderSize; 379return element.RenderSize.Height;
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
486Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 487rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
183RectangleGeometry clip = new RectangleGeometry(new Rect(RenderSize)); 694height = _draggingSrcColumnHeader.RenderSize.Height; 698height = Math.Max(_draggingSrcColumnHeader.RenderSize.Height, _columnHeaderDragIndicator.Height); 985headerEndX = headerStartX + currentHeader.RenderSize.Width;
System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
295Rect rect = new Rect(new Size(RenderSize.Width, thickness)); 296rect.Y = RenderSize.Height - thickness;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1178targetRect = new Rect(targetObject.RenderSize); 1182targetRect.IntersectsWith(new Rect(this.RenderSize));
System\Windows\Controls\Primitives\Popup.cs (4)
2128childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.RenderSize)); 2338placementRect = new Rect(0.0, 0.0, target.RenderSize.Width, target.RenderSize.Height); 2382Point[] interestPoints = InterestPointsFromRect(new Rect(new Point(), child.RenderSize));
System\Windows\Controls\Primitives\PopupRoot.cs (2)
325double width = _adornerDecorator.RenderSize.Width; 330double height = _adornerDecorator.RenderSize.Height;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
517return new RectangleGeometry(new Rect(RenderSize));
System\Windows\Controls\Primitives\Track.cs (2)
76val = Value + ValueFromDistance(pt.X - ThumbCenterOffset, pt.Y - (RenderSize.Height * 0.5)); 80val = Value + ValueFromDistance(pt.X - (RenderSize.Width * 0.5), pt.Y - ThumbCenterOffset);
System\Windows\Controls\ScrollViewer.cs (2)
2252targetRect = new Rect(uie.RenderSize); 2279rcNew.Intersect(new Rect(uie.RenderSize));
System\Windows\Controls\SinglePageViewer.cs (1)
839pageRect = new Rect(pageViews[index].RenderSize);
System\Windows\Controls\Slider.cs (4)
996trackSize = Track.RenderSize; 997thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d); 1069Size trackSize = Track.RenderSize; 1070Size thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d);
System\Windows\Controls\TextAdaptor.cs (1)
347Rect visibleRect = new Rect(textView.RenderScope.RenderSize);
System\Windows\Controls\TextBlock.cs (25)
1507ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1519double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1520Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1541double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 1648Rect r = new Rect(new Point(), RenderSize); 1676double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1677Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 1804double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1808Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2053double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2054Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2090double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2136double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2137Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2193double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2194Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2293double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2294Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth); 2421double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2505double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2613double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3166double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 3422double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3423Vector contentOffset = CalcContentOffset(RenderSize, wrappingWidth);
System\Windows\Controls\ToolBarTray.cs (18)
338new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 683if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Width - shrinkAmount, toolBar.MinLength)) 685toolBar.Width = toolBar.RenderSize.Width - shrinkAmount; 691shrinkAmount -= toolBar.RenderSize.Width - toolBar.MinLength; 700if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Height - shrinkAmount, toolBar.MinLength)) 702toolBar.Height = toolBar.RenderSize.Height - shrinkAmount; 708shrinkAmount -= toolBar.RenderSize.Height - toolBar.MinLength; 731if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Width + expandAmount, toolBar.MaxLength)) 733toolBar.Width = toolBar.RenderSize.Width + expandAmount; 739expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Width; 748if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Height + expandAmount, toolBar.MaxLength)) 750toolBar.Height = toolBar.RenderSize.Height + expandAmount; 756expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Height; 793toolBarOffset += fHorizontal ? currentToolBar.RenderSize.Width : currentToolBar.RenderSize.Height; // points at the end of currentToolBar 800currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position); 802currentToolBar.Height = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Height - toolBarOffset + position);
System\Windows\Documents\Adorner.cs (3)
74desiredSize = new Size(AdornedElement.RenderSize.Width, AdornedElement.RenderSize.Height); 230return !DoubleUtil.AreClose(AdornedElement.RenderSize, oldSize);
System\Windows\Documents\AdornerLayer.cs (2)
729size = element.RenderSize; 978matrix = new Matrix(-1.0, 0.0, 0.0, 1.0, adorner.RenderSize.Width, 0.0);
System\Windows\Documents\FixedPage.cs (2)
158new Rect(0, 0, RenderSize.Width, RenderSize.Height));
System\Windows\Documents\FixedSOMImage.cs (1)
62Rect sourceRect = new Rect(image.RenderSize);
System\Windows\FrameworkElement.cs (12)
3355return fe.RenderSize.Width; 3378return RenderSize.Width; 3400return fe.RenderSize.Height; 3423return RenderSize.Height; 3965return new MatrixTransform(-1.0, 0.0, 0.0, 1.0, RenderSize.Width, 0.0); 4549Size oldRenderSize = RenderSize; 4721Size oldRenderSize = RenderSize; 4730RenderSize = UIElement.RoundLayoutSize(RenderSize, dpi.DpiScaleX, dpi.DpiScaleY); 4909Size inkSize = this.RenderSize; 5213if (!AreTransformsClean || !DoubleUtil.AreClose(RenderSize, oldRenderSize)) 5246Size inkSize = this.RenderSize; 5301Size renderSize = this.RenderSize;
System\Windows\Input\KeyboardNavigation.cs (6)
551desiredSize = AdornedElement.RenderSize; 749return !DoubleUtil.AreClose(AdornedElement.RenderSize, oldSize); 2391double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right; 2392double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom; 2395x = uiElement.RenderSize.Width * 0.5; 2400y = uiElement.RenderSize.Height * 0.5;
System\Windows\Interop\HwndHost.cs (3)
395Rect rectElement = new Rect(RenderSize); 726return new Rect(RenderSize); 791Rect rectElement = new Rect(RenderSize);
System\Windows\SizeChangedEventArgs.cs (1)
49get { return _element.RenderSize; }
System\Windows\Window.cs (2)
5031(mousePositionWRTResizeGripControl.X > _resizeGripControl.RenderSize.Width) || 5032(mousePositionWRTResizeGripControl.Y > _resizeGripControl.RenderSize.Height))
PresentationFramework.Aero (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
38Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Aero2 (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
38Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.AeroLite (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
38Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (5)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
842double width = this.RenderSize.Width; 850double height = this.RenderSize.Height;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
48Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
78Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
34Size size = RenderSize;
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (2)
105new Size(RenderSize.Width, RenderSize.Height));
System.Windows.Controls.Ribbon (25)
Microsoft\Windows\Controls\KeyTipAdorner.cs (4)
209horizontalPosition += (placementTarget.RenderSize.Width / 2); 213horizontalPosition += placementTarget.RenderSize.Width; 262verticalPosition += (placementTarget.RenderSize.Height / 2); 266verticalPosition += placementTarget.RenderSize.Height;
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1627return popupPlacementTarget.RenderSize.Width;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (9)
557visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 561visualBrush.Viewport = new Rect(_clonedElement.RenderSize); 571visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 577rect.Width = _clonedElement.RenderSize.Width; 578rect.Height = _clonedElement.RenderSize.Height; 610rect.Width = _clonedElement.RenderSize.Width; 611rect.Height = _clonedElement.RenderSize.Height; 614visualBrush.Viewbox = new Rect(_clonedElement.RenderSize); 615visualBrush.Viewport = new Rect(_clonedElement.RenderSize);
Microsoft\Windows\Controls\Ribbon\RibbonDropDownHelper.cs (4)
60popupRoot.PointToScreen(new Point(popupRoot.RenderSize.Width, popupRoot.RenderSize.Height))); 169targetElement.PointToScreen(new Point(targetElement.RenderSize.Width, targetElement.RenderSize.Height)));
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (2)
1733DoubleUtil.LessThanOrClose(horizontalOffset, ribbonPopupChild.RenderSize.Width)) 1738e.KeyTipVerticalOffset = ribbonPopupChild.RenderSize.Height + popupChildOrigin.Y + KeyTipVerticalOffsetDelta;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1122DoubleUtil.LessThanOrClose(position.X, element.RenderSize.Width) && 1123DoubleUtil.LessThanOrClose(position.Y, element.RenderSize.Height))
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (2)
1272Point popupBottomRightCorner = popupChild.PointToScreen(new Point(popupChild.RenderSize.Width, popupChild.RenderSize.Height));
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (1)
769Rect itemBounds = new Rect(new Point(), RenderSize);