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