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\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\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\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));
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\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\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\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));