447 instantiations of Size
PresentationCore (37)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (5)
121temp.Size = new Size( 219return new Size( 323return new Size( 569temp.Size = new Size( 814return new Size();
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (1)
31_radii = new Size(nodeShape.Width * 0.5, nodeShape.Height * 0.5);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (1)
967Size ellipseSize = new Size(sizePoint.X / 2/*width*/, sizePoint.Y / 2/*height*/);
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
489Size size = new Size();
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
621_containerSize = new Size();
Core\CSharp\System\Windows\Interop\HwndSource.cs (9)
1262Size sz = new Size(double.PositiveInfinity, double.PositiveInfinity); 1292Size sz = new Size( 1311if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height); 1312else if(_sizeToContent == SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height); 1376return new Size(convertedPt.X, convertedPt.Y); 1682Size sz = new Size( 1711if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y); 1712else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height); 1713else sz = new Size(relevantPt.X, relevantPt.Y);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (4)
235Size from = new Size(); 236Size to = new Size(); 237Size accumulated = new Size(); 238Size foundation = new Size();
Core\CSharp\System\Windows\Media\ArcSegment.cs (1)
194return new Size(0,0);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (1)
282element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
Core\CSharp\System\Windows\Media\DrawingImage.cs (2)
110return new Size(); 115return new Size();
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (2)
269internal static Size s_Size = new Size(); 310new Size(),
Core\CSharp\System\Windows\Media\ImageSource.cs (1)
81return new Size(Width, Height);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
521return new Size(Math.Max(0, GetWidthInternal()),
Core\CSharp\System\Windows\Media\ParsersCommon.cs (1)
694new Size(w, h),
Core\CSharp\System\Windows\Media\VisualBrush.cs (1)
250element.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
Core\CSharp\System\Windows\UIElement.cs (5)
191return new Size(0,0); 654Size desiredSize = new Size(0, 0); 1084return new Size(RoundLayoutValue(size.Width, dpiScaleX), RoundLayoutValue(size.Height, dpiScaleY)); 1244return new Size(0,0); 1326return new Size();
PresentationFramework (303)
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (2)
141Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 147return new Size(0,0);
src\Framework\MS\Internal\AppModel\IconHelper.cs (2)
73s_smallIconSize = new Size(cxSmallIcon, cySmallIcon); 74s_iconSize = new Size(cxIcon, cyIcon);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
884size = new Size(_widthDeviceUnits, _heightDeviceUnits); 892size = new Size(ptLogicalUnits.X, ptLogicalUnits.Y);
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
101newSize = new Size(adornerRect.Width, adornerRect.Height); 107newSize = new Size(0, 0); 162Debug.Assert(_frameSize != new Size(0, 0)); 180private Size _frameSize = new Size(0, 0);
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
90Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 92Size newSize = new Size();
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
155(_child).Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
3266private readonly Size _defaultConstraint = new Size(250.0, 250.0);
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (2)
302new Size(_dropShadowWidth, Math.Max( 0.0, arrangeSize.Height - _dropShadowWidth)) 309new Size(arrangeSize.Width, _dropShadowWidth)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
201Size pageSize = new Size(_document.PageWidth, double.PositiveInfinity);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
860Size pageSize = new Size(_document.PageWidth, _document.PageHeight); 936private static Size _defaultPageSize = new Size(8.5d * 96d, 11.0d * 96d);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (3)
71Size desiredSize = new Size(); 209if (!DoubleUtil.AreClose(_scrollData.Extent, new Size())) 211_scrollData.Extent = new Size();
src\Framework\MS\Internal\Documents\PageCache.cs (2)
276return new Size(0, 0); 937private readonly Size _initialDefaultPageSize = new Size(816, 1056);
src\Framework\MS\Internal\Documents\RowCache.cs (2)
1219pageSize = new Size(0, 0); 1408_rowSize = new Size(0,0);
src\Framework\MS\Internal\Documents\ScrollData.cs (2)
244_viewport = new Size(); 245_extent = new Size();
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
2233desiredSize = new Size(); 2642Size desiredSize = new Size();
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
74Size islandSize = new Size();
src\Framework\MS\Internal\Helper.cs (1)
551return new Size();
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
408size = new Size(frameworkElement.ActualWidth, frameworkElement.ActualHeight);
src\Framework\MS\Internal\LayoutDump.cs (1)
550Size extent = new Size(isi.ExtentWidth, isi.ExtentHeight);
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (1)
87subpageSize = new Size(
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
535StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)),
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (2)
737StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.FromTextDpi(lHeight)), 787StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(lWidth), TextDpi.MaxWidth),
src\Framework\MS\Internal\PtsHost\Line.cs (1)
374desiredSize = inlineObject.UIElementIsland.DoLayout(new Size(_trackWidth, pageHeight), true, true);
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
250return inlineObject.UIElementIsland.DoLayout(new Size(TextDpi.FromTextDpi(_durTrack), pageHeight), true, true);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (2)
1641private Size _calculatedSize = new Size(); 1646private Size _contentSize = new Size();
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
235StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.FromTextDpi(subpageHeight)), 422StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth), 589StructuralCache.CurrentFormatContext.PushNewPageData(new Size(TextDpi.FromTextDpi(subpageWidth), TextDpi.MaxWidth),
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (2)
407UIElementIsland.DoLayout(new Size(elementWidth, elementHeight), false, false); 434Size uiIslandSize = UIElementIsland.DoLayout(new Size(elementWidth, elementHeight), false, true);
src\Framework\MS\Internal\Text\TextDpi.cs (1)
123size = new Size(FromTextDpi(ToTextDpi(size.Width)), FromTextDpi(ToTextDpi(size.Height)));
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
319decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 360decorator.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
200return new Size(0,0);
src\Framework\System\Windows\Controls\Border.cs (9)
222Size mySize = new Size(); 238Size combined = new Size(border.Width + padding.Width, border.Height + padding.Height); 241Size childConstraint = new Size(Math.Max(0.0, constraint.Width - combined.Width), 255mySize = new Size(border.Width + padding.Width, border.Height + padding.Height); 632return new Size(th.Left + th.Right, th.Top + th.Bottom); 739ctx.ArcTo(rightTop, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise, true, false); 751ctx.ArcTo(bottomRight, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise, true, false); 763ctx.ArcTo(leftBottom, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise, true, false); 775ctx.ArcTo(topLeft, new Size(radiusX, radiusY), 0, false, SweepDirection.Clockwise, true, false);
src\Framework\System\Windows\Controls\Canvas.cs (2)
274Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 282return new Size();
src\Framework\System\Windows\Controls\Control.cs (1)
716return new Size(0.0, 0.0);
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
869Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 878Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (12)
57Size measureSize = new Size(); 108Size childMeasureConstraint = new Size(double.PositiveInfinity, constraint.Height); 209return new Size(measureWidth, measureHeight); 229Size measureSize = new Size(); 305childSize = new Size(GetColumnEstimatedMeasureWidth(column, averageColumnWidth), 0.0); 569childSize = new Size(); 582childSize = new Size(width.DisplayValue, childSize.Height); 615return new Size(measureWidth, measureHeight); 623return new Size(measureWidth, measureHeight); 646child.Measure(new Size()); 836Size childSize = new Size(); 1489Rect rcChild = new Rect(new Size(childWidth, arrangeState.ChildHeight));
src\Framework\System\Windows\Controls\DataGridHelper.cs (3)
40return new Size(size.Width, Math.Max(0.0, size.Height - thickness)); 44return new Size(Math.Max(0.0, size.Width - thickness), size.Height); 266element.Measure(new Size(constraintWidth, double.PositiveInfinity));
src\Framework\System\Windows\Controls\Decorator.cs (1)
206return (new Size());
src\Framework\System\Windows\Controls\DockPanel.cs (2)
232childConstraint = new Size(Math.Max(0.0, constraint.Width - accumulatedWidth), 269return (new Size(parentWidth, parentHeight));
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
590paginator.PageSize = new Size(ia.MediaSizeWidth, ia.MediaSizeHeight);
src\Framework\System\Windows\Controls\Grid.cs (3)
433gridDesiredSize = new Size(); 704gridDesiredSize = new Size( 1430Size childConstraint = new Size(cellMeasureWidth, cellMeasureHeight);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (6)
277child.Measure(new Size(childConstraintWidth, constraintHeight)); 288child.Measure(new Size(childConstraintWidth, constraintHeight)); 296child.Measure(new Size(childConstraintWidth, constraintHeight)); 307_paddingHeader.Measure(new Size(0.0, constraintHeight)); 326return (new Size(accumulatedWidth, maxHeight)); 401_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (5)
137if (columns == null) { return new Size(); } 163child.Measure(new Size(childConstraintWidth, constraintHeight)); 181child.Measure(new Size(childConstraintWidth, constraintHeight)); 189child.Measure(new Size(childConstraintWidth, constraintHeight)); 203return (new Size(accumulatedWidth, maxHeight));
src\Framework\System\Windows\Controls\GroupItem.cs (2)
295Size pixelHeaderSize = new Size(); 303Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\Image.cs (2)
324Size naturalSize = new Size(); 350return new Size(naturalSize.Width * scaleFactor.Width, naturalSize.Height * scaleFactor.Height);
src\Framework\System\Windows\Controls\InkPresenter.cs (2)
183Size sizeStrokes = new Size(boundingRect.Right, boundingRect.Bottom); 219availableSize = new Size(Math.Min(arrangeSize.Width, _constraintSize.Width),
src\Framework\System\Windows\Controls\MediaElement.cs (3)
791return new Size(); 794Size naturalSize = new Size((double)mediaPlayer.NaturalVideoWidth, (double)mediaPlayer.NaturalVideoHeight); 803return new Size(naturalSize.Width * scaleFactor.Width, naturalSize.Height * scaleFactor.Height);
src\Framework\System\Windows\Controls\Page.cs (1)
614return (new Size(0, 0));
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (4)
242Size bulletSize = new Size(); 243Size contentSize = new Size(); 264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height)); 282Size bulletSize = new Size();
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
487Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
164new Size(_columnHeaderDragIndicator.Width, _columnHeaderDragIndicator.Height))); 172_columnHeaderDropLocationIndicator.Arrange(new Rect(point, new Size(dropIndicatorWidth, _columnHeaderDropLocationIndicator.Height)));
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
295Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
205return new Size(dataGridOwner.RowHeaderActualWidth, baseSize.Height);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (8)
225Size desiredSize = new Size(); // If no page is available, return (0,0) as size. 246newPageSize = new Size(); 252newPageSize = new Size(); 258newPageSize = new Size(availableSize.Width / _pageZoom, availableSize.Height / _pageZoom); 327pageSize = new Size(_documentPage.Size.Width * _pageZoom, _documentPage.Size.Height * _pageZoom); 329desiredSize = new Size(pageSize.Width * pageZoom.Width, pageSize.Height * pageZoom.Height); 415pageSize = new Size(pageSize.Width * _pageZoom, pageSize.Height * _pageZoom); 431pageSize = new Size(pageSize.Width * pageZoom.Width, pageSize.Height * pageZoom.Height);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
1051return new Size(); 2242limitSize = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (3)
146Size desiredSize = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 194Size restricted1DDesiredSize = new Size(restrictWidth ? restrictedSize.Width : Double.PositiveInfinity, 235return new Size(Math.Min(restrictedSize.Width, restricted2DDesiredSize.Width),
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
414Size desiredSize = new Size();
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (3)
90Size contentSize = new Size(); 212Size desiredSizeWithoutMargin = new Size(); 274Size cellSize = new Size(headerSize[childIndex], _rowHeight);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
364Size size = new Size(ActualWidth,ActualHeight);
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (4)
63Size curLineSize = new Size(); 64_panelSize = new Size(); 140curLineSize = new Size(); 165Size curLineSize = new Size();
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
240Size stackDesiredSize = new Size();
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
431Size desiredSize = new Size(0.0, 0.0);
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (2)
182Size childConstraint = new Size(constraint.Width / _columns, constraint.Height / _rows); 206return new Size((maxChildDesiredWidth * _columns),(maxChildDesiredHeight * _rows));
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
1180Size desiredSize = new Size(); 2449new Size(ExtentWidth, ExtentHeight), 2451new Size(ViewportWidth, ViewportHeight),
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
708paginator.PageSize = new Size(ia.MediaSizeWidth, ia.MediaSizeHeight);
src\Framework\System\Windows\Controls\Slider.cs (3)
993Size trackSize = new Size(0d, 0d); 994Size thumbSize = new Size(0d, 0d); 1002thumbSize = (Track.Thumb != null) ? Track.Thumb.RenderSize : new Size(0d, 0d);
src\Framework\System\Windows\Controls\Stack.cs (3)
535Size stackDesiredSize = new Size(); 562Size stackDesiredSize = new Size(); 1116_viewport = _extent = new Size();
src\Framework\System\Windows\Controls\TextBlock.cs (4)
1341Size desiredSize = new Size(); 1353Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 2067Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 3206Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)),
src\Framework\System\Windows\Controls\ToolBarTray.cs (3)
364Size toolBarTrayDesiredSize = new Size(); 368Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 452Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height );
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
377Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.DesiredSize : new Size(); 381Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\ViewBox.cs (3)
320Size parentSize = new Size(); 326Size infinteConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 446return new Size(scaleX, scaleY);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (72)
2076Size stackPixelSize = new Size(); 2077Size stackLogicalSize = new Size(); 2078Size stackPixelSizeInViewport = new Size(); 2079Size stackLogicalSizeInViewport = new Size(); 2080Size stackPixelSizeInCacheBeforeViewport = new Size(); 2081Size stackLogicalSizeInCacheBeforeViewport = new Size(); 2082Size stackPixelSizeInCacheAfterViewport = new Size(); 2083Size stackLogicalSizeInCacheAfterViewport = new Size(); 2531stackPixelSize = new Size(); 2532stackLogicalSize = new Size(); 3340Size previousChildSize = new Size(); 3565_scrollData._maxDesiredSize = new Size(); 4240Size extent = new Size(); 4261_scrollData._maxDesiredSize = new Size(); 5930containerSize = new Size(); 5960containerSize = new Size(); 5993containerSize = new Size(); 5994containerPixelSize = new Size(); 6750childPixelSize = new Size(); 6751childPixelSizeInViewport = new Size(); 6752childPixelSizeInCacheBeforeViewport = new Size(); 6753childPixelSizeInCacheAfterViewport = new Size(); 6755childLogicalSize = new Size(); 6756childLogicalSizeInViewport = new Size(); 6757childLogicalSizeInCacheBeforeViewport = new Size(); 6758childLogicalSizeInCacheAfterViewport = new Size(); 6824Size childHeaderPixelSizeInViewport = new Size(); 6825Size childHeaderLogicalSizeInViewport = new Size(); 6826Size childHeaderPixelSizeInCacheBeforeViewport = new Size(); 6827Size childHeaderLogicalSizeInCacheBeforeViewport = new Size(); 6828Size childHeaderPixelSizeInCacheAfterViewport = new Size(); 6829Size childHeaderLogicalSizeInCacheAfterViewport = new Size(); 6877childLogicalSize = new Size(DoubleUtil.GreaterThan(childPixelSize.Width, 0) ? 1 : 0, 6883childLogicalSizeInCacheBeforeViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheBeforeViewport.Width, 0) ? 1 : 0, 6889childLogicalSizeInCacheAfterViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheAfterViewport.Width, 0) ? 1 : 0, 6938childPixelSizeInViewport = new Size(); 6939childPixelSizeInCacheBeforeViewport = new Size(); 6940childPixelSizeInCacheAfterViewport = new Size(); 6942childLogicalSize = new Size(); 6943childLogicalSizeInViewport = new Size(); 6944childLogicalSizeInCacheBeforeViewport = new Size(); 6945childLogicalSizeInCacheAfterViewport = new Size(); 6978Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 6979: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0)); 6980Size frontLogicalSize = isHeaderBeforeItems ? new Size(1,1) : new Size(0,0); 6992Size backPixelSize = isHorizontal ? new Size(Math.Max(inset.Right,0), childDesiredSize.Height) 6993: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 6994Size backLogicalSize = isHeaderBeforeItems ? new Size(0,0) : new Size(1,1); 7027childLogicalSize = new Size(1, 1); 7032childLogicalSizeInCacheBeforeViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheBeforeViewport.Width, 0) ? 1 : 0, 7038childLogicalSizeInCacheAfterViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheAfterViewport.Width, 0) ? 1 : 0, 7357childSize = new Size(Math.Max(headerDesiredSizes.PixelSize.Width, itemDesiredSizes.PixelSize.Width), 7362childSize = new Size(Math.Max(headerDesiredSizes.LogicalSize.Width, itemDesiredSizes.LogicalSize.Width), 7374childSize = new Size(DoubleUtil.GreaterThan(child.DesiredSize.Width, 0) ? 1 : 0, 7512childPixelSize = new Size(inset.Left + itemDesiredSizes.PixelSize.Width + inset.Right, 7529childSize = isHorizontal ? new Size(1 + itemDesiredSizes.LogicalSize.Width, 7531: new Size(Math.Max(1, itemDesiredSizes.LogicalSize.Width), 7545childSize = new Size(DoubleUtil.GreaterThan(child.DesiredSize.Width, 0) ? 1 : 0, 7610Size containerSize = new Size(); 7611Size containerPixelSize = new Size(); 7951Size stackPixelSize = new Size(); 7952Size stackPixelSizeInViewport = new Size(); 7953Size stackPixelSizeInCacheBeforeViewport = new Size(); 7954Size stackPixelSizeInCacheAfterViewport = new Size(); 7955Size stackLogicalSize = new Size(); 7956Size stackLogicalSizeInViewport = new Size(); 7957Size stackLogicalSizeInCacheBeforeViewport = new Size(); 7958Size stackLogicalSizeInCacheAfterViewport = new Size(); 8049Size childDesiredSize = new Size(); 11632_viewport = _extent = _maxDesiredSize = new Size();
src\Framework\System\Windows\Controls\WrapPanel.cs (2)
233Size childConstraint = new Size( 278return new Size(panelSize.Width, panelSize.Height);
src\Framework\System\Windows\Documents\Adorner.cs (1)
81desiredSize = new Size(AdornedElement.RenderSize.Width, AdornedElement.RenderSize.Height);
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
448return new Size(); 552adornerInfo.RenderSize = new Size(Double.NaN, Double.NaN);
src\Framework\System\windows\Documents\CaretElement.cs (1)
173return new Size(
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
699_pageSize = new Size(8.5d * 96d, 11.0d * 96d);
src\Framework\System\Windows\Documents\FixedDocument.cs (3)
570get { return new Size(_pageWidth, _pageHeight); } 799return new Size(_pageWidth, _pageHeight); 802return new Size(fp.Width, fp.Height);
src\Framework\System\Windows\Documents\FixedPage.cs (2)
778Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 785return new Size();
src\Framework\System\Windows\Documents\Glyphs.cs (2)
164return new Size(); 170return new Size(
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (3)
2052Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2059imageNaturalSize = new Size(bitmapSource.Width, bitmapSource.Height); 2063imageNaturalSize = new Size(imageInputSize.Width, imageInputSize.Height);
src\Framework\System\Windows\FrameworkElement.cs (16)
4138return new Size(0,0); 4145return new Size(Double.PositiveInfinity, Double.PositiveInfinity); 4163return new Size(0,0); 4298return new Size(w,h); 4342Size frameworkAvailableSize = new Size( 4370ltd.UntransformedDS = new Size(); 4374ltd.TransformedUnroundedDS = new Size(); 4405desiredSize = new Size( 4473ltd.TransformedUnroundedDS = new Size(Math.Max(0, clippedDesiredWidth), Math.Max(0, clippedDesiredHeight)); 4520return new Size(Math.Max(0, clippedDesiredWidth), Math.Max(0, clippedDesiredHeight)); 4601unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4613unclippedDesiredSize = new Size(sb.Width, sb.Height); 4733Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4766Size clientSize = new Size(Math.Max(0, finalRect.Width - marginWidth), 4934Size clippingSize = new Size(Math.Max(0, layoutSlotSize.Width - marginWidth), 5096return new Size(0,0);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
593Size desiredSize = new Size(); 633return new Size();
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
242return new Size(newWidth, newHeight);
src\Framework\System\Windows\Interop\HwndHost.cs (2)
851Size desiredSize = new Size(0,0); 1297_desiredSize = new Size(ptLowerRight.X - ptUpperLeft.X, ptLowerRight.Y - ptUpperLeft.Y);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8968bamlType.DefaultConstructor = delegate() { return new System.Windows.Size(); };
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1533case KnownElements.Size: o = new System.Windows.Size(); break;
src\Framework\System\Windows\Shapes\Ellipse.cs (2)
108return new Size(width, width); 219return new Size(strokeThickness, strokeThickness);
src\Framework\System\Windows\Shapes\Rectangle.cs (2)
160return new Size(width, width); 266return new Size(strokeThickness, strokeThickness);
src\Framework\System\Windows\Shapes\Shape.cs (5)
381newSize = new Size(0,0); 414newSize = new Size(0,0); 674stretchedSize = new Size(geometryBounds.Width * xScale + strokeThickness, geometryBounds.Height * yScale + strokeThickness); 680stretchedSize = new Size(0,0); 720return new Size(Math.Max(bounds.Right, 0),
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
1208windowSize = new Size((double)wp.Value.cx, (double)wp.Value.cy);
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
65return new Size { Width = pt.X, Height = pt.Y }; 72return new Size(pt.X, pt.Y);
src\Framework\System\Windows\SystemParameters.cs (2)
6322Size frameSize = new Size(Standard.NativeMethods.GetSystemMetrics(Standard.SM.CXSIZEFRAME), 6351Size frameSize = new Size(Standard.NativeMethods.GetSystemMetrics(Standard.SM.CXSIZEFRAME),
src\Framework\System\Windows\Thickness.cs (1)
306return new Size(_Left + _Right, _Top + _Bottom);
src\Framework\System\Windows\Window.cs (11)
1873Size frameworkAvailableSize = new Size(availableSize.Width, availableSize.Height); 1884desiredSize = new Size( 1941Size childArrangeBounds = new Size(); 3000if (CalculateWindowLocation(ref xDeviceUnits, ref yDeviceUnits, new Size(newSizeDeviceUnits.X, newSizeDeviceUnits.Y))) 3471return new Size(0,0); 3493Size childConstraint = new Size(); 3499return new Size(childDesiredSize.Width + frameSize.Width, childDesiredSize.Height + frameSize.Height); 6773_overlaySize = new Size( 7240return AllowsTransparency ? new Size(0, 0) : _swh.GetHwndNonClientAreaSizeInMeasureUnits(); 8102return new Size(pt.X,pt.Y); 8135return new Size(Math.Max(0.0, pt.X), Math.Max(0.0, pt.Y));
PresentationFramework.Aero (13)
Microsoft\Windows\Themes\BulletChrome.cs (2)
604return new Size(12.0, 12.0); 606return new Size(13.0, 13.0);
Microsoft\Windows\Themes\ButtonChrome.cs (4)
412Size childConstraint = new Size(); 440desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height)); 631borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 0.5, bounds.Bottom - 2.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true)); 633borderFigure.Segments.Add(new ArcSegment(new Point(bounds.Right - 2.5, bounds.Top + 0.5), new Size(2.0, 2.0), 0.0, false, SweepDirection.Counterclockwise, true));
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
233Size childConstraint = new Size(); 261desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height));
Microsoft\Windows\Themes\ScrollChrome.cs (1)
401return new Size(0,0);
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 210return new Size();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (13)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (9)
600return new Size(th.Left + th.Right, th.Top + th.Bottom); 667Size childConstraint = new Size(); 697desired = new Size(Math.Min(borderSize.Width, availableSize.Width), Math.Min(borderSize.Height, availableSize.Height)); 1079Size outerCorner = new Size(outerRadius, outerRadius), innerCorner = new Size(innerRadius, innerRadius); 1111Size outerCorner = new Size(outerRadius, outerRadius), innerCorner = new Size(innerRadius, innerRadius); 1403sgc.ArcTo(new Point(10, 2), new Size(4, 4), 0, false, SweepDirection.Clockwise, true, false); 1432sgc.ArcTo(new Point(10, 2), new Size(4, 4), 0, false, SweepDirection.Counterclockwise, true, false);
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 210return new Size();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (10)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
329Size childConstraint = new Size(); 357desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
185ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 193arc = new ArcSegment(new Point(0.5, 0.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true);
Microsoft\Windows\Themes\ScrollChrome.cs (1)
209return new Size(0, 0);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
199desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 210return new Size();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (10)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
287Size childConstraint = new Size(); 315desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height));
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
114ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 122arc = new ArcSegment(new Point(0.5, 0.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true);
Microsoft\Windows\Themes\ScrollChrome.cs (1)
191return new Size(0,0);
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (1)
199desired = new Size(Math.Min(11.0 + borderX, availableSize.Width), Math.Min(11.0 + borderY, availableSize.Height));
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 210return new Size();
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
System.Activities.Core.Presentation (13)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
286element.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
56this.StartSymbol.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
1119element.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 2584this.panel.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 2594stackPanel.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
53tooltip.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
127element.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (6)
95Size requiredSize = new Size(0, 0); 481this.initialNode.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 500FreeFormPanel.SetChildSize(this.initialNode, new Size(startWidth, startHeight)); 1065view.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 1973shapeLocation = this.CalculateDropLocationForAutoConnect(autoConnectDirection, new Size(DefaultStateDesignerWidth, DefaultStateDesignerHeight)); 1981shapeLocation = this.CalculateDropLocationForAutoSplit(e.GetPosition(this.panel), shapeLocation, connectorToSplit, new Size(DefaultStateDesignerWidth, DefaultStateDesignerHeight));
System.Activities.Presentation (43)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (1)
140Size adornerSize = new Size(this.content.DesiredSize.Width * zoomLevel, this.content.DesiredSize.Height * zoomLevel);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (1)
302_size = new Size(bmp.Width, bmp.Height);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryBase.cs (1)
137icon = editor.GetImage(new Size(24, 24)) as ImageSource;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (1)
25this.desiredSize = new Size(0, 0);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
44private static readonly Size DesiredIconSize = new Size(40, 40);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (3)
183Size actualSize = new Size(); 191InternalChildren[i].Measure(new Size(lastChildWidth, availableSize.Height)); 195InternalChildren[i].Measure(new Size(availableWidth, availableSize.Height));
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\ResourceUtilities.cs (1)
41return new Size(ResourceUtilities.GetDouble(queryRoot, TypeIconWidthKey, 16),
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (1)
16Size size = new Size();
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
864grid.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (5)
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)));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
201return new Size(small, large); 205return new Size(large, small);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (1)
45retVal.Add(new ArcSegment(turningPoint2, new Size(RoundRadius, RoundRadius), 0, false, crossProductZ > 0 ? SweepDirection.Clockwise : SweepDirection.Counterclockwise, true));
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
132Size childSize = new Size(frameworkChild.DesiredSize.Width - margin.Left - margin.Right, frameworkChild.DesiredSize.Height - margin.Top - margin.Bottom); 220Point[] segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), excludedLines.ToArray()); 225segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), excludedRects.ToArray(), new Point[] { }); 231segments = GetRoutedLineSegments(srcPoint, destPoint, new Size(connectorMargin, connectorMargin), srcDestRects.ToArray(), new Point[] { });
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (5)
356return new Size(width, height); 368this.RequiredSizeChanged(this, new RequiredSizeChangedEventArgs(new Size(width, height))); 395return new Size(width, height); 422connectorChild.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity)); 431child.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
63Size rearangeStartSize = new Size(); 186window.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity)); 429this.actualPanelRect.Size = new Size(panelWidth, panelHeight); 432result = new Size(panelWidth, panelHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
459Size size = new Size(initialWidth, initialHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
59Size newSize = new Size();
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
45tooltip.Measure(new Size(Double.PositiveInfinity, Double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (1)
188view.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (3)
289Size defaultContainerSize = new Size(20, 20); 398Rect bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight)); 405bounds = new Rect(currentPoint, new Size(this.ActualWidth, this.ActualHeight));
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
537this.expressionEditorInstance = this.expressionEditorService.CreateExpressionEditor(assemblies, importedNamespaces, declaredVariables, this.Text, this.ExpressionType, new Size(this.blockWidth, this.blockHeight)); 541this.expressionEditorInstance = this.expressionEditorService.CreateExpressionEditor(assemblies, importedNamespaces, declaredVariables, this.Text, new Size(this.blockWidth, this.blockHeight));
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
222icon.Drawing = new ImageDrawing(imageSource, new Rect(new Size(16, 16)));
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
800Rect dragHandleRect = new Rect(dragHandleLocation, new Size(this.DragHandle.ActualWidth, this.DragHandle.ActualHeight));
WindowsBase (5)
Base\System\Windows\Generated\Size.cs (1)
188value = new Size(
Base\System\Windows\Point.cs (1)
157return new Size(Math.Abs(point._x), Math.Abs(point._y));
Base\System\Windows\Rect.cs (1)
181return new Size(_width, _height);
Base\System\Windows\Size.cs (1)
162Size size = new Size();
Base\System\Windows\Vector.cs (1)
289return new Size(Math.Abs(vector._x), Math.Abs(vector._y));
1398 references to Size
PresentationCore (183)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (18)
138internal static Size InterpolateSize(Size from, Size to, Double progress) 140return (Size)InterpolateVector((Vector)from, (Vector)to, progress); 217internal static Size AddSize(Size value1, Size value2) 321internal static Size SubtractSize(Size value1, Size value2) 476internal static Double GetSegmentLengthSize(Size from, Size to) 586internal static Size ScaleSize(Size value, Double factor) 588return (Size)((System.Windows.Vector)value * factor); 718internal static bool IsValidAnimationValueSize(Size value) 812internal static Size GetZeroValueSize(Size baseValue)
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (1)
833private Size _radii;
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (1)
967Size ellipseSize = new Size(sizePoint.X / 2/*width*/, sizePoint.Y / 2/*height*/);
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (2)
216public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin) 489Size size = new Size();
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
1342private Size _viewSize;
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
364internal static double GetAspectRatio(Size viewSize) 370internal static Point GetNormalizedPoint(Point point, Size size)
Core\CSharp\System\Windows\AutoResizedEvent.cs (3)
25public AutoResizedEventArgs(Size size) 33public Size Size 41private Size _size;
Core\CSharp\System\Windows\Documents\DocumentPage.cs (8)
40_pageSize = Size.Empty; 52public DocumentPage(Visual visual, Size pageSize, Rect bleedBox, Rect contentBox) 76_pageSize = Size.Empty; 103public virtual Size Size 107if (_pageSize == Size.Empty && _visual != null) 201protected void SetSize(Size size) 242private Size _pageSize; 266public MissingDocumentPage() : base(null, Size.Empty, Rect.Empty, Rect.Empty) { }
Core\CSharp\System\Windows\Documents\DocumentPaginator.cs (1)
167public abstract Size PageSize { get; set; }
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (2)
724Size renderSize = container.RenderSize; 794private Size _containerSize;
Core\CSharp\System\Windows\Input\TouchPoint.cs (1)
82public Size Size
Core\CSharp\System\Windows\Interop\HwndSource.cs (10)
930Size newSize = root.RenderSize; 963private void Resize(Size newSize) 1037private NativeMethods.RECT AdjustWindowSize(Size newSize) 1262Size sz = new Size(double.PositiveInfinity, double.PositiveInfinity); 1291Size sizeFromHwndLogicalUnits = GetSizeFromHwnd(); 1292Size sz = new Size( 1361private Size GetSizeFromHwnd() 1682Size sz = new Size( 1752Size sizeLogicalUnits = GetSizeFromHwnd(); 3200private Size? _previousSize;
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (1)
1153else if (type == typeof(Size))
Core\CSharp\System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
1344public DiscreteSizeKeyFrame(Size value) 1352public DiscreteSizeKeyFrame(Size value, KeyTime keyTime) 1380protected override Size InterpolateValueCore(Size baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
1676public EasingSizeKeyFrame(Size value) 1685public EasingSizeKeyFrame(Size value, KeyTime keyTime) 1695public EasingSizeKeyFrame(Size value, KeyTime keyTime, IEasingFunction easingFunction) 1724protected override Size InterpolateValueCore(Size baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
2496protected SizeKeyFrame(Size value) 2505protected SizeKeyFrame(Size value, KeyTime keyTime) 2548typeof(Size), 2563Value = (Size)value; 2570public Size Value 2574return (Size)GetValue(ValueProperty); 2591public Size InterpolateValue( 2592Size baseValue, 2612protected abstract Size InterpolateValueCore( 2613Size baseValue,
Core\CSharp\System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
1052public LinearSizeKeyFrame(Size value) 1060public LinearSizeKeyFrame(Size value, KeyTime keyTime) 1086protected override Size InterpolateValueCore(Size baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimation.cs (32)
45private Size[] _keyValues; 60Type typeofProp = typeof(Size?); 69new PropertyMetadata((Size?)null, propCallback), 76new PropertyMetadata((Size?)null, propCallback), 83new PropertyMetadata((Size?)null, propCallback), 107public SizeAnimation(Size toValue, Duration duration) 119public SizeAnimation(Size toValue, Duration duration, FillBehavior fillBehavior) 132public SizeAnimation(Size fromValue, Size toValue, Duration duration) 145public SizeAnimation(Size fromValue, Size toValue, Duration duration, FillBehavior fillBehavior) 218protected override Size GetCurrentValueCore(Size defaultOriginValue, Size defaultDestinationValue, AnimationClock animationClock) 235Size from = new Size(); 236Size to = new Size(); 237Size accumulated = new Size(); 238Size foundation = new Size(); 352Size accumulator = AnimatedTypeHelpers.SubtractSize(to, from); 377_keyValues = new Size[2]; 384_keyValues = new Size[2]; 391_keyValues = new Size[1]; 398_keyValues = new Size[1]; 404_keyValues = new Size[1]; 425Size? typedValue = (Size?)value; 445public Size? From 449return (Size?)GetValue(FromProperty); 465public Size? To 469return (Size?)GetValue(ToProperty); 485public Size? By 489return (Size?)GetValue(ByProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationBase.cs (9)
103return GetCurrentValue((Size)defaultOriginValue, (Size)defaultDestinationValue, animationClock); 115return typeof(Size); 152public Size GetCurrentValue(Size defaultOriginValue, Size defaultDestinationValue, AnimationClock animationClock) 215protected abstract Size GetCurrentValueCore(Size defaultOriginValue, Size defaultDestinationValue, AnimationClock animationClock);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationClockResource.cs (4)
47Size baseValue, 59public Size BaseValue 70public Size CurrentValue 144private Size _baseValue;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (8)
331protected sealed override Size GetCurrentValueCore( 332Size defaultOriginValue, 333Size defaultDestinationValue, 359Size currentIterationValue; 395Size fromValue; 643private Size GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 954Size prevKeyValue = _keyFrames[index - 1].Value; 958Size currentKeyValue = _keyFrames[index].Value;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeIndependentAnimationStorage.cs (2)
61Size tempValue = (Size)dobj.GetValue(_dependencyProperty);
Core\CSharp\System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
1780public SplineSizeKeyFrame(Size value) 1789public SplineSizeKeyFrame(Size value, KeyTime keyTime) 1799public SplineSizeKeyFrame(Size value, KeyTime keyTime, KeySpline keySpline) 1833protected override Size InterpolateValueCore(Size baseValue, double keyFrameProgress)
Core\CSharp\System\Windows\Media\ArcSegment.cs (3)
53Size size, 93Size size = Size; 192if (((Size)value).IsEmpty)
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (1)
248public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
Core\CSharp\System\Windows\Media\Composition.cs (1)
336Size rRadii, // The ellipse's X and Y radii
Core\CSharp\System\Windows\Media\DrawingImage.cs (2)
94internal override Size Size 102Size size = drawing.GetBounds().Size;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (4)
865type == typeof(Size) || 933else if (t == typeof(Size)) 935Size s = (Size)value;
Core\CSharp\System\Windows\Media\Generated\ArcSegment.cs (4)
113public Size Size 117return (Size) GetValue(SizeProperty); 269internal static Size s_Size = new Size(); 308typeof(Size),
Core\CSharp\System\Windows\Media\Generated\RenderDataDrawingContext.cs (1)
1559Size baseValue,
Core\CSharp\System\Windows\Media\ImageSource.cs (1)
77internal virtual Size Size
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
515internal override Size Size
Core\CSharp\System\Windows\Media\MediaContext.cs (1)
527internal Size MaxTextureSize
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (1)
249public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
Core\CSharp\System\Windows\Media\RenderCapability.cs (1)
144public static Size MaxHardwareTextureSize
Core\CSharp\System\Windows\Media\StreamGeometryContext.cs (1)
139public abstract void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin);
Core\CSharp\System\Windows\Media3D\Camera.cs (1)
71internal abstract RayHitTestParameters RayFromViewportPoint(Point point, Size viewSize, Rect3D boundingRect, out double distanceAdjustment);
Core\CSharp\System\Windows\Media3D\MatrixCamera.cs (1)
86internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment)
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (1)
82internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment)
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (1)
104internal override RayHitTestParameters RayFromViewportPoint(Point p, Size viewSize, Rect3D boundingRect, out double distanceAdjustment)
Core\CSharp\System\Windows\SizeChangedInfo.cs (4)
36public SizeChangedInfo(UIElement element, Size previousSize, bool widthChanged, bool heightChanged) 47public Size PreviousSize 55public Size NewSize 104private Size _previousSize;
Core\CSharp\System\Windows\UIElement.cs (18)
186public Size DesiredSize 197internal Size PreviousConstraint 569public void Measure(Size availableSize) 644Size prevSize = _desiredSize; 654Size desiredSize = new Size(0, 0); 882Size oldSize = RenderSize; 1035private bool markForSizeChangedIfNeeded(Size oldSize, Size newSize) 1082internal static Size RoundLayoutSize(Size size, double dpiScaleX, double dpiScaleY) 1240protected virtual Size MeasureCore(Size availableSize) 1321public Size RenderSize 3099private void ensureClip(Size layoutSlotSize) 3377protected virtual Geometry GetLayoutClip(Size layoutSlotSize) 4705private Size _desiredSize; 4706private Size _previousAvailableSize; 4847private Size _size;
Graphics\include\Generated\wgx_commands.cs (1)
107[FieldOffset(8)] internal Size Value;
PresentationFramework (974)
src\Framework\Microsoft\Win32\CommonDialog.cs (1)
350Size dialogSize = new Size((dialogRect.right - dialogRect.left), /*width*/
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (5)
139protected override Size MeasureOverride(Size availableSize) 141Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 154protected override Size ArrangeOverride(Size finalSize)
src\Framework\MS\Internal\AppModel\IconHelper.cs (6)
36private static Size s_smallIconSize; 37private static Size s_iconSize; 121public static NativeMethods.IconHandle CreateIconHandleFromImageSource(ImageSource image, Size size) 155private static BitmapSource GenerateBitmapSource(ImageSource img, Size renderSize) 434private static int MatchImage(BitmapFrame frame, Size size, int bpp) 473private static BitmapFrame GetBestMatch(ReadOnlyCollection<BitmapFrame> frames, Size size)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (6)
118protected override Size MeasureOverride(Size constraint) 123protected override Size ArrangeOverride(Size arrangeBounds) 873private Size GetSizeInLogicalUnits() 875Size size;
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (4)
91Size newSize; 146protected override Size MeasureOverride(Size constraint) 180private Size _frameSize = new Size(0, 0);
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (7)
88protected override Size MeasureOverride(Size constraint) 90Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 92Size newSize = new Size(); 134protected override Size ArrangeOverride(Size arrangeSize) 229protected override Geometry GetLayoutClip(Size layoutSlotSize)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1622Size pageSize = parent.RenderSize;
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (6)
143protected override Size MeasureOverride(Size constraint) 166protected override Size ArrangeOverride(Size size) 168Size finalSize; 180internal override bool NeedsUpdate(Size oldSize)
src\Framework\MS\Internal\Documents\DocumentGrid.cs (13)
1058protected override Size MeasureOverride(Size constraint) 1104Size pageSize = _pageCache.GetPageSize(page.PageNumber); 1119Size newPageSize = _pageCache.GetPageSize(page.PageNumber); 1120if (newPageSize != Size.Empty) 1143protected override Size ArrangeOverride(Size arrangeSize) 1234Size pageSize = _pageCache.GetPageSize(page); 1367private void RecalculateVisualPages(double offset, Size constraint) 2261Size pageSize = _pageCache.GetPageSize(0); 2754Size pageSize = _pageCache.GetPageSize(i); 3226private Size _previousConstraint; 3266private readonly Size _defaultConstraint = new Size(250.0, 250.0);
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (5)
235protected override sealed Size MeasureOverride(Size availableSize) 275if (DocumentPage.Size != Size.Empty && DocumentPage.Size.Width != 0.0 ) 287protected override sealed Size ArrangeOverride(Size arrangeSize)
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
510internal Size PageSize;
src\Framework\MS\Internal\Documents\FixedDocumentPaginator.cs (1)
134public override Size PageSize
src\Framework\MS\Internal\Documents\FixedDocumentSequencePaginator.cs (1)
134public override Size PageSize
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (6)
60internal void Format(Size constraint) 63Size pageSize; 123internal void Arrange(Size arrangeSize, Rect viewport) 198private Size ComputePageSize(Size constraint) 201Size pageSize = new Size(_document.PageWidth, double.PositiveInfinity);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (9)
528public override Size PageSize 541Size newPageSize = value; 550Size oldActualSize = ComputePageSize(); 552Size newActualSize = ComputePageSize(); 753Size pageSize; 857private Size ComputePageSize() 860Size pageSize = new Size(_document.PageWidth, _document.PageHeight); 920private Size _pageSize; 936private static Size _defaultPageSize = new Size(8.5d * 96d, 11.0d * 96d);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (6)
69protected sealed override Size MeasureOverride(Size constraint) 71Size desiredSize = new Size(); 104protected sealed override Size ArrangeOverride(Size arrangeSize) 109Size safeArrangeSize = arrangeSize;
src\Framework\MS\Internal\Documents\PageCache.cs (12)
266public Size GetPageSize(int pageNumber) 270Size pageSize = _cache[pageNumber].PageSize; 271Invariant.Assert(pageSize != Size.Empty, "PageCache entry's PageSize is Empty."); 620if (args.DocumentPage.Size == Size.Empty) 728Invariant.Assert(_defaultPageSize != Size.Empty, "Default Page Size is Empty."); 784Invariant.Assert(_defaultPageSize != Size.Empty, "Default Page Size is Empty."); 821Invariant.Assert(newEntry.PageSize != Size.Empty, "Updated entry newEntry has Empty PageSize."); 855Invariant.Assert(_defaultPageSize != Size.Empty, "Default Page Size is Empty."); 928private Size _defaultPageSize; 931private Size _lastPageSize; 937private readonly Size _initialDefaultPageSize = new Size(816, 1056); 1046public Size PageSize;
src\Framework\MS\Internal\Documents\RowCache.cs (11)
489Size pageSize = GetScaledPageSize(j); 771Size pageSize = GetScaledPageSize( startPage ); 897Size pageSize = GetScaledPageSize(i); 940Size pageSize = GetScaledPageSize(currentPage); 1072Size pageSize = GetScaledPageSize(i); 1181Size pageSize = GetScaledPageSize(i); 1212private Size GetScaledPageSize(int pageNumber) 1215Size pageSize = PageCache.GetPageSize(pageNumber); 1416public void AddPage( Size pageSize ) 1439public Size RowSize 1490private Size _rowSize;
src\Framework\MS\Internal\Documents\ScrollData.cs (4)
394internal Size Extent 408internal Size Viewport 474private Size _viewport; 475private Size _extent;
src\Framework\MS\Internal\Documents\TextBoxView.cs (18)
412protected override Size MeasureOverride(Size constraint) 423Size desiredSize; 466Size safeConstraint = constraint; 514protected override Size ArrangeOverride(Size arrangeSize) 1767private void ArrangeScrollData(Size arrangeSize) 1805private void ArrangeVisuals(Size arrangeSize) 2222private Size FullMeasureTick(double constraintWidth, LineProperties lineProperties) 2224Size desiredSize; 2317private Size IncrementalMeasure(double constraintWidth, LineProperties lineProperties) 2322Size desiredSize = _contentSize; 2377private void IncrementalMeasureLinesAfterInsert(double constraintWidth, LineProperties lineProperties, DirtyTextRange range, ref Size desiredSize) 2436private void IncrementalMeasureLinesAfterDelete(double constraintWidth, LineProperties lineProperties, DirtyTextRange range, ref Size desiredSize) 2640private Size BruteForceCalculateDesiredSize() 2642Size desiredSize = new Size(); 3222private Size _contentSize; 3227private Size _previousConstraint;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (3)
72internal Size DoLayout(Size availableSize, bool horizontalAutoSize, bool verticalAutoSize) 74Size islandSize = new Size();
src\Framework\MS\Internal\Helper.cs (10)
541internal static Size MeasureElementWithSingleChild(UIElement element, Size constraint) 558internal static Size ArrangeElementWithSingleChild(UIElement element, Size arrangeSize) 1088ref Size headerSize) 1120Size itemPixelSize = itemDesiredSizes.PixelSize; 1121Size itemPixelSizeInViewport = itemDesiredSizes.PixelSizeInViewport; 1122Size itemPixelSizeBeforeViewport = itemDesiredSizes.PixelSizeBeforeViewport; 1123Size itemPixelSizeAfterViewport = itemDesiredSizes.PixelSizeAfterViewport; 1126Size desiredSize = virtualizingElement.DesiredSize;
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
342private bool CopySelectionInXAML(IDataObject dataObject, StrokeCollection strokes, List<UIElement> elements, Matrix transform, Size size)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (4)
399Size size; 422Size newSize = originalElement.RenderSize; 436Size newSize = originalElement.RenderSize; 1095Size size = element.RenderSize;
src\Framework\MS\Internal\KnownBoxes.cs (1)
20internal SizeBox(Size size): this(size.Width, size.Height) {}
src\Framework\MS\Internal\LayoutDump.cs (2)
394internal static void DumpSize(XmlTextWriter writer, string tagName, Size size) 550Size extent = new Size(isi.ExtentWidth, isi.ExtentHeight);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
166internal void FormatCellFinite(Size subpageSize, IntPtr breakRecordIn, bool isEmptyOk, uint fswdir,
src\Framework\MS\Internal\PtsHost\CellParagraph.cs (1)
81Size subpageSize;
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (1)
244Size pageSize = structuralCache.CurrentFormatContext.PageSize;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
126internal void FormatBottomless(Size pageSize, Thickness pageMargin) 186internal PageBreakRecord FormatFinite(Size pageSize, Thickness pageMargin, PageBreakRecord breakRecord) 236internal void Arrange(Size partitionSize) 714internal Size ContentSize 718Size size = _ptsPage.ContentSize; 1130private Size _partitionSize;
src\Framework\MS\Internal\PtsHost\Line.cs (2)
358internal Size MeasureChild(InlineObjectRun inlineObject) 362Size desiredSize;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
241internal Size MeasureChild(InlineObjectRun inlineObject)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (5)
710internal Size CalculatedSize { get { return _calculatedSize; } } 715internal Size ContentSize { get { return _contentSize; } } 1105private void UpdatePageVisuals(Size arrangeSize) 1641private Size _calculatedSize = new Size(); 1646private Size _contentSize = new Size();
src\Framework\MS\Internal\PtsHost\RunClient.cs (2)
57Size desiredSize = _host.MeasureChild(this); 84Size size = UIElementIsland.Root.DesiredSize;
src\Framework\MS\Internal\PtsHost\Section.cs (3)
115Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 225Size pageSize = _structuralCache.CurrentFormatContext.PageSize; 373Size pageSize = _structuralCache.CurrentFormatContext.PageSize;
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (4)
664internal Size DocumentPageSize { get { return _owner._currentPage.Size; } } 718internal void PushNewPageData(Size pageSize, Thickness pageMargin, bool incrementalUpdate, bool finitePage) 749internal Size PageSize { get { return _currentFormatInfo.PageSize; } } 785internal Size PageSize;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
1374internal Size MeasureChild(InlineObjectRun inlineObject)
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (1)
434Size uiIslandSize = UIElementIsland.DoLayout(new Size(elementWidth, elementHeight), false, true);
src\Framework\MS\Internal\Text\InlineObject.cs (2)
53Size desiredSize = _host.MeasureChild(this); 79Size size = _element.DesiredSize;
src\Framework\MS\Internal\Text\TextDpi.cs (6)
86internal static PTS.FSVECTOR ToTextSize(Size size) 121internal static void SnapToTextDpi(ref Size size) 135internal static void EnsureValidLineWidth(ref Size size) 151internal static void EnsureValidPageSize(ref Size size) 165internal static void EnsureValidPageMargin(ref Thickness pageMargin, Size pageSize) 190internal static void EnsureValidObjSize(ref Size size)
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (3)
143public override Size PageSize 308Size tempSize = page.Size; 447public AnnotatedDocumentPage(DocumentPage basePage, Visual visual, Size pageSize, Rect bleedBox, Rect contentBox)
src\Framework\System\Windows\Controls\AccessText.cs (4)
425protected sealed override Size MeasureOverride(Size constraint) 435protected sealed override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (5)
194protected override Size MeasureOverride(Size constraint) 202Size desiredSize = AdornedElement.RenderSize; 216protected override Size ArrangeOverride(Size arrangeBounds)
src\Framework\System\Windows\Controls\Border.cs (11)
219protected override Size MeasureOverride(Size constraint) 222Size mySize = new Size(); 231Size border = HelperCollapseThickness(borders); 232Size padding = HelperCollapseThickness(this.Padding); 238Size combined = new Size(border.Width + padding.Width, border.Height + padding.Height); 241Size childConstraint = new Size(Math.Max(0.0, constraint.Width - combined.Width), 246Size childSize = child.DesiredSize; 268protected override Size ArrangeOverride(Size finalSize) 630private static Size HelperCollapseThickness(Thickness th)
src\Framework\System\Windows\Controls\Canvas.cs (6)
272protected override Size MeasureOverride(Size constraint) 274Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 292protected override Size ArrangeOverride(Size arrangeSize) 350protected override Geometry GetLayoutClip(Size layoutSlotSize)
src\Framework\System\Windows\Controls\ContentPresenter.cs (4)
493protected override Size MeasureOverride(Size constraint) 504protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\Control.cs (4)
702protected override Size MeasureOverride(Size constraint) 724protected override Size ArrangeOverride(Size arrangeBounds)
src\Framework\System\Windows\Controls\DataGrid.cs (4)
1978internal void OnViewportSizeChanged(Size oldSize, Size newSize) 7540protected override Size MeasureOverride(Size availableSize)
src\Framework\System\Windows\Controls\DataGridCell.cs (6)
789protected override Size MeasureOverride(Size constraint) 810Size desiredSize = base.MeasureOverride(constraint); 826protected override Size ArrangeOverride(Size arrangeSize) 845Size returnSize = base.ArrangeOverride(arrangeSize);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (30)
55protected override Size MeasureOverride(Size constraint) 57Size measureSize = new Size(); 104private static void MeasureChild(UIElement child, Size constraint) 108Size childMeasureConstraint = new Size(double.PositiveInfinity, constraint.Height); 136Size childDesiredSize = child.DesiredSize; 164private Size GenerateAndMeasureChildrenForRealizedColumns(Size constraint) 185Size blockMeasureSize = GenerateChildren( 225private Size DetermineRealizedColumnsBlockList(Size constraint) 229Size measureSize = new Size(); 262Size childSize; 423Size headerSize = EnsureAtleastOneHeader(generator, constraint, realizedColumnIndices, realizedColumnDisplayIndices); 540Size constraint, 544out Size childSize) 560Size constraint, 563out Size childSize) 592private Size GenerateChildren( 596Size constraint) 605Size childSize; 829private Size EnsureAtleastOneHeader(IItemContainerGenerator generator, 830Size constraint, 836Size childSize = new Size(); 876Size constraint) 962Size constraint, 976Size childSize; 1362protected override Size ArrangeOverride(Size arrangeSize) 2028Size rowPresenterAvailableSize = parentRowsPresenter.AvailableSize;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
36public static Size SubtractFromSize(Size size, double thickness, bool height)
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
1267protected override Size ArrangeOverride(Size arrangeBounds)
src\Framework\System\Windows\Controls\Decorator.cs (4)
198protected override Size MeasureOverride(Size constraint) 214protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\DockPanel.cs (7)
214protected override Size MeasureOverride(Size constraint) 226Size childConstraint; // Contains the suggested input constraint for this child. 227Size childDesiredSize; // Contains the return size from child measure. 277protected override Size ArrangeOverride(Size arrangeSize) 293Size childDesiredSize = child.DesiredSize;
src\Framework\System\Windows\Controls\Grid.cs (9)
419protected override Size MeasureOverride(Size constraint) 421Size gridDesiredSize; 723protected override Size ArrangeOverride(Size arrangeSize) 1245Size referenceSize, 1265Size referenceSize, 1430Size childConstraint = new Size(cellMeasureWidth, cellMeasureHeight); 4221internal void UpdateRenderBounds(Size boundsSize)
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
453protected override Size ArrangeOverride(Size finalSize)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
245protected override Size MeasureOverride(Size constraint) 334protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (4)
134protected override Size MeasureOverride(Size constraint) 211protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\GroupItem.cs (4)
112protected override Size ArrangeOverride(Size arrangeSize) 295Size pixelHeaderSize = new Size(); 303Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\Image.cs (8)
216protected override Size MeasureOverride(Size constraint) 239protected override Size ArrangeOverride(Size arrangeSize) 321private Size MeasureArrangeHelper(Size inputSize) 324Size naturalSize = new Size(); 344Size scaleFactor = Viewbox.ComputeScaleFactor(inputSize,
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
232protected override Size MeasureOverride(Size availableSize) 250protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\InkPresenter.cs (11)
65_constraintSize = Size.Empty; 163protected override Size MeasureOverride(Size constraint) 170Size newSize = base.MeasureOverride(constraint); 183Size sizeStrokes = new Size(boundingRect.Right, boundingRect.Bottom); 196_constraintSize = Size.Empty; 207protected override Size ArrangeOverride(Size arrangeSize) 216Size availableSize = arrangeSize; 238protected override Geometry GetLayoutClip(Size layoutSlotSize) 618private Size _constraintSize;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (4)
71protected override Size MeasureOverride(Size constraint) 81protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\MediaElement.cs (8)
711protected override Size MeasureOverride(Size availableSize) 719protected override Size ArrangeOverride(Size finalSize) 785private Size MeasureArrangeHelper(Size inputSize) 794Size naturalSize = new Size((double)mediaPlayer.NaturalVideoWidth, (double)mediaPlayer.NaturalVideoHeight); 797Size scaleFactor = Viewbox.ComputeScaleFactor(inputSize,
src\Framework\System\Windows\Controls\Page.cs (4)
597protected override Size MeasureOverride(Size constraint) 623protected override Size ArrangeOverride(Size arrangeBounds)
src\Framework\System\Windows\Controls\Panel.cs (1)
73Size renderSize = RenderSize;
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (10)
240protected override Size MeasureOverride(Size constraint) 242Size bulletSize = new Size(); 243Size contentSize = new Size(); 257Size contentConstraint = constraint; 264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height)); 274protected override Size ArrangeOverride(Size arrangeSize) 282Size bulletSize = new Size(); 298Size contentSize = arrangeSize;
src\Framework\System\Windows\Controls\Primitives\CustomPopupPlacementCallback.cs (2)
17public delegate CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (4)
450protected override Size MeasureOverride(Size availableSize) 459protected override Size ArrangeOverride(Size finalSize)
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (8)
109protected override Size MeasureOverride(Size availableSize) 111Size desiredSize; 112Size childConstraint = availableSize; 117Size indicatorSize; 143protected override Size ArrangeOverride(Size finalSize) 181protected override Geometry GetLayoutClip(Size layoutSlotSize)
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (6)
206protected override Size MeasureOverride(Size availableSize) 227Size desiredSize = base.MeasureOverride(DataGridHelper.SubtractFromSize(availableSize, thickness, /*height = */ true)); 241protected override Size ArrangeOverride(Size finalSize) 261Size returnSize = base.ArrangeOverride(DataGridHelper.SubtractFromSize(finalSize, thickness, /*height = */ true));
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (3)
187protected override Size MeasureOverride(Size availableSize) 189var baseSize = base.MeasureOverride(availableSize);
src\Framework\System\Windows\Controls\Primitives\DataGridRowsPresenter.cs (6)
85protected override void OnViewportSizeChanged(Size oldViewportSize, Size newViewportSize) 105protected override Size MeasureOverride(Size constraint) 114internal Size AvailableSize 164private Size _availableSize;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (10)
221protected override sealed Size MeasureOverride(Size availableSize) 223Size newPageSize, pageZoom; 224Size pageSize; 225Size desiredSize = new Size(); // If no page is available, return (0,0) as size. 345protected override sealed Size ArrangeOverride(Size finalSize) 350Size pageSize, pageZoom; 964if (_pageHost != null && _pageHost.PageVisual != null && _documentPage.Size != Size.Empty) 1017private Size _visualCloneSize;
src\Framework\System\Windows\Controls\Primitives\HierarchicalVirtualizationHeaderDesiredSizes.cs (6)
19public HierarchicalVirtualizationHeaderDesiredSizes(Size logicalSize, Size pixelSize) 32public Size LogicalSize 43public Size PixelSize 122private Size _logicalSize; 123private Size _pixelSize;
src\Framework\System\Windows\Controls\Primitives\HierarchicalVirtualizationItemDesiredSizes.cs (24)
19public HierarchicalVirtualizationItemDesiredSizes(Size logicalSize, 20Size logicalSizeInViewport, 21Size logicalSizeBeforeViewport, 22Size logicalSizeAfterViewport, 23Size pixelSize, 24Size pixelSizeInViewport, 25Size pixelSizeBeforeViewport, 26Size pixelSizeAfterViewport) 46public Size LogicalSize 57public Size LogicalSizeInViewport 68public Size LogicalSizeBeforeViewport 79public Size LogicalSizeAfterViewport 90public Size PixelSize 101public Size PixelSizeInViewport 112public Size PixelSizeBeforeViewport 123public Size PixelSizeAfterViewport 221Size _logicalSize; 222Size _logicalSizeInViewport; 223Size _logicalSizeBeforeViewport; 224Size _logicalSizeAfterViewport; 225Size _pixelSize; 226Size _pixelSizeInViewport; 227Size _pixelSizeBeforeViewport; 228Size _pixelSizeAfterViewport;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (11)
1048protected override Size MeasureOverride(Size availableSize) 1510_positionInfo.ChildSize = Size.Empty; 1993public Size ChildSize; 2133childBounds = new Rect((Size)_secHelper.GetTransformToDevice().Transform((Point)_popupRoot.Value.RenderSize)); 2229private void GetPopupRootLimits(out Rect targetBounds, out Rect screenBounds, out Size limitSize) 2627internal Size RestrictSize(Size desiredSize) 2631Size limitSize; 2635desiredSize = (Size)_secHelper.GetTransformToDevice().Transform((Point)desiredSize); 2647desiredSize = (Size)_secHelper.GetTransformFromDevice().Transform((Point)desiredSize);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (13)
143protected override Size MeasureOverride(Size constraint) 146Size desiredSize = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 180Size restrictedSize = GetPopupSizeRestrictions(popup, desiredSize, out restrictWidth, out restrictHeight); 194Size restricted1DDesiredSize = new Size(restrictWidth ? restrictedSize.Width : Double.PositiveInfinity, 220private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight) 222Size restrictedSize = popup.RestrictSize(desiredSize); 231private Size Get2DRestrictedDesiredSize(Size restrictedSize) 234Size restricted2DDesiredSize = _transformDecorator.DesiredSize; 244protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (11)
412protected override Size MeasureOverride(Size constraint) 414Size desiredSize = new Size(); 436Size childConstraint = constraint; 466protected override Size ArrangeOverride(Size arrangeSize) 521protected override Geometry GetLayoutClip(Size layoutSlotSize) 810private void VerifyScrollData(Size viewport, Size extent) 946internal Size _viewport; // ViewportSize is computed from our FinalSize, but may be in different units. 947internal Size _extent; // Extent is the total size of our content.
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (16)
88protected override Size MeasureOverride(Size constraint) 90Size contentSize = new Size(); 114Size childSize = GetDesiredSizeWithoutMargin(child); 159Size childSize = GetDesiredSizeWithoutMargin(child); 176protected override Size ArrangeOverride(Size arrangeSize) 194protected override Geometry GetLayoutClip(Size layoutSlotSize) 209private Size GetDesiredSizeWithoutMargin(UIElement element) 212Size desiredSizeWithoutMargin = new Size(); 227Size childSize = GetDesiredSizeWithoutMargin(child); 234private void ArrangeHorizontal(Size arrangeSize) 274Size cellSize = new Size(headerSize[childIndex], _rowHeight); 284Size childSize = cellSize; 306private void ArrangeVertical(Size arrangeSize) 313Size childSize = GetDesiredSizeWithoutMargin(child);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
364Size size = new Size(ActualWidth,ActualHeight);
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (10)
61protected override Size MeasureOverride(Size constraint) 63Size curLineSize = new Size(); 115Size childDesiredSize = child.DesiredSize; 128Size sz = child.DesiredSize; 162protected override Size ArrangeOverride(Size arrangeBounds) 165Size curLineSize = new Size(); 172Size sz = children[i].DesiredSize; 240private Size _panelSize;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (10)
57private bool MeasureGeneratedItems(bool asNeededPass, Size constraint, bool horizontal, double maxExtent, ref Size panelDesiredSize, out double overflowExtent) 95Size childDesiredSize = child.DesiredSize; 181Size childDesiredSize = child.DesiredSize; 238protected override Size MeasureOverride(Size constraint) 240Size stackDesiredSize = new Size(); 244Size layoutSlotSize = constraint; 295protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\Primitives\Track.cs (8)
429protected override Size MeasureOverride(Size availableSize) 431Size desiredSize = new Size(0.0, 0.0); 477protected override Size ArrangeOverride(Size arrangeSize) 504Size pieceSize = arrangeSize; 580private void ComputeSliderLengths(Size arrangeSize, bool isVertical, out double decreaseButtonLength, out double thumbLength, out double increaseButtonLength) 619private bool ComputeScrollBarLengths(Size arrangeSize, double viewportSize, bool isVertical, out double decreaseButtonLength, out double thumbLength, out double increaseButtonLength)
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (6)
178protected override Size MeasureOverride(Size constraint) 182Size childConstraint = new Size(constraint.Width / _columns, constraint.Height / _rows); 193Size childDesiredSize = child.DesiredSize; 216protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Controls\RichTextBox.cs (2)
315protected override Size MeasureOverride(Size constraint)
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (4)
37internal ScrollChangedEventArgs(Vector offset, Vector offsetChange, Size extent, Vector extentChange, Size viewport, Vector viewportChange) 191private Size _extent; 193private Size _viewport;
src\Framework\System\Windows\Controls\ScrollViewer.cs (6)
1171protected override Size MeasureOverride(Size constraint) 1180Size desiredSize = new Size(); 1344protected override Size ArrangeOverride(Size arrangeSize) 1348Size size = base.ArrangeOverride(arrangeSize);
src\Framework\System\Windows\Controls\Slider.cs (7)
938private CustomPopupPlacement[] AutoToolTipCustomPlacementCallback(Size popupSize, Size targetSize, Point offset) 993Size trackSize = new Size(0d, 0d); 994Size thumbSize = new Size(0d, 0d); 1255protected override Size ArrangeOverride(Size finalSize) 1257Size size = base.ArrangeOverride(finalSize);
src\Framework\System\Windows\Controls\Stack.cs (23)
53Size Viewport { get; set; } 54Size Extent { get; set; } 517protected override Size MeasureOverride(Size constraint) 535Size stackDesiredSize = new Size(); 560internal static Size StackMeasureHelper(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size constraint) 562Size stackDesiredSize = new Size(); 564Size layoutSlotSize = constraint; 604Size childDesiredSize = child.DesiredSize; 638Size viewport = constraint; 639Size extent = stackDesiredSize; 702protected override Size ArrangeOverride(Size arrangeSize) 728internal static Size StackArrangeHelper(IStackMeasure arrangeElement, IStackMeasureScrollData scrollData, Size arrangeSize) 816private static void VerifyScrollingData(IStackMeasure measureElement, IStackMeasureScrollData scrollData, Size viewport, Size extent, Vector offset) 956Size childDesiredSize = InternalChildren[childIndex].DesiredSize; 1127internal Size _viewport; // ViewportSize is in {pixels x items} (or vice-versa). 1128internal Size _extent; // Extent is the total number of children (logical dimension) or physical size 1144public Size Viewport 1156public Size Extent
src\Framework\System\Windows\Controls\TextBlock.cs (13)
1252protected sealed override Size MeasureOverride(Size constraint) 1341Size desiredSize = new Size(); 1353Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1464protected sealed override Size ArrangeOverride(Size arrangeSize) 2054internal Size MeasureChild(InlineObject inlineObject) 2058Size desiredSize; 2067Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 3201private Vector CalcContentOffset(Size computedSize, double wrappingWidth) 3206Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3837private Size _referenceSize; 3844private Size _previousDesiredSize;
src\Framework\System\Windows\Controls\TextBox.cs (3)
1079protected override Size MeasureOverride(Size constraint) 1086Size size = base.MeasureOverride(constraint);
src\Framework\System\Windows\Controls\ToolBar.cs (3)
543protected override Size MeasureOverride(Size constraint) 546Size desiredSize = base.MeasureOverride(constraint);
src\Framework\System\Windows\Controls\ToolBarTray.cs (7)
360protected override Size MeasureOverride(Size constraint) 364Size toolBarTrayDesiredSize = new Size(); 368Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 431protected override Size ArrangeOverride(Size arrangeSize) 452Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height );
src\Framework\System\Windows\Controls\TreeViewItem.cs (4)
350protected override Size ArrangeOverride(Size arrangeSize) 377Size pixelHeaderSize = this.IsVisible && headerElement != null ? headerElement.DesiredSize : new Size(); 381Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\ViewBox.cs (13)
317protected override Size MeasureOverride(Size constraint) 320Size parentSize = new Size(); 326Size infinteConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 329Size childSize = child.DesiredSize; 331Size scalefac = ComputeScaleFactor(constraint, childSize, this.Stretch, this.StretchDirection); 350protected override Size ArrangeOverride(Size arrangeSize) 355Size childSize = child.DesiredSize; 358Size scalefac = ComputeScaleFactor(arrangeSize, childSize, this.Stretch, this.StretchDirection); 381internal static Size ComputeScaleFactor(Size availableSize, 382Size contentSize,
src\Framework\System\Windows\Controls\ViewPort3D.cs (2)
170protected override Size ArrangeOverride(Size finalSize)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (222)
57private static readonly DependencyProperty ContainerSizeProperty = DependencyProperty.Register("ContainerSize", typeof(Size), typeof(VirtualizingStackPanel)); 1989protected override Size MeasureOverride(Size constraint) 2040Size result = MeasureOverrideImpl(constraint, 2061private Size MeasureOverrideImpl(Size constraint, 2076Size stackPixelSize = new Size(); 2077Size stackLogicalSize = new Size(); 2078Size stackPixelSizeInViewport = new Size(); 2079Size stackLogicalSizeInViewport = new Size(); 2080Size stackPixelSizeInCacheBeforeViewport = new Size(); 2081Size stackLogicalSizeInCacheBeforeViewport = new Size(); 2082Size stackPixelSizeInCacheAfterViewport = new Size(); 2083Size stackLogicalSizeInCacheAfterViewport = new Size(); 2306Size childConstraint = constraint; 2573Size newContainerSize; 3213private Size MeasureNonItemsHost(Size constraint) 3218private Size ArrangeNonItemsHost(Size arrangeSize) 3227protected override Size ArrangeOverride(Size arrangeSize) 3337Size childDesiredSize = Size.Empty; 3340Size previousChildSize = new Size(); 3378Size childSizeBeforeViewport = Size.Empty; 3380Size previousChildSizeBeforeViewport = child.DesiredSize; 3846Size pixelSize = itemDesiredSizes.PixelSize; 3868Size logicalSize = itemDesiredSizes.LogicalSize; 3921Size.Empty, 3922Size.Empty, 3923Size.Empty, 3924Size.Empty, 3925Size.Empty, 3926Size.Empty, 4233Size constraint, 4240Size extent = new Size(); 4249Size size; 4251Size viewportSize; 4632Size stackPixelSizeInCacheBeforeViewport, 4633Size stackLogicalSizeInCacheBeforeViewport, 4634Size stackPixelSizeInCacheAfterViewport, 4635Size stackLogicalSizeInCacheAfterViewport, 4636Size stackPixelSize, 4637Size stackLogicalSize, 4874private void CoerceScrollingViewportOffset(ref Rect viewport, Size extent, bool isHorizontal) 4948Size pixelSize = forHeader ? headerDesiredSizes.PixelSize : itemDesiredSizes.PixelSize; 4949Size logicalSize = forHeader ? headerDesiredSizes.LogicalSize : itemDesiredSizes.LogicalSize; 5481Size containerSize; 5633ref Size stackPixelSize, 5634ref Size stackLogicalSize, 5743Size childDesiredSize = ((UIElement)children[i]).DesiredSize; 5826Size containerSize; 5877Size containerSize; 5878Size containerPixelSize; 5909out Size containerSize) 5913Size containerPixelSize; 5923containerSize = Size.Empty; 5953containerSize = (Size)value; 5989out Size containerSize, 5990out Size containerPixelSize) 6009containerSize = (Size)value; 6072Size containerSize, 6125Size containerSize, 6126Size containerPixelSize, 6184Size oldSize = (oldValue != null) ? (Size)oldValue : Size.Empty; 6215: new ContainerSizeDual(Size.Empty, Size.Empty); 6339Size itemsSize = itemsHost.DesiredSize; 6489Size stackPixelSizeInCache, 6490Size stackLogicalSizeInCache) 6524private bool IsEndOfViewport(bool isHorizontal, Rect viewport, Size stackPixelSizeInViewport) 6566Size stackPixelSize, 6567Size stackPixelSizeInViewport, 6568Size stackPixelSizeInCacheBeforeViewport, 6569Size stackPixelSizeInCacheAfterViewport, 6570Size stackLogicalSize, 6571Size stackLogicalSizeInViewport, 6572Size stackLogicalSizeInCacheBeforeViewport, 6573Size stackLogicalSizeInCacheAfterViewport, 6588Size containerSize; 6633Size containerSize; 6737Size childDesiredSize, 6741out Size childPixelSize, 6742out Size childPixelSizeInViewport, 6743out Size childPixelSizeInCacheBeforeViewport, 6744out Size childPixelSizeInCacheAfterViewport, 6745out Size childLogicalSize, 6746out Size childLogicalSizeInViewport, 6747out Size childLogicalSizeInCacheBeforeViewport, 6748out Size childLogicalSizeInCacheAfterViewport) 6766Size pixelHeaderSize = headerDesiredSizes.PixelSize; 6767Size logicalHeaderSize = headerDesiredSizes.LogicalSize; 6824Size childHeaderPixelSizeInViewport = new Size(); 6825Size childHeaderLogicalSizeInViewport = new Size(); 6826Size childHeaderPixelSizeInCacheBeforeViewport = new Size(); 6827Size childHeaderLogicalSizeInCacheBeforeViewport = new Size(); 6828Size childHeaderPixelSizeInCacheAfterViewport = new Size(); 6829Size childHeaderLogicalSizeInCacheAfterViewport = new Size(); 6916Size childDesiredSize, 6920out Size childPixelSize, 6921out Size childPixelSizeInViewport, 6922out Size childPixelSizeInCacheBeforeViewport, 6923out Size childPixelSizeInCacheAfterViewport, 6924out Size childLogicalSize, 6925out Size childLogicalSizeInViewport, 6926out Size childLogicalSizeInCacheBeforeViewport, 6927out Size childLogicalSizeInCacheAfterViewport) 6978Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 6980Size frontLogicalSize = isHeaderBeforeItems ? new Size(1,1) : new Size(0,0); 6992Size backPixelSize = isHorizontal ? new Size(Math.Max(inset.Right,0), childDesiredSize.Height) 6994Size backLogicalSize = isHeaderBeforeItems ? new Size(0,0) : new Size(1,1); 7062Size childPixelSize, 7063Size childLogicalSize, 7065ref Size childPixelSizeInViewport, 7066ref Size childLogicalSizeInViewport, 7067ref Size childPixelSizeInCacheBeforeViewport, 7068ref Size childLogicalSizeInCacheBeforeViewport, 7069ref Size childPixelSizeInCacheAfterViewport, 7070ref Size childLogicalSizeInCacheAfterViewport) 7266Size childPixelSize, 7267Size childPixelSizeInViewport, 7268Size childPixelSizeInCacheBeforeViewport, 7269Size childPixelSizeInCacheAfterViewport, 7270Size childLogicalSize, 7271Size childLogicalSizeInViewport, 7272Size childLogicalSizeInCacheBeforeViewport, 7273Size childLogicalSizeInCacheAfterViewport, 7274ref Size stackPixelSize, 7275ref Size stackPixelSizeInViewport, 7276ref Size stackPixelSizeInCacheBeforeViewport, 7277ref Size stackPixelSizeInCacheAfterViewport, 7278ref Size stackLogicalSize, 7279ref Size stackLogicalSizeInViewport, 7280ref Size stackLogicalSizeInCacheBeforeViewport, 7281ref Size stackLogicalSizeInCacheAfterViewport) 7297private static void StackSizes(bool isHorizontal, ref Size sz1, Size sz2) 7348Size childSize; 7414Size containerSize; 7423containerSize = (Size)value; 7500Size childSize; 7501Size childPixelSize; 7610Size containerSize = new Size(); 7611Size containerPixelSize = new Size(); 7625containerSize = (Size)value; 7940ref Size childConstraint, 7951Size stackPixelSize = new Size(); 7952Size stackPixelSizeInViewport = new Size(); 7953Size stackPixelSizeInCacheBeforeViewport = new Size(); 7954Size stackPixelSizeInCacheAfterViewport = new Size(); 7955Size stackLogicalSize = new Size(); 7956Size stackLogicalSizeInViewport = new Size(); 7957Size stackLogicalSizeInCacheBeforeViewport = new Size(); 7958Size stackLogicalSizeInCacheAfterViewport = new Size(); 8021ref Size childConstraint, 8027ref Size stackPixelSize, 8028ref Size stackPixelSizeInViewport, 8029ref Size stackPixelSizeInCacheBeforeViewport, 8030ref Size stackPixelSizeInCacheAfterViewport, 8031ref Size stackLogicalSize, 8032ref Size stackLogicalSizeInViewport, 8033ref Size stackLogicalSizeInCacheBeforeViewport, 8034ref Size stackLogicalSizeInCacheAfterViewport, 8049Size childDesiredSize = new Size(); 8138Size childPixelSize, childPixelSizeInViewport, childPixelSizeInCacheBeforeViewport, childPixelSizeInCacheAfterViewport; 8139Size childLogicalSize, childLogicalSizeInViewport, childLogicalSizeInCacheBeforeViewport, childLogicalSizeInCacheAfterViewport; 8251Size childDesiredSize, 8254ref Size previousChildSize, 8345Size pixelHeaderSize = virtualizingChild.HeaderDesiredSizes.PixelSize; 8377Size pixelHeaderSize = virtualizingChild.HeaderDesiredSizes.PixelSize; 8398Size childDesiredSize, 8402ref Size previousChildSize, 8433Size childDesiredSize, 8442ref Size previousChildSize, 9445Size constraint, 9450ref Size stackPixelSize, 9451ref Size stackLogicalSize, 9452ref Size stackPixelSizeInViewport, 9453ref Size stackLogicalSizeInViewport, 9454ref Size stackPixelSizeInCacheBeforeViewport, 9455ref Size stackLogicalSizeInCacheBeforeViewport, 9464Size viewportSize; 9465Size extentSize; 10271Size oldViewportSize = _scrollData._viewport; 10304Size constraint, 10305ref Size stackPixelSize, 10306ref Size stackLogicalSize, 10307ref Size stackPixelSizeInViewport, 10308ref Size stackLogicalSizeInViewport, 10309ref Size stackPixelSizeInCacheBeforeViewport, 10310ref Size stackLogicalSizeInCacheBeforeViewport, 10318Size viewportSize; 10319Size extentSize; 10774Size oldViewportSize = _scrollData._viewport; 10833protected virtual void OnViewportSizeChanged(Size oldViewportSize, Size newViewportSize) 10927Size desiredPixelHeaderSize = virtualizingElement.HeaderDesiredSizes.PixelSize; 10940Size desiredLogicalHeaderSize = virtualizingElement.HeaderDesiredSizes.LogicalSize; 11139Size childSize; 11572private Size _previousStackPixelSizeInViewport; 11573private Size _previousStackLogicalSizeInViewport; 11574private Size _previousStackPixelSizeInCacheBeforeViewport; 11665internal Size _viewport; // ViewportSize is in {pixels x items} (or vice-versa). 11666internal Size _extent; // Extent is the total number of children (logical dimension) or physical size 11669internal Size _maxDesiredSize; // Hold onto the maximum desired size to avoid re-laying out the parent ScrollViewer. 11691public Size Viewport 11703public Size Extent 11806private class ContainerSizeDual : Tuple<Size, Size> 11808public ContainerSizeDual(Size pixelSize, Size itemSize) 11813public Size PixelSize 11818public Size ItemSize 12714internal Size _previousStackPixelSizeInViewport; 12715internal Size _previousStackLogicalSizeInViewport; 12716internal Size _previousStackPixelSizeInCacheBeforeViewport; 12790private static void WriteSize(BinaryWriter writer, ref Size size) 12814internal Size _desiredSize;
src\Framework\System\Windows\Controls\WrapPanel.cs (5)
223protected override Size MeasureOverride(Size constraint) 233Size childConstraint = new Size( 284protected override Size ArrangeOverride(Size finalSize)
src\Framework\System\Windows\Documents\Adorner.cs (5)
77protected override Size MeasureOverride(Size constraint) 79Size desiredSize; 105protected override Geometry GetLayoutClip(Size layoutSlotSize) 235internal virtual bool NeedsUpdate(Size oldSize)
src\Framework\System\Windows\Documents\AdornerDecorator.cs (6)
127protected override Size MeasureOverride(Size constraint) 129Size desiredSize = base.MeasureOverride(constraint); 145protected override Size ArrangeOverride(Size finalSize) 147Size inkSize = base.ArrangeOverride(finalSize);
src\Framework\System\Windows\Documents\AdornerLayer.cs (7)
71internal Size RenderSize 123private Size _computedSize; 428protected override Size MeasureOverride(Size constraint) 462protected override Size ArrangeOverride(Size finalSize) 718Size size;
src\Framework\System\windows\Documents\CaretElement.cs (4)
160protected override Size MeasureOverride(Size availableSize) 190protected override Size ArrangeOverride(Size availableSize)
src\Framework\System\Windows\Documents\DocumentSequence.cs (2)
494internal Size PageSize 989private Size _pageSize;
src\Framework\System\Windows\Documents\FixedDocument.cs (6)
364Size fixedSize = ComputePageSize(page); 568internal Size PageSize 758internal bool GetPageSize(ref Size pageSize, int pageNumber) 795internal Size ComputePageSize(FixedPage fp) 1282Size fixedSize = ComputePageSize(c); 1398internal FixedDocumentPage(FixedDocument panel, FixedPage page, Size fixedSize, int index) :
src\Framework\System\Windows\Documents\FixedPage.cs (5)
776protected override Size MeasureOverride(Size constraint) 778Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 796protected override Size ArrangeOverride(Size arrangeSize)
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (1)
195public override void ArcTo(Point point, Size size, double rotationAngle, bool isLargeArc, SweepDirection sweepDirection, bool isStroked, bool isSmoothJoin)
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
215Size pageSize = _container.FixedDocument.ComputePageSize(page);
src\Framework\System\Windows\Documents\Glyphs.cs (4)
115protected override Size ArrangeOverride(Size finalSize) 159protected override Size MeasureOverride(Size constraint)
src\Framework\System\Windows\Documents\HighlightVisual.cs (1)
96Size pageSize = _panel.ComputePageSize(_page);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
139Size pageSize = _panel.ComputePageSize(_page);
src\Framework\System\Windows\Documents\TextStore.cs (1)
938Rect rectBound = new Rect(Size.Empty);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (3)
2052Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2055Size imageNaturalSize; 2098Size scaleFactor = System.Windows.Controls.Viewbox.ComputeScaleFactor(
src\Framework\System\Windows\FrameworkElement.cs (33)
4093internal Size UntransformedDS; 4097internal Size TransformedUnroundedDS; 4130private Size FindMaximalAreaLocalSpaceRect(Transform layoutTransform, Size transformSpaceBounds) 4304protected sealed override Size MeasureCore(Size availableSize) 4342Size frameworkAvailableSize = new Size( 4402Size desiredSize = MeasureOverride(frameworkAvailableSize); 4411Size unclippedDesiredSize = desiredSize; 4533Size transformedUnroundedDS = Size.Empty; 4545Size oldRenderSize = RenderSize; 4546Size inkSize = ArrangeOverride(finalRect.Size); 4572Size arrangeSize = finalRect.Size; 4598Size unclippedDesiredSize; 4605if (transformedUnroundedDS != Size.Empty) 4646Size potentialArrangeSize = FindMaximalAreaLocalSpaceRect(ltd.Transform, arrangeSize); 4716Size oldRenderSize = RenderSize; 4717Size innerInkSize = ArrangeOverride(arrangeSize); 4733Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4766Size clientSize = new Size(Math.Max(0, finalRect.Width - marginWidth), 4822private Vector ComputeAlignmentOffset(Size clientSize, Size inkSize) 4879protected override Geometry GetLayoutClip(Size layoutSlotSize) 4904Size inkSize = this.RenderSize; 4934Size clippingSize = new Size(Math.Max(0, layoutSlotSize.Width - marginWidth), 5094protected virtual Size MeasureOverride(Size availableSize) 5128protected virtual Size ArrangeOverride(Size finalSize) 5184private void SetLayoutOffset(Vector offset, Size oldRenderSize) 5241Size inkSize = this.RenderSize; 5296Size renderSize = this.RenderSize;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (7)
591protected override Size MeasureOverride(Size constraint) 593Size desiredSize = new Size(); 613protected override Size ArrangeOverride(Size size) 615Size finalSize = base.ArrangeOverride(size); 741internal override bool NeedsUpdate(Size oldSize)
src\Framework\System\Windows\Interop\ActiveXHost.cs (4)
226protected override Size MeasureOverride(Size swConstraint) 1200private Size _cachedSize = Size.Empty;
src\Framework\System\Windows\Interop\HwndHost.cs (4)
847protected override Size MeasureOverride(Size constraint) 851Size desiredSize = new Size(0,0); 1408private Size _desiredSize;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
658case 566: t = () => typeof(Size); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8966typeof(System.Windows.Size),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6110case KnownElements.Size: t = typeof(System.Windows.Size); break;
src\Framework\System\Windows\Shapes\Ellipse.cs (5)
88protected override Size MeasureOverride(Size constraint) 117protected override Size ArrangeOverride(Size finalSize) 216internal override Size GetNaturalSize()
src\Framework\System\Windows\Shapes\Rectangle.cs (5)
140protected override Size MeasureOverride(Size constraint) 169protected override Size ArrangeOverride(Size finalSize) 263internal override Size GetNaturalSize()
src\Framework\System\Windows\Shapes\Shape.cs (16)
361protected override Size MeasureOverride(Size constraint) 365Size newSize; 391protected override Size ArrangeOverride(Size finalSize) 393Size newSize; 450internal bool SizeIsInvalidOrEmpty(Size size) 547internal Size GetStretchedRenderSize(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 550Size renderSize; 558internal Size GetStretchedRenderSizeAndSetStretchMatrix(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds) 561Size renderSize; 583internal void GetStretchMetrics(Stretch mode, double strokeThickness, Size availableSize, Rect geometryBounds, 584out double xScale, out double yScale, out double dX, out double dY, out Size stretchedSize) 687internal virtual Size GetNaturalSize()
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (1)
1203Size windowSize;
src\Framework\System\Windows\SizeChangedEventArgs.cs (3)
41public Size PreviousSize 49public Size NewSize 82private Size _previousSize;
src\Framework\System\Windows\Standard\DpiHelper.cs (4)
61public static Size LogicalSizeToDevice(Size logicalSize, double dpiScaleX, double dpiScaleY) 68public static Size DeviceSizeToLogical(Size deviceSize, double dpiScaleX, double dpiScaleY)
src\Framework\System\Windows\SystemParameters.cs (4)
6322Size frameSize = new Size(Standard.NativeMethods.GetSystemMetrics(Standard.SM.CXSIZEFRAME), 6324Size frameSizeInDips = Standard.DpiHelper.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0); 6351Size frameSize = new Size(Standard.NativeMethods.GetSystemMetrics(Standard.SM.CXSIZEFRAME), 6353Size frameSizeInDips = Standard.DpiHelper.DeviceSizeToLogical(frameSize, SystemParameters.DpiX / 96.0, SystemParameters.Dpi / 96.0);
src\Framework\System\Windows\Thickness.cs (1)
302internal Size Size
src\Framework\System\Windows\Window.cs (23)
1858protected override Size MeasureOverride(Size availableSize) 1873Size frameworkAvailableSize = new Size(availableSize.Width, availableSize.Height); 1881Size desiredSize = MeasureOverrideHelper(frameworkAvailableSize); 1898protected override Size ArrangeOverride(Size arrangeBounds) 1930Size frameSize = GetHwndNonClientAreaSizeInMeasureUnits(); 1941Size childArrangeBounds = new Size(); 2377internal Size WindowSize 2748Size sizeDeviceUnits = new Size(rc.right - rc.left, rc.bottom - rc.top); 3453private Size MeasureOverrideHelper(Size constraint) 3483Size frameSize = GetHwndNonClientAreaSizeInMeasureUnits(); 3493Size childConstraint = new Size(); 3498Size childDesiredSize = child.DesiredSize; 3864private bool CalculateWindowLocation(ref double leftDeviceUnits, ref double topDeviceUnits, Size currentSizeDeviceUnits) 3932Size size = Owner.WindowSize; 4025internal static void CalculateCenterScreenPosition(IntPtr hMonitor, Size currentSizeDeviceUnits, ref double leftDeviceUnits, ref double topDeviceUnits) 7236private Size GetHwndNonClientAreaSizeInMeasureUnits() 7763private Size _overlaySize; 8014internal Size WindowSize 8093internal Size GetSizeFromHwndInMeasureUnits() 8117internal Size GetHwndNonClientAreaSizeInMeasureUnits()
PresentationFramework.Aero (24)
Microsoft\Windows\Themes\BulletChrome.cs (2)
601protected override Size MeasureOverride(Size availableSize)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
406protected override Size MeasureOverride(Size availableSize) 408Size desired; 412Size childConstraint = new Size(); 454protected override Size ArrangeOverride(Size finalSize)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
40Size size = RenderSize;
Microsoft\Windows\Themes\ListBoxChrome.cs (6)
214protected override Size MeasureOverride(Size availableSize) 216Size desired; 233Size childConstraint = new Size(); 275protected override Size ArrangeOverride(Size finalSize)
Microsoft\Windows\Themes\ScrollChrome.cs (4)
397protected override Size MeasureOverride(Size availableSize) 408protected override Size ArrangeOverride(Size finalSize)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
171protected override Size MeasureOverride(Size constraint) 204Size desiredSize = child.DesiredSize; 216protected override Size ArrangeOverride(Size arrangeSize)
PresentationFramework.Classic (17)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (11)
598private static Size HelperCollapseThickness(Thickness th) 659protected override Size MeasureOverride(Size availableSize) 661Size borderSize = HelperCollapseThickness(BorderThickness); 663Size desired; 667Size childConstraint = new Size(); 711protected override Size ArrangeOverride(Size finalSize) 936Size borderSize = HelperCollapseThickness(borderThickness); 1079Size outerCorner = new Size(outerRadius, outerRadius), innerCorner = new Size(innerRadius, innerRadius); 1111Size outerCorner = new Size(outerRadius, outerRadius), innerCorner = new Size(innerRadius, innerRadius);
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
50Size size = RenderSize;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
171protected override Size MeasureOverride(Size constraint) 204Size desiredSize = child.DesiredSize; 216protected override Size ArrangeOverride(Size arrangeSize)
PresentationFramework.Luna (19)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
323protected override Size MeasureOverride(Size availableSize) 325Size desired; 329Size childConstraint = new Size(); 371protected override Size ArrangeOverride(Size finalSize)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
80Size size = RenderSize;
Microsoft\Windows\Themes\ScrollChrome.cs (4)
205protected override Size MeasureOverride(Size availableSize) 216protected override Size ArrangeOverride(Size finalSize)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
189protected override Size MeasureOverride(Size availableSize) 198Size desired;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
171protected override Size MeasureOverride(Size constraint) 204Size desiredSize = child.DesiredSize; 216protected override Size ArrangeOverride(Size arrangeSize)
PresentationFramework.Royale (19)
Microsoft\Windows\Themes\ButtonChrome.cs (6)
281protected override Size MeasureOverride(Size availableSize) 283Size desired; 287Size childConstraint = new Size(); 329protected override Size ArrangeOverride(Size finalSize)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
36Size size = RenderSize;
Microsoft\Windows\Themes\ScrollChrome.cs (4)
187protected override Size MeasureOverride(Size availableSize) 198protected override Size ArrangeOverride(Size finalSize)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (3)
189protected override Size MeasureOverride(Size availableSize) 198Size desired;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
171protected override Size MeasureOverride(Size constraint) 204Size desiredSize = child.DesiredSize; 216protected override Size ArrangeOverride(Size arrangeSize)
System.Activities.Core.Presentation (15)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
68FreeFormPanel.SetChildSize(this.StartSymbol, (Size)sizeOfShape);
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (5)
1247Size size = (Size)sizeOfShape; 1476Size size = FreeFormPanel.GetChildSize(movedElement); 1756Point CalculateDropLocationForAutoConnect(AutoConnectDirections autoConnectDirection, Size droppedSize) 1761Point CalculateDropLocationForAutoSplit(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize)
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (9)
95Size requiredSize = new Size(0, 0); 515Size srcSize = FreeFormPanel.GetChildSize(this.initialNode); 518Size destSize = FreeFormPanel.GetChildSize(initialStateView); 589Size size = (Size)sizeOfShape; 2025Point CalculateDropLocationForAutoConnect(AutoConnectDirections autoConnectDirection, Size droppedSize) 2030Point CalculateDropLocationForAutoSplit(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize) 2254Size size = FreeFormPanel.GetChildSize(movedElement); 2457Size size = FreeFormPanel.GetChildSize(designer);
System.Activities.Presentation (108)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (8)
81internal static AdornerLocation FindAnchor(Point anchorPoint, Size desiredSize, Rect canvas) 124protected override Size MeasureOverride(Size constraint) 130protected override Size ArrangeOverride(Size finalSize) 140Size adornerSize = new Size(this.content.DesiredSize.Width * zoomLevel, this.content.DesiredSize.Height * zoomLevel); 152private static Point CalculateLocation(AdornerLocation anchor, Size adorneeSize, Size adornerSize)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (11)
41public static object GetImage(Type type, Size desiredSize) 83Size desiredSize, 207protected abstract Size Size 213public float Match(Size desiredSize) 222Size actualSize = this.Size; 242private static float GetAspectRatio(Size size) 252private static float GetArea(Size size) 274protected override Size Size 276get { return Size.Empty; } 290private Size _size; 310protected override Size Size
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (2)
808protected override Size ArrangeOverride(Size arrangeBounds)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\ExtensibilityAccessor.cs (1)
488public static IEnumerable<NewItemFactoryTypeModel> GetNewItemFactoryTypeModels(ModelProperty modelProperty, Size desiredIconSize)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\NewItemFactoryTypeModel.cs (2)
18private Size desiredSize; 65public Size DesiredSize
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (2)
69public static CustomPopupPlacement[] RightAlignedPopupPlacementCallback(Size popupSize, Size targetSize, Point offset)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
44private static readonly Size DesiredIconSize = new Size(40, 40);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (6)
175protected override Size MeasureOverride(Size availableSize) 183Size actualSize = new Size(); 208protected override Size ArrangeOverride(Size finalSize) 244Size renderSize = this.RenderSize;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Resources\ResourceUtilities.cs (1)
39public static Size GetDesiredTypeIconSize(FrameworkElement queryRoot)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\CategoryEditor.cs (1)
46public abstract object GetImage(Size desiredSize);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemfactory.cs (1)
44public virtual object GetImage(Type type, Size desiredSize) {
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (5)
14protected override Size MeasureOverride(Size availableSize) 16Size size = new Size(); 27protected override Size ArrangeOverride(Size finalSize)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (4)
915protected override Size ArrangeOverride(Size finalSize) 922protected override Size MeasureOverride(Size constraint)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (2)
48Size size = FreeFormPanel.GetChildSize(this.AdornedElement); 141Size size = FreeFormPanel.GetChildSize(this.AdornedElement);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (5)
54Size size = FreeFormPanel.GetChildSize(target); 86internal static List<Rect> CreateHitTestRects(Point targetLocation, Size targetSize) 115internal static Point CalculateDropLocation(Size droppedSize, DependencyObject autoConnectTarget, AutoConnectDirections direction, HashSet<Point> shapeLocations) 121Size size = FreeFormPanel.GetChildSize(autoConnectTarget); 279Size shapeSize = FreeFormPanel.GetChildSize(shape);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
22Size size = FreeFormPanel.GetChildSize(this.AdornedElement);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (13)
22Size srcSize = FreeFormPanel.GetChildSize(srcShape); 23Size destSize = FreeFormPanel.GetChildSize(destShape); 54public static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Connector connector, Size droppedSize, HashSet<Point> shapeLocations) 60Size srcSize = FreeFormPanel.GetChildSize(srcShape); 61Size destSize = FreeFormPanel.GetChildSize(destShape); 66internal static Point CalculateDropLocation(Point mousePosition, Point originalDropLocation, Size droppedSize, Point srcLocation, Point destLocation, Size srcSize, Size destSize, HashSet<Point> shapeLocations) 108internal static AutoSplitAlignment GetAlignment(Point mousePosition, Point targetLocation, Size targetSize) 123internal static Point CalculateDropLocationToAlignVertically(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize) 139internal static Point CalculateDropLocationToAlignHorizontally(Point originalDropLocation, Size droppedSize, Point targetLocation, Size targetSize)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (4)
67public Size DrawingSize 76public Size HitTestSize 192Size rectSize = GetSize(small, large); 197Size GetSize(double small, double large)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (2)
21Size shapeSize = (Size)values[0];
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (6)
132Size childSize = new Size(frameworkChild.DesiredSize.Width - margin.Left - margin.Right, frameworkChild.DesiredSize.Height - margin.Top - margin.Bottom); 315ref Orientation orientationA, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB, Size margin, ref bool noEscapeA) 535ConnectorSegment escapeLine, Orientation orientation, Size margin) 606Point R, Size margin, out bool intersectionFlag, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB) 721static Point[] GetRoutedLineSegments(Point begin, Point end, Size margin, Rect[] rectanglesToExclude, Point[] linesToExclude) 937static void SecondRefinementAlgorithm(CoverSet coverSet, ref List<Point> refinedPath, Size margin)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (10)
24public static readonly DependencyProperty ChildSizeProperty = DependencyProperty.RegisterAttached("ChildSize", typeof(Size), typeof(FreeFormPanel), new FrameworkPropertyMetadata()); 62public static Size GetChildSize(DependencyObject obj) 64return (Size)obj.GetValue(FreeFormPanel.ChildSizeProperty); 67public static void SetChildSize(DependencyObject obj, Size size) 324protected override Size ArrangeOverride(Size finalSize) 331Size size = Children[i].DesiredSize; 359protected override Size MeasureOverride(Size availableSize) 432if (!child.DesiredSize.Equals(((Size)FreeFormPanel.GetChildSize(child))))
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\RequiredSizeChangedEventArgs.cs (2)
12public RequiredSizeChangedEventArgs(Size newRequiredSize) 17public Size NewRequiredSize
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (7)
63Size rearangeStartSize = new Size(); 349internal void SetSize(ExtensionWindow window, Size size) 372protected override Size ArrangeOverride(Size arrangeSize) 389protected override Size MeasureOverride(Size constraint) 391Size result;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (1)
459Size size = new Size(initialWidth, initialHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
59Size newSize = new Size();
System.Activities.Presentation\System\Activities\Presentation\View\IExpressionEditorService.cs (2)
18IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Type expressionType, Size initialSize); 20IExpressionEditorInstance CreateExpressionEditor(AssemblyContextControlItem assemblies, ImportedNamespaceContextItem importedNamespaces, List<ModelItem> variables, string text, Size initialSize);
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (2)
54static Size size = Size.Empty;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (5)
289Size defaultContainerSize = new Size(20, 20); 342Size? size = null; 345size = Size.Parse(sizeString); 355protected override Size ArrangeOverride(Size arrangeBounds)
WindowsBase (39)
Base\System\Windows\Converters\Generated\SizeValueSerializer.cs (5)
51if (!(value is Size)) 67return Size.Parse(value ); 81if (value is Size) 83Size instance = (Size) value;
Base\System\Windows\Generated\Size.cs (14)
62public static bool operator == (Size size1, Size size2) 79public static bool operator != (Size size1, Size size2) 95public static bool Equals (Size size1, Size size2) 121if ((null == o) || !(o is Size)) 126Size value = (Size)o; 127return Size.Equals(this,value); 141public bool Equals(Size value) 143return Size.Equals(this, value); 170public static Size Parse(string source) 176Size value;
Base\System\Windows\Generated\SizeConverter.cs (4)
95return Size.Parse(source); 117if (destinationType != null && value is Size) 119Size instance = (Size)value;
Base\System\Windows\Point.cs (1)
155public static explicit operator Size(Point point)
Base\System\Windows\Rect.cs (6)
38Size size) 100public Rect(Size size) 175public Size Size 180return Size.Empty; 645public void Inflate(Size size) 688public static Rect Inflate(Rect rect, Size size)
Base\System\Windows\Size.cs (6)
53public static Size Empty 139public static explicit operator Vector(Size size) 151public static explicit operator Point(Size size) 160static private Size CreateEmptySize() 162Size size = new Size(); 174private readonly static Size s_empty = CreateEmptySize();
Base\System\Windows\Vector.cs (1)
287public static explicit operator Size(Vector vector)
Shared\MS\Internal\DoubleUtil.cs (2)
204public static bool AreClose(Size size1, Size size2)