310 references to Size
PresentationCore (25)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (4)
121temp.Size = new Size( 219return new Size( 323return new Size( 569temp.Size = 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\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\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\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 (4)
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);
PresentationFramework (192)
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 (1)
90Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
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\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\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\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 (8)
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 (1)
274Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
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 (7)
108Size childMeasureConstraint = new Size(double.PositiveInfinity, constraint.Height); 209return new Size(measureWidth, measureHeight); 305childSize = new Size(GetColumnEstimatedMeasureWidth(column, averageColumnWidth), 0.0); 582childSize = new Size(width.DisplayValue, childSize.Height); 615return new Size(measureWidth, measureHeight); 623return new Size(measureWidth, measureHeight); 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\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 (2)
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 (4)
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 (1)
303Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\Image.cs (1)
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 (2)
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 (1)
264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height));
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 (5)
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 (1)
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\TabPanel.cs (1)
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\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 (2)
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\TextBlock.cs (3)
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 (2)
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 (1)
381Size logicalHeaderSize = new Size(DoubleUtil.GreaterThan(pixelHeaderSize.Width, 0) ? 1 : 0,
src\Framework\System\Windows\Controls\ViewBox.cs (2)
326Size infinteConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity); 446return new Size(scaleX, scaleY);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (21)
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, 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,
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 (1)
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 (1)
778Size childConstraint = new Size(Double.PositiveInfinity, Double.PositiveInfinity);
src\Framework\System\Windows\Documents\Glyphs.cs (1)
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 (14)
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( 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\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\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 (1)
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 (9)
1873Size frameworkAvailableSize = new Size(availableSize.Width, availableSize.Height); 1884desiredSize = new Size( 3000if (CalculateWindowLocation(ref xDeviceUnits, ref yDeviceUnits, new Size(newSizeDeviceUnits.X, newSizeDeviceUnits.Y))) 3471return new Size(0,0); 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 (10)
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 (3)
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 (1)
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 (2)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (11)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (8)
600return new Size(th.Left + th.Right, th.Top + th.Bottom); 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 (2)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (8)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
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 (2)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (8)
Microsoft\Windows\Themes\ButtonChrome.cs (1)
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 (2)
203child.Measure(new Size(childWidth, childHeight)); 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom);
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 (39)
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 (2)
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\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 (3)
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\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 (4)
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\Vector.cs (1)
289return new Size(Math.Abs(vector._x), Math.Abs(vector._y));