201 writes to Width
PresentationCore (1)
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
510size.Width = XamlSerializationHelper.ReadDouble(br);
PresentationFramework (180)
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
105newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 109newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (3)
1105pageSize.Width *= Scale; 1122newPageSize.Width *= Scale; 1237pageSize.Width *= Scale;
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (4)
204pageSize.Width = constraint.Width; 208pageSize.Width = max; 213pageSize.Width = min; 219pageSize.Width = _defaultWidth;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (4)
544newPageSize.Width = _defaultPageSize.Width; 863pageSize.Width = _pageSize.Width; 867pageSize.Width = max; 872pageSize.Width = min;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
89desiredSize.Width = Math.Min(constraint.Width, _formatter.DocumentPage.Size.Width);
src\Framework\MS\Internal\Documents\RowCache.cs (4)
1222pageSize.Width *= Scale; 1224pageSize.Width += HorizontalPageSpacing; 1422_rowSize.Width += pageSize.Width; 1432_rowSize.Width = 0.0;
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
304_extent.Width = value;
src\Framework\MS\Internal\Documents\TextBoxView.cs (3)
504desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 2277desiredSize.Width = Math.Max(desiredSize.Width, line.Width); 2647desiredSize.Width = Math.Max(desiredSize.Width, _lineMetrics[i].Width);
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
92islandSize.Width = horizontalAutoSize ? _child.DesiredSize.Width : availableSize.Width;
src\Framework\MS\Internal\Helper.cs (5)
1103headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1134itemPixelSize.Width = Math.Max(desiredSize.Width, itemPixelSize.Width); 1147itemPixelSizeBeforeViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeBeforeViewport.Width); 1159itemPixelSizeInViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeInViewport.Width); 1170itemPixelSizeAfterViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeAfterViewport.Width);
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
423newSize.Width = newBounds.Width;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
165pageSize.Width += pageMargin.Left + pageMargin.Right; 719size.Width += _pageMargin.Left + _pageMargin.Right;
src\Framework\MS\Internal\PtsHost\PtsPage.cs (2)
853_calculatedSize.Width = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.du)); 858_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width);
src\Framework\MS\Internal\Text\TextDpi.cs (5)
138if (size.Width > _maxSize) { size.Width = _maxSize; } 139else if (size.Width < _minSize) { size.Width = _minSize; } 154if (size.Width > _maxSize) { size.Width = _maxSize; } 155else if (size.Width < _minSize) { size.Width = _minSize; } 194if (size.Width > _maxObjSize) { size.Width = _maxObjSize; }
src\Framework\System\Windows\Controls\Border.cs (1)
249mySize.Width = childSize.Width + combined.Width;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
817desiredSize.Width += verticalLineThickness; 852returnSize.Width += verticalLineThickness;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (3)
128childMeasureConstraint.Width = column.GetConstraintWidth(isColumnHeader); 154childMeasureConstraint.Width = width.DisplayValue; 403measureSize.Width += childSize.Width;
src\Framework\System\Windows\Controls\Grid.cs (1)
442gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width);
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
185newSize.Width = Math.Max(newSize.Width, sizeStrokes.Width);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (2)
258contentConstraint.Width = Math.Max(0.0, contentConstraint.Width - bulletSize.Width); 301contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
113childConstraint.Width = Double.PositiveInfinity; 122desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 130desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 134desiredSize.Width = Math.Min(availableSize.Width, desiredSize.Width);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
248newPageSize.Width = newPageSize.Height * (pageSize.Width / pageSize.Height); // Keep aspect ratio. 253newPageSize.Width = availableSize.Width / _pageZoom;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
2263limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left)); 2281limitSize.Width = Math.Max(0.0, Math.Max(screenBounds.Right - targetBounds.Right, targetBounds.Left - screenBounds.Left)); 2637desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2638desiredSize.Width = Math.Min(desiredSize.Width, limitSize.Width);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
438if (_scrollData._canHorizontallyScroll) { childConstraint.Width = Double.PositiveInfinity; } 451desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 820if (Double.IsInfinity(viewport.Width)) viewport.Width = extent.Width;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (6)
142contentSize.Width = maxRowWidth; 144contentSize.Width = constraint.Width; 162contentSize.Width = childSize.Width; 214desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right); 279cellSize.Width = arrangeSize.Width - childOffset.X; 286childSize.Width = Math.Max(0d, childSize.Width - leftOffset - rightOffset);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (2)
383size.Width -= ReservedSpace; 396size.Width -= ReservedSpace;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
132_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 138_panelSize.Width = Math.Max(sz.Width, _panelSize.Width); 145curLineSize.Width += sz.Width; 151_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 186curLineSize.Width += sz.Width;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
125panelDesiredSize.Width += childDesiredSize.Width; 130panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 190panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 251layoutSlotSize.Width = Double.PositiveInfinity;
src\Framework\System\Windows\Controls\Primitives\Track.cs (4)
447desiredSize.Width = 0.0; 552pieceSize.Width = decreaseButtonLength; 559pieceSize.Width = increaseButtonLength; 566pieceSize.Width = thumbLength;
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
321constraint.Width = this.MinWidth;
src\Framework\System\Windows\Controls\Stack.cs (7)
578layoutSlotSize.Width = Double.PositiveInfinity; 586if (measureElement.IsScrolling && measureElement.CanHorizontallyScroll) { layoutSlotSize.Width = Double.PositiveInfinity; } 609stackDesiredSize.Width += childDesiredSize.Width; 615stackDesiredSize.Width = Math.Max(stackDesiredSize.Width, childDesiredSize.Width); 672viewport.Width = logicalViewport; 673extent.Width = logicalExtent; 688stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1393desiredSize.Width = Math.Max(desiredSize.Width, line.GetCollapsedWidth()); 1425desiredSize.Width += (padding.Left + padding.Right);
src\Framework\System\Windows\Controls\ToolBarTray.cs (3)
395childConstraint.Width = remainingLength; 414toolBarTrayDesiredSize.Width = Math.Max(toolBarTrayDesiredSize.Width, bandLength); 418toolBarTrayDesiredSize.Width += bandThickness;
src\Framework\System\Windows\Controls\ViewBox.cs (2)
333parentSize.Width = scalefac.Width * childSize.Width; 366arrangeSize.Width = scalefac.Width * childSize.Width;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (57)
2309childConstraint.Width = Double.PositiveInfinity; 2315if (IsScrolling && CanHorizontallyScroll) { childConstraint.Width = Double.PositiveInfinity; } 3831_scrollData._extent.Width = distance; 3849pixelSize.Width = distance; 3871logicalSize.Width = distance; 5699stackPixelSize.Width += distance; 5710stackLogicalSize.Width += distance; 5747stackPixelSize.Width += childDesiredSize.Width; 5766stackPixelSize.Width += pixelDistance; 5935containerSize.Width = uniformSize; 5941containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 5965containerSize.Width = averageSize; 5971containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6042containerSize.Width = uniformOrAverageContainerSize; 6045containerPixelSize.Width = uniformOrAverageContainerPixelSize; 6053containerSize.Width = IsPixelBased ? pixelWidth : 1; 6056containerPixelSize.Width = pixelWidth; 6774childLogicalSize.Width = Math.Max(itemDesiredSizes.LogicalSize.Width, logicalHeaderSize.Width); 6778childLogicalSize.Width = itemDesiredSizes.LogicalSize.Width + logicalHeaderSize.Width; 7155childPixelSizeInViewport.Width += pixelSizeInViewport; 7157childPixelSizeInCacheBeforeViewport.Width += pixelSizeBeforeViewport; 7159childPixelSizeInCacheAfterViewport.Width += pixelSizeAfterViewport; 7162childLogicalSizeInViewport.Width += logicalSizeInViewport; 7164childLogicalSizeInCacheBeforeViewport.Width += logicalSizeBeforeViewport; 7166childLogicalSizeInCacheAfterViewport.Width += logicalSizeAfterViewport; 7248childPixelSizeInViewport.Width = Math.Max(childPixelSizeInViewport.Width, childPixelWidthInViewport); 7250childPixelSizeInCacheBeforeViewport.Width = Math.Max(childPixelSizeInCacheBeforeViewport.Width, childPixelWidthInViewport); 7252childPixelSizeInCacheAfterViewport.Width = Math.Max(childPixelSizeInCacheAfterViewport.Width, childPixelWidthInViewport); 7255childLogicalSizeInViewport.Width = Math.Max(childLogicalSizeInViewport.Width, childLogicalSize.Width); 7257childLogicalSizeInCacheBeforeViewport.Width = Math.Max(childLogicalSizeInCacheBeforeViewport.Width, childLogicalSize.Width); 7259childLogicalSizeInCacheAfterViewport.Width = Math.Max(childLogicalSizeInCacheAfterViewport.Width, childLogicalSize.Width); 7301sz1.Width += sz2.Width; 7307sz1.Width = Math.Max(sz1.Width, sz2.Width); 8337previousChildSize.Width = itemDesiredSizes.PixelSizeInViewport.Width; 8341previousChildSize.Width += itemDesiredSizes.PixelSizeBeforeViewport.Width + itemDesiredSizes.PixelSizeAfterViewport.Width; 8348previousChildSize.Width += pixelHeaderSize.Width; 8352previousChildSize.Width = Math.Max(previousChildSize.Width, pixelHeaderSize.Width); 9486viewportSize.Width--; 9499viewportSize.Width = viewport.Width; 9540stackPixelSize.Width = _scrollData._extent.Width; 9547_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 9548stackPixelSize.Width = _scrollData._maxDesiredSize.Width; 9550extentSize.Width = stackPixelSize.Width; 9554viewportSize.Width = stackPixelSize.Width; 9572stackPixelSize.Width = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.X, 0) ? 9860viewportSize.Width = proposedViewportSize; 9887viewportSize.Width = _scrollData._viewport.Width; 10338viewportSize.Width--; 10351viewportSize.Width = viewport.Width; 10392stackPixelSize.Width = _scrollData._extent.Width; 10399_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 10400stackPixelSize.Width = _scrollData._maxDesiredSize.Width; 10402extentSize.Width = stackPixelSize.Width; 10406viewportSize.Width = stackPixelSize.Width; 10424stackPixelSize.Width = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.X, 0) ? 10533viewportSize.Width = proposedViewportSize; 10552viewportSize.Width = _scrollData._viewport.Width;
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (2)
2076imageInputSize.Width = imageNaturalSize.Width; 2081imageInputSize.Width = imageNaturalSize.Width * (imageInputSize.Height / imageNaturalSize.Height);
src\Framework\System\Windows\FrameworkElement.cs (15)
4392frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4420unclippedDesiredSize.Width = unclippedBoundsTransformed.Width; 4431desiredSize.Width = mm.maxWidth; 4445desiredSize.Width = childBoundsTransformed.Width; 4582arrangeSize.Width = Math.Max(0, arrangeSize.Width - marginWidth); 4591transformedUnroundedDS.Width = Math.Max(0, transformedUnroundedDS.Width - marginWidth); 4607unclippedDesiredSize.Width = Math.Max(transformedUnroundedDS.Width, unclippedDesiredSize.Width); 4619arrangeSize.Width = unclippedDesiredSize.Width; 4632arrangeSize.Width = unclippedDesiredSize.Width; 4672arrangeSize.Width = unclippedDesiredSize.Width; 4699arrangeSize.Width = effectiveMaxWidth; 4750clippedInkSize.Width = inkRectTransformed.Width; 4916inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 4925inkSize.Width = inkRectTransformed.Width; 5247inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
857desiredSize.Width = Math.Min(_desiredSize.Width, constraint.Width);
src\Framework\System\Windows\Standard\DpiHelper.cs (1)
65return new Size { Width = pt.X, Height = pt.Y };
src\Framework\System\Windows\Window.cs (7)
1877frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1907arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1942childArrangeBounds.Width = Math.Max(0.0, arrangeBounds.Width - frameSize.Width); 2790sizeDeviceUnits.Width = requestedSizeDeviceUnits.X; 2857sizeDeviceUnits.Width = maxSizeDeviceUnits.X; 2869sizeDeviceUnits.Width = minSizeDeviceUnits.X; 3494childConstraint.Width = ((constraint.Width == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Width - frameSize.Width)));
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
418childConstraint.Width = availableSize.Width - 4.0; 431desired.Width += 4.0;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
65size.Width = size.Height;
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
239childConstraint.Width = availableSize.Width - borderX; 252desired.Width += borderX;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
674childConstraint.Width = availableSize.Width - borderSize.Width; 688desired.Width += borderSize.Width;
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
335childConstraint.Width = availableSize.Width - sideThickness2; 348desired.Width += sideThickness2;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
104size.Width = size.Height;
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
293childConstraint.Width = availableSize.Width - sideThickness2; 306desired.Width += sideThickness2;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
60size.Width = size.Height;
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
201actualSize.Width += child.DesiredSize.Width;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (3)
125this.rearangeStartSize.Width = 0; 356size.Width = this.ActualWidth - pos.X; 447this.rearangeStartSize.Width = this.ActualWidth;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
468size.Width = this.bottomRight.X - absolutePosition.X; 477size.Width = Math.Min(Math.Max(MinWidth, current.X), MaxWidth);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
60newSize.Width = Math.Min(Math.Max(this.parent.MinWidth, currentPosition.X), this.parent.MaxWidth);
1187 references to Width
PresentationCore (45)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (10)
122from.Size.Width + ((to.Size.Width - from.Size.Width) * progress), 220value1.Width + value2.Width, 324value1.Width - value2.Width, 570value.Size.Width * factor, 694|| IsInvalidDouble(value.Size.Width) || IsInvalidDouble(value.Size.Height) 720if (IsInvalidDouble(value.Width) || IsInvalidDouble(value.Height))
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (1)
139double width = element.RenderSize.Width;
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (5)
35_radius = Math.Max(_radii.Width, _radii.Height); 45if (DoubleUtil.AreClose(_radii.Width, _radii.Height)) 60if (_radii.Width > _radii.Height) 63sy = _radii.Width / _radii.Height; 67sx = _radii.Height / _radii.Width;
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
244XamlSerializationHelper.WriteDouble(_bw, size.Width);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
366return viewSize.Width / viewSize.Height; 373((2*point.X)/size.Width) - 1,
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
2690objectBounds.Location.X + objectBounds.Size.Width,
Core\CSharp\System\Windows\Interop\HwndSource.cs (7)
932|| !DoubleUtil.AreClose(_previousSize.Value.Width, newSize.Width) 1041Point pt = TransformToDevice(new Point(newSize.Width, newSize.Height)); 1293(_sizeToContent == SizeToContent.Width ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Width), 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); 1711if (_sizeToContent == SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
Core\CSharp\System\Windows\LayoutManager.cs (2)
487if (double.IsPositiveInfinity(element.PreviousConstraint.Width)) 488arrangeRect.Width = element.DesiredSize.Width;
Core\CSharp\System\Windows\Media\DrawingImage.cs (1)
60return Size.Width;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
936newVal.r = (float)s.Width;
Core\CSharp\System\Windows\Media3D\MatrixCamera.cs (1)
186viewportMatrix.ScalePrepend(new Vector3D(viewSize.Width/2,-viewSize.Height/2,1));
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (1)
204viewportMatrix.ScalePrepend(new Vector3D(viewSize.Width/2, -viewSize.Height/2, 1));
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (1)
211viewportMatrix.ScalePrepend(new Vector3D(viewSize.Width/2, -viewSize.Height/2, 1));
Core\CSharp\System\Windows\UIElement.cs (11)
582EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientMeasureElementBegin, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, availableSize.Width, availableSize.Height); 595if (DoubleUtil.IsNaN(availableSize.Width) || DoubleUtil.IsNaN(availableSize.Height)) 688if (double.IsPositiveInfinity(desiredSize.Width) || double.IsPositiveInfinity(desiredSize.Height)) 692if (DoubleUtil.IsNaN(desiredSize.Width) || DoubleUtil.IsNaN(desiredSize.Height)) 723EventTrace.EventProvider.TraceEvent(EventTrace.Event.WClientMeasureElementEnd, EventTrace.Keyword.KeywordLayout, EventTrace.Level.Verbose, perfElementID, _desiredSize.Width, _desiredSize.Height); 1004xLines.Add(this.RenderSize.Width); 1012if(!DoubleUtil.AreClose(xLines[lastGuideline], this.RenderSize.Width)) 1013xLines[lastGuideline] = this.RenderSize.Width; 1038bool widthChanged = !DoubleUtil.AreClose(oldSize.Width, newSize.Width); 1084return new Size(RoundLayoutValue(size.Width, dpiScaleX), RoundLayoutValue(size.Height, dpiScaleY));
PresentationFramework (923)
src\Framework\MS\Internal\AppModel\IconHelper.cs (11)
137|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 159var drawingDimensions = new Rect(0, 0, renderSize.Width, renderSize.Height); 162double renderRatio = renderSize.Width / renderSize.Height; 166if (img.Width <= renderSize.Width && img.Height <= renderSize.Height) 168drawingDimensions = new Rect((renderSize.Width - img.Width) / 2, (renderSize.Height - img.Height) / 2, img.Width, img.Height); 172double scaledRenderWidth = (img.Width / img.Height) * renderSize.Width; 173drawingDimensions = new Rect((renderSize.Width - scaledRenderWidth) / 2, 0, scaledRenderWidth, renderSize.Height); 178drawingDimensions = new Rect(0, (renderSize.Height - scaledRenderHeight) / 2, renderSize.Width, scaledRenderHeight); 188var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32); 443MyAbs(frame.PixelWidth, (int)size.Width, true) + 475Invariant.Assert(size.Width != 0, "input param width should not be zero");
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
891Point ptLogicalUnits = DeviceToLogicalUnits(new Point(size.Width, size.Height));
src\Framework\MS\Internal\Controls\InkCanvasFeedbackAdorner.cs (1)
166_frameSize.Width - CornerResizeHandleSize, _frameSize.Height - CornerResizeHandleSize));
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (6)
105newSize.Width = Math.Max(newSize.Width, left + child.DesiredSize.Width); 109newSize.Width = Math.Max(newSize.Width, child.DesiredSize.Width); 164x = arrangeSize.Width - child.DesiredSize.Width - right;
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (1)
315rectGeometry = new RectangleGeometry(new Rect(0, 0, RenderSize.Width, RenderSize.Height));
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
1623pageBounds = new Rect(0, 0, pageSize.Width, pageSize.Height);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (15)
1064if (double.IsInfinity(constraint.Width) || double.IsInfinity(constraint.Height)) 1124if (newPageSize.Width != pageSize.Width || 1147_viewportWidth != arrangeSize.Width) 1150_viewportWidth = arrangeSize.Width; 1248pageOffset = new Point(Math.Max(ViewportWidth, ExtentWidth) - (xOffset + pageSize.Width), yOffset); 1262xOffset += (pageSize.Width+HorizontalPageSpacing); 1654xOffset = (centerWidth - currentRow.RowSize.Width) / 2.0 + 2270(CurrentMinimumScale * pageSize.Width + HorizontalPageSpacing)); 2290double width = pageSize.Width * columns; 2431rowWidth = pivotRow.RowSize.Width - pivotRow.PageCount * HorizontalPageSpacing; 2749Math.Max(0.0, (ExtentWidth - row.RowSize.Width) / 2.0) : 0.0; 2755horizontalOffset += pageSize.Width * Scale + HorizontalPageSpacing; 2955if (newRow.RowSize.Width != _savedPivotRow.RowSize.Width ||
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (5)
275if (DocumentPage.Size != Size.Empty && DocumentPage.Size.Width != 0.0 ) 277_documentPageView.SetPageZoom(availableSize.Width / DocumentPage.Size.Width); 301new Point(arrangeSize.Width, _dropShadowWidth), 309new Size(arrangeSize.Width, _dropShadowWidth)
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (6)
136viewport = new Rect(0, 0, arrangeSize.Width, _document.StructuralCache.BackgroundFormatInfo.ViewportHeight); 202if (DoubleUtil.IsNaN(pageSize.Width)) 204pageSize.Width = constraint.Width; 206if (pageSize.Width > max) 211if (pageSize.Width < min) 217if (double.IsPositiveInfinity(pageSize.Width))
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (7)
389transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, flowDocumentPage.Size.Width, 0.0); 542if (DoubleUtil.IsNaN(newPageSize.Width)) 544newPageSize.Width = _defaultPageSize.Width; 861if (DoubleUtil.IsNaN(pageSize.Width)) 863pageSize.Width = _pageSize.Width; 865if (pageSize.Width > max) 870if (pageSize.Width < min)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (4)
89desiredSize.Width = Math.Min(constraint.Width, _formatter.DocumentPage.Size.Width); 160viewport = new Rect(_scrollData.HorizontalOffset, _scrollData.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height); 188PtsHelper.UpdateMirroringTransform(FlowDirection, FlowDirection.LeftToRight, _pageVisual, safeArrangeSize.Width);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
447else if (DoubleUtil.GreaterThan(point.X, _viewer.RenderSize.Width))
src\Framework\MS\Internal\Documents\RowCache.cs (20)
494_extentWidth = Math.Max(currentRow.RowSize.Width, _extentWidth); 696double pivotRowWidth = pivotRow.RowSize.Width; 786newRow.RowSize.Width + pageSize.Width > rowWidth ) 798newRow.RowSize.Width + pageSize.Width > rowWidth ) 949lastRow.RowSize.Width + pageSize.Width <= pivotRow.RowSize.Width) 991} while (newRow.RowSize.Width + pageSize.Width <= pivotRow.RowSize.Width 1015_extentWidth = newRow.RowSize.Width; 1026_extentWidth = Math.Max(newRow.RowSize.Width, _extentWidth); 1136if (newRow.RowSize.Width > _extentWidth) 1138_extentWidth = newRow.RowSize.Width; 1144else if (oldRowInfo.RowSize.Width != newRow.RowSize.Width) 1154_extentWidth = Math.Max(row.RowSize.Width, _extentWidth); 1422_rowSize.Width += pageSize.Width;
src\Framework\MS\Internal\Documents\ScrollData.cs (7)
85SetHorizontalOffset(owner, _offset.X - _viewport.Width); 93SetHorizontalOffset(owner, _offset.X + _viewport.Width); 138offset = Math.Max(0, Math.Min(_extent.Width - _viewport.Width, offset)); 191Rect viewport = new Rect(_offset.X, _offset.Y, _viewport.Width, _viewport.Height); 299return _extent.Width; 331return _viewport.Width;
src\Framework\MS\Internal\Documents\TextBoxView.cs (27)
432bool widthChanged = !DoubleUtil.AreClose(constraint.Width, _previousConstraint.Width); 479desiredSize = FullMeasureTick(safeConstraint.Width, lineProperties); 483desiredSize = IncrementalMeasure(safeConstraint.Width, lineProperties); 489double oldWidth = _contentSize.Width; 494if (oldWidth != desiredSize.Width && lineProperties.TextAlignment != TextAlignment.Left) 504desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 793suggestedX -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 1564double width = GetWrappingWidth(this.RenderSize.Width); 1565double formatWidth = GetWrappingWidth(_previousConstraint.Width); 1739double width = GetWrappingWidth(this.RenderSize.Width); 1740double formatWidth = GetWrappingWidth(_previousConstraint.Width); 1849double width = GetWrappingWidth(arrangeSize.Width); 1869double formatWidth = GetWrappingWidth(_previousConstraint.Width); 2015point.X -= GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2033rect.X += GetTextAlignmentCorrection(this.CalculatedTextAlignment, GetWrappingWidth(this.RenderSize.Width)); 2277desiredSize.Width = Math.Max(desiredSize.Width, line.Width); 2647desiredSize.Width = Math.Max(desiredSize.Width, _lineMetrics[i].Width); 2846double width = GetWrappingWidth(this.RenderSize.Width); 2910if (width < _contentSize.Width) 2912width = _contentSize.Width; 2915if (width > _previousConstraint.Width) 2917width = _previousConstraint.Width; 2940_contentSize.Width > width) 2942correction = -GetContentOffset(_contentSize.Width, textAlignment);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (5)
3337MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, _owner.Size.Width, 0.0); 3355MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, _owner.Size.Width, 0.0); 3381transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, _owner.Size.Width, 0.0); 3399MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, _owner.Size.Width, 0.0); 3417MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, _owner.Size.Width, 0.0);
src\Framework\MS\Internal\Documents\UIElementIsland.cs (2)
92islandSize.Width = horizontalAutoSize ? _child.DesiredSize.Width : availableSize.Width;
src\Framework\MS\Internal\Helper.cs (10)
1103headerSize.Width = Math.Max(virtualizingElement.DesiredSize.Width, headerSize.Width); 1134itemPixelSize.Width = Math.Max(desiredSize.Width, itemPixelSize.Width); 1147itemPixelSizeBeforeViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeBeforeViewport.Width); 1159itemPixelSizeInViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeInViewport.Width); 1170itemPixelSizeAfterViewport.Width = Math.Max(desiredSize.Width, itemPixelSizeAfterViewport.Width);
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
401inkCanvas.Width = size.Width;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
412Rect elementBounds = new Rect(0, 0, size.Width, size.Height); // Rect in element space 1097Rect rect = new Rect(0, 0, size.Width, size.Height); // Rect in element space
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
420parentTransform.TryTransform(new Point(childElement.RenderSize.Width, 0), out elementPoints.UpperRight); 422parentTransform.TryTransform(new Point(childElement.RenderSize.Width, childElement.RenderSize.Height), out elementPoints.LowerRight);
src\Framework\MS\Internal\KnownBoxes.cs (1)
20internal SizeBox(Size size): this(size.Width, size.Height) {}
src\Framework\MS\Internal\LayoutDump.cs (1)
397writer.WriteAttributeString("Width", size.Width.ToString ("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
192rectCell.du = TextDpi.ToTextDpi(subpageSize.Width);
src\Framework\MS\Internal\PtsHost\FigureHelper.cs (1)
246double pageWidth = pageSize.Width - (pageMargin.Left + pageMargin.Right);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (6)
138if(!DoubleUtil.AreClose(_lastFormatWidth, pageSize.Width) || !DoubleUtil.AreClose(_pageMargin.Left, pageMargin.Left) || 145_lastFormatWidth = pageSize.Width; 168SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, _ptsPage.CalculatedSize.Width, _ptsPage.CalculatedSize.Height)); 197double pageMarginAdjustment = PtsHelper.CalculatePageMarginAdjustment(_structuralCache, pageSize.Width - (pageMargin.Left + pageMargin.Right)); 207pageSize.Width - (pageMargin.Left + pageMargin.Right), 900PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
src\Framework\MS\Internal\PtsHost\Line.cs (1)
436if (!line.HasCollapsed || ((rect.Left + inlineObject.UIElementIsland.Root.DesiredSize.Width) < line.Width))
src\Framework\MS\Internal\PtsHost\PtsPage.cs (1)
858_contentSize.Width = Math.Max(Math.Max(TextDpi.FromTextDpi(bbox.fsrc.du), TextDpi.MinWidth), _calculatedSize.Width);
src\Framework\MS\Internal\PtsHost\RunClient.cs (4)
69return new TextEmbeddedObjectMetrics(desiredSize.Width, desiredSize.Height, baseline); 85double baseline = !sideways ? size.Height : size.Width; 93return new Rect(0, -baseline, sideways ? size.Height : size.Width, sideways ? size.Width : size.Height);
src\Framework\MS\Internal\PtsHost\Section.cs (3)
116durPage = TextDpi.ToTextDpi(pageSize.Width); 235ccol = PtsHelper.CalculateColumnCount(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, enableColumns); 381PtsHelper.GetColumnsInfo(columnProperties, lineHeight, pageSize.Width - (pageMargin.Left + pageMargin.Right), pageFontSize, pageFontFamily, ncol, pfscolinfo, enableColumns);
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (2)
744internal double PageWidth { get { return _currentFormatInfo.PageSize.Width; } } 775PageSize.Width - PageMargin.Left - PageMargin.Right,
src\Framework\MS\Internal\Text\InlineObject.cs (4)
65return new TextEmbeddedObjectMetrics(desiredSize.Width, desiredSize.Height, baseline); 80double baseline = !sideways ? size.Height : size.Width; 87return new Rect(0, -baseline, sideways ? size.Height : size.Width, sideways ? size.Width : size.Height);
src\Framework\MS\Internal\Text\Line.cs (1)
74_wrappingWidth = _owner.RenderSize.Width;
src\Framework\MS\Internal\Text\TextDpi.cs (12)
89fsvector.du = ToTextDpi(size.Width); 123size = new Size(FromTextDpi(ToTextDpi(size.Width)), FromTextDpi(ToTextDpi(size.Height))); 138if (size.Width > _maxSize) { size.Width = _maxSize; } 139else if (size.Width < _minSize) { size.Width = _minSize; } 154if (size.Width > _maxSize) { size.Width = _maxSize; } 155else if (size.Width < _minSize) { size.Width = _minSize; } 167if (pageMargin.Left >= pageSize.Width) { pageMargin.Right = 0.0; } 168if (pageMargin.Left + pageMargin.Right >= pageSize.Width) 170pageMargin.Right = Math.Max(0.0, pageSize.Width - pageMargin.Left - _minSize); 171if (pageMargin.Left + pageMargin.Right >= pageSize.Width) 173pageMargin.Left = pageSize.Width - _minSize; 194if (size.Width > _maxObjSize) { size.Width = _maxObjSize; }
src\Framework\System\Windows\Controls\Border.cs (16)
238Size combined = new Size(border.Width + padding.Width, border.Height + padding.Height); 241Size childConstraint = new Size(Math.Max(0.0, constraint.Width - combined.Width), 249mySize.Width = childSize.Width + combined.Width; 255mySize = new Size(border.Width + padding.Width, border.Height + padding.Height); 444new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 504new Point(RenderSize.Width - halfThickness, 0), 505new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 537new Point(RenderSize.Width, halfThickness)); 567new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 586ptBR = new Point(UIElement.RoundLayoutValue(RenderSize.Width - border.Right, dpi.DpiScaleX), 591ptBR = new Point(RenderSize.Width - UIElement.RoundLayoutValue(border.Right, dpi.DpiScaleX), 598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
src\Framework\System\Windows\Controls\Canvas.cs (2)
322x = arrangeSize.Width - child.DesiredSize.Width - right;
src\Framework\System\Windows\Controls\ComboBox.cs (3)
938visualBrush.Transform = new MatrixTransform(new Matrix(-1.0, 0.0, 0.0, 1.0, _clonedElement.RenderSize.Width, 0.0)); 944rect.Width = _clonedElement.RenderSize.Width; 976rect.Width = _clonedElement.RenderSize.Width;
src\Framework\System\Windows\Controls\DataGrid.cs (4)
1982double widthChange = newSize.Width - oldSize.Width; 1985_finalViewportWidth = newSize.Width; 1988_originalViewportWidth = oldSize.Width;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
870rect.X = RenderSize.Width - thickness; 878Rect rect = new Rect(new Size(RenderSize.Width, thickness));
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (19)
124desiredWidth = child.DesiredSize.Width; 145DoubleUtil.AreClose(desiredWidth, 0.0) ? childDesiredSize.Width : desiredWidth); 191measureWidth += blockMeasureSize.Width; 321allocatedSpace += childSize.Width; 322nextFrozenCellStart += childSize.Width; 330if (DoubleUtil.LessThanOrClose(nextNonFrozenCellStart + childSize.Width, viewportStartX)) 350nextNonFrozenCellStart += childSize.Width; 364nextNonFrozenCellStart = nextFrozenCellStart + childSize.Width; 365allocatedSpace += childSize.Width; 369double clipWidth = childSize.Width - cellChoppedWidth; 395nextNonFrozenCellStart += childSize.Width; 396allocatedSpace += childSize.Width; 403measureSize.Width += childSize.Width; 618measureWidth += childSize.Width; 1376SetDataGridCellPanelWidth(children, arrangeSize.Width); 1486childWidth = child.DesiredSize.Width; 2029if (!DoubleUtil.IsNaN(rowPresenterAvailableSize.Width) && !Double.IsInfinity(rowPresenterAvailableSize.Width)) 2031availableViewportWidth = rowPresenterAvailableSize.Width;
src\Framework\System\Windows\Controls\DataGridHelper.cs (4)
40return new Size(size.Width, Math.Max(0.0, size.Height - thickness)); 44return new Size(Math.Max(0.0, size.Width - thickness), size.Height); 263if (!DoubleUtil.AreClose(element.DesiredSize.Width, constraintWidth)) 269desiredWidth = element.DesiredSize.Width;
src\Framework\System\Windows\Controls\DockPanel.cs (9)
232childConstraint = new Size(Math.Max(0.0, constraint.Width - accumulatedWidth), 254accumulatedWidth += childDesiredSize.Width; 259parentWidth = Math.Max(parentWidth, accumulatedWidth + childDesiredSize.Width); 297Math.Max(0.0, arrangeSize.Width - (accumulatedLeft + accumulatedRight)), 305accumulatedLeft += childDesiredSize.Width; 306rcChild.Width = childDesiredSize.Width; 310accumulatedRight += childDesiredSize.Width; 311rcChild.X = Math.Max(0.0, arrangeSize.Width - accumulatedRight); 312rcChild.Width = childDesiredSize.Width;
src\Framework\System\Windows\Controls\Grid.cs (13)
442gridDesiredSize.Width = Math.Max(gridDesiredSize.Width, child.DesiredSize.Width); 450bool sizeToContentU = double.IsPositiveInfinity(constraint.Width); 648if (HasStarCellsU) { ResolveStar(DefinitionsU, constraint.Width); } 658if (HasStarCellsU) { ResolveStar(DefinitionsU, constraint.Width); } 687if (HasStarCellsU) { ResolveStar(DefinitionsU, constraint.Width); } 750SetFinalSize(DefinitionsU, arrangeSize.Width, true); 1284double oldWidth = children[i].DesiredSize.Width; 1288hasDesiredSizeUChanged |= !DoubleUtil.AreClose(oldWidth, children[i].DesiredSize.Width); 1294DefinitionsU[PrivateCells[i].ColumnIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Width, DefinitionsU[PrivateCells[i].ColumnIndex].UserMaxSize)); 1303children[i].DesiredSize.Width); 1339key.U ? referenceSize.Width : referenceSize.Height); 4245boundsSize.Width, grid.DefinitionsV[i].FinalOffset);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
264double childConstraintWidth = Math.Max(0.0, constraint.Width - accumulatedWidth); 279DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.DesiredSize.Width); 341double remainingWidth = arrangeSize.Width; 401_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
150double childConstraintWidth = Math.Max(0.0, constraint.Width - accumulatedWidth); 170column.EnsureWidth(child.DesiredSize.Width); 219double remainingWidth = arrangeSize.Width;
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 (2)
350return new Size(naturalSize.Width * scaleFactor.Width, naturalSize.Height * scaleFactor.Height);
src\Framework\System\Windows\Controls\InkPresenter.cs (4)
185newSize.Width = Math.Max(newSize.Width, sizeStrokes.Width); 219availableSize = new Size(Math.Min(arrangeSize.Width, _constraintSize.Width),
src\Framework\System\Windows\Controls\MediaElement.cs (2)
803return new Size(naturalSize.Width * scaleFactor.Width, naturalSize.Height * scaleFactor.Height);
src\Framework\System\Windows\Controls\Panel.cs (1)
76new Rect(0.0, 0.0, renderSize.Width, renderSize.Height));
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (11)
205new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 258contentConstraint.Width = Math.Max(0.0, contentConstraint.Width - bulletSize.Width); 264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height)); 290contentOffsetX = bulletSize.Width; 301contentSize.Width = Math.Max(content.DesiredSize.Width, arrangeSize.Width - bullet.DesiredSize.Width); 304content.Arrange(new Rect(contentOffsetX, 0, contentSize.Width, contentSize.Height)); 313bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.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 (8)
122desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 130desiredSize.Width = Math.Max(desiredSize.Width, indicatorSize.Width); 134desiredSize.Width = Math.Min(availableSize.Width, desiredSize.Width); 154childRect.Width = Math.Max(finalSize.Width, dataGrid.CellsPanelActualWidth); 985headerEndX = headerStartX + currentHeader.RenderSize.Width;
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 (2)
198baseSize.Width > dataGridOwner.RowHeaderActualWidth) 200dataGridOwner.RowHeaderActualWidth = baseSize.Width;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (18)
241if (!Double.IsInfinity(availableSize.Width) || !Double.IsInfinity(availableSize.Height)) 244if (Double.IsInfinity(availableSize.Width)) 248newPageSize.Width = newPageSize.Height * (pageSize.Width / pageSize.Height); // Keep aspect ratio. 253newPageSize.Width = availableSize.Width / _pageZoom; 254newPageSize.Height = newPageSize.Width * (pageSize.Height / pageSize.Width); // Keep aspect ratio. 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); 400pageTransform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, pageSize.Width, 0.0); 415pageSize = new Size(pageSize.Width * _pageZoom, pageSize.Height * _pageZoom); 420if (!DoubleUtil.IsOne(pageZoom.Width) || !DoubleUtil.IsOne(pageZoom.Height)) 422pageScaleTransform = new ScaleTransform(pageZoom.Width, pageZoom.Height); 431pageSize = new Size(pageSize.Width * pageZoom.Width, pageSize.Height * pageZoom.Height); 435_pageHost.CachedOffset = new Point((finalSize.Width - pageSize.Width) / 2, (finalSize.Height - pageSize.Height) / 2);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (5)
2344placementRect = new Rect(0.0, 0.0, target.RenderSize.Width, target.RenderSize.Height); 2637desiredSize.Width = Math.Min(desiredSize.Width, screenBounds.Width); 2638desiredSize.Width = Math.Min(desiredSize.Width, limitSize.Width); 2640double maxHeight = RestrictPercentage * screenBounds.Width * screenBounds.Height / desiredSize.Width;
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (6)
194Size restricted1DDesiredSize = new Size(restrictWidth ? restrictedSize.Width : Double.PositiveInfinity, 223restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 235return new Size(Math.Min(restrictedSize.Width, restricted2DDesiredSize.Width), 322double width = _adornerDecorator.RenderSize.Width;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (9)
265get { return (IsScrollClient) ? EnsureScrollData()._extent.Width : 0.0; } 279get { return (IsScrollClient) ? EnsureScrollData()._viewport.Width : 0.0; } 451desiredSize.Width = Math.Min(constraint.Width, desiredSize.Width); 500childRect.Width = Math.Max(childRect.Width, arrangeSize.Width); 820if (Double.IsInfinity(viewport.Width)) viewport.Width = extent.Width; 849CoerceOffset(_scrollData._offset.X, _scrollData._extent.Width, _scrollData._viewport.Width),
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (19)
119if (currentRowWidth + childSize.Width > constraint.Width && numInCurrentRow > 0) 124currentRowWidth = childSize.Width; 130currentRowWidth += childSize.Width; 141if (double.IsInfinity(contentSize.Width) || DoubleUtil.IsNaN(contentSize.Width) || maxRowWidth < constraint.Width) 144contentSize.Width = constraint.Width; 161if (contentSize.Width < childSize.Width) 162contentSize.Width = childSize.Width; 214desiredSizeWithoutMargin.Width = Math.Max(0d, element.DesiredSize.Width - margin.Left - margin.Right); 228headerSize[childIndex] = childSize.Width; 246solution = CalculateHeaderDistribution(arrangeSize.Width, headerSize); 279cellSize.Width = arrangeSize.Width - childOffset.X; 282child.Arrange(new Rect(childOffset.X, childOffset.Y, cellSize.Width, cellSize.Height)); 286childSize.Width = Math.Max(0d, childSize.Width - leftOffset - rightOffset); 289childOffset.X += cellSize.Width; 314child.Arrange(new Rect(0, childOffsetY, arrangeSize.Width, childSize.Height));
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (11)
379if (DoubleUtil.GreaterThanOrClose(ReservedSpace, size.Width)) 386endPoint = new Point(halfReservedSpace + size.Width, size.Height); 387logicalToPhysical = size.Width / range; 392if (DoubleUtil.GreaterThanOrClose(ReservedSpace, size.Width)) 399endPoint = new Point(halfReservedSpace + size.Width, 0d); 400logicalToPhysical = size.Width / range; 410tickLen = -size.Width; 411startPoint = new Point(size.Width, size.Height + halfReservedSpace); 412endPoint = new Point(size.Width, halfReservedSpace); 423tickLen = size.Width; 565double minInterval = (Maximum - Minimum) / size.Width;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (20)
65_wrapWidth = double.IsNaN(WrapWidth) ? constraint.Width : WrapWidth; 116if (DoubleUtil.GreaterThan(childDesiredSize.Width, _wrapWidth)) 118_wrapWidth = childDesiredSize.Width; 123_wrapWidth = Math.Min(_wrapWidth, constraint.Width); 130if (DoubleUtil.GreaterThan(curLineSize.Width + sz.Width, _wrapWidth)) //need to switch to another line 132_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 136if (DoubleUtil.GreaterThan(sz.Width, _wrapWidth)) //the element is wider then the constraint - give it a separate line 138_panelSize.Width = Math.Max(sz.Width, _panelSize.Width); 145curLineSize.Width += sz.Width; 151_panelSize.Width = Math.Max(curLineSize.Width, _panelSize.Width); 167_wrapWidth = Math.Min(_wrapWidth, arrangeBounds.Width); 174if (DoubleUtil.GreaterThan(curLineSize.Width + sz.Width, _wrapWidth)) //need to switch to another line 186curLineSize.Width += sz.Width; 214child.Arrange(new Rect(x, y, child.DesiredSize.Width, lineHeight)); 215x += child.DesiredSize.Width;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (14)
105newExtent = childDesiredSize.Width + panelDesiredSize.Width; 125panelDesiredSize.Width += childDesiredSize.Width; 130panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 184overflowExtent += childDesiredSize.Width; 190panelDesiredSize.Width = Math.Max(panelDesiredSize.Width, childDesiredSize.Width); 252maxExtent = constraint.Width; 267MinLength = horizontal ? stackDesiredSize.Width : stackDesiredSize.Height; 275MaxLength = (horizontal ? stackDesiredSize.Width : stackDesiredSize.Height) + overflowExtent; 312previousChildSize = child.DesiredSize.Width; 321rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width);
src\Framework\System\Windows\Controls\Primitives\Track.cs (7)
82val = Value + ValueFromDistance(pt.X - (RenderSize.Width * 0.5), pt.Y - ThumbCenterOffset); 547CoerceLength(ref decreaseButtonLength, arrangeSize.Width); 548CoerceLength(ref increaseButtonLength, arrangeSize.Width); 549CoerceLength(ref thumbLength, arrangeSize.Width); 596trackLength = arrangeSize.Width; 597thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Width; 643trackLength = arrangeSize.Width;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (5)
182Size childConstraint = new Size(constraint.Width / _columns, constraint.Height / _rows); 195if (maxChildDesiredWidth < childDesiredSize.Width) 197maxChildDesiredWidth = childDesiredSize.Width; 218Rect childBounds = new Rect(0, 0, arrangeSize.Width / _columns, arrangeSize.Height / _rows); 220double xBound = arrangeSize.Width - 1.0;
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
317if (constraint.Width == Double.PositiveInfinity)
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (2)
96get { return _viewport.Width; } 129get { return _extent.Width; }
src\Framework\System\Windows\Controls\Slider.cs (12)
947new Point((targetSize.Width - popupSize.Width) * 0.5, -popupSize.Height), 956new Point(-popupSize.Width, (targetSize.Height - popupSize.Height) * 0.5), 967new Point((targetSize.Width - popupSize.Width) * 0.5, targetSize.Height) , 977new Point(targetSize.Width, (targetSize.Height - popupSize.Height) * 0.5), 1017if (DoubleUtil.AreClose(range, 0d) || (DoubleUtil.AreClose(trackSize.Width, thumbSize.Width))) 1023valueToSize = Math.Max(0.0, (trackSize.Width - thumbSize.Width) / range); 1029Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(Maximum - SelectionEnd, 0) * valueToSize); 1033Canvas.SetLeft(rangeElement, (thumbSize.Width * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize);
src\Framework\System\Windows\Controls\Stack.cs (23)
281newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width); 405return _scrollData._extent.Width; 429return _scrollData._viewport.Width; 581logicalVisibleSpace = constraint.Width; 609stackDesiredSize.Width += childDesiredSize.Width; 611childLogicalSize = childDesiredSize.Width; 615stackDesiredSize.Width = Math.Max(stackDesiredSize.Width, childDesiredSize.Width); 651if (fHorizontal) { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Width; } 671scrollData.SetPhysicalViewport(viewport.Width); 683offset.X = Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width)); 688stackDesiredSize.Width = Math.Min(stackDesiredSize.Width, constraint.Width); 765previousChildSize = child.DesiredSize.Width; 774rcChild.Width = Math.Max(arrangeSize.Width, child.DesiredSize.Width); 850? ((UIElement)children[i]).DesiredSize.Width 938viewportSize = (int)_scrollData._viewport.Width; 957double nextChildSize = ((fHorizontal) ? childDesiredSize.Width : childDesiredSize.Height); 964nextChildSize = ((fHorizontal) ? childDesiredSize.Width : childDesiredSize.Height); 982newRect.Width = InternalChildren[childIndex].DesiredSize.Width;
src\Framework\System\Windows\Controls\TextBlock.cs (30)
1290bypassMeasure = DoubleUtil.AreClose(constraint.Width, _referenceSize.Width) || (lineProperties.TextWrapping == TextWrapping.NoWrap); 1295DoubleUtil.AreClose(constraint.Width, _referenceSize.Width) && 1353Size contentSize = new Size(Math.Max(0.0, constraint.Width - (padding.Left + padding.Right)), 1365line.Format(dcp, contentSize.Width, GetLineProperties(dcp == 0, lineProperties), textLineBreakIn, _textBlockCache._textRunCache, /*Show paragraph ellipsis*/ false); 1393desiredSize.Width = Math.Max(desiredSize.Width, line.GetCollapsedWidth()); 1492double wrappingWidth = CalcWrappingWidth(arrangeSize.Width); 1588ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1600double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1761double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 1892double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2067Size contentSize = new Size(Math.Max(0.0, _referenceSize.Width - (padding.Left + padding.Right)), 2142double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2179double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2224double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2280double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2381double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2509double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2594double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 2702double wrappingWidth = CalcWrappingWidth(RenderSize.Width); 3206Size contentSize = new Size(Math.Max(0.0, computedSize.Width - (padding.Left + padding.Right)), 3212contentOffset.X = contentSize.Width - wrappingWidth; 3216contentOffset.X = (contentSize.Width - wrappingWidth) / 2; 3274if (width < _previousDesiredSize.Width) 3276width = _previousDesiredSize.Width; 3278if (width > _referenceSize.Width) 3280width = _referenceSize.Width; 3283bool usingReferenceWidth = DoubleUtil.AreClose(width, _referenceSize.Width); 3411double wrappingWidth = CalcWrappingWidth(RenderSize.Width);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
568extraLength = Math.Max(0.0, desiredSize.Width - toolBarPanel.DesiredSize.Width + margin.Left + margin.Right);
src\Framework\System\Windows\Controls\ToolBarTray.cs (16)
348new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 374double remainingLength = fHorizontal ? constraint.Width : constraint.Height; 399bandThickness = Math.Max(bandThickness, fHorizontal ? toolBar.DesiredSize.Height : toolBar.DesiredSize.Width); 400bandLength += fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 401remainingLength -= fHorizontal ? toolBar.DesiredSize.Width : toolBar.DesiredSize.Height; 414toolBarTrayDesiredSize.Width = Math.Max(toolBarTrayDesiredSize.Width, bandLength); 452Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height ); 456rcChild.X += toolBarArrangeSize.Width; 696if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Width - shrinkAmount, toolBar.MinLength)) 698toolBar.Width = toolBar.RenderSize.Width - shrinkAmount; 704shrinkAmount -= toolBar.RenderSize.Width - toolBar.MinLength; 744if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Width + expandAmount, toolBar.MaxLength)) 746toolBar.Width = toolBar.RenderSize.Width + expandAmount; 752expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Width; 806toolBarOffset += fHorizontal ? currentToolBar.RenderSize.Width : currentToolBar.RenderSize.Height; // points at the end of currentToolBar 813currentToolBar.Width = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Width - toolBarOffset + position);
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 (9)
333parentSize.Width = scalefac.Width * childSize.Width; 360InternalTransform = new ScaleTransform(scalefac.Width, scalefac.Height); 366arrangeSize.Width = scalefac.Width * childSize.Width; 390bool isConstrainedWidth = !Double.IsPositiveInfinity(availableSize.Width); 397scaleX = (DoubleUtil.IsZero(contentSize.Width)) ? 0.0 : availableSize.Width / contentSize.Width;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (297)
574_scrollData._offset.X = ScrollContentPresenter.CoerceOffset(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width); 934_scrollData._extent.Width - _scrollData._viewport.Width); 982if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset, _scrollData._extent.Width - _scrollData._viewport.Width)) 984Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset, _scrollData._extent.Width - _scrollData._viewport.Width), "The actual offset should already be at the beginning or the end."); 1298firstContainerOffsetFromViewport += virtualizingElement.HeaderDesiredSizes.LogicalSize.Width; 1492newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width); 1822return _scrollData._extent.Width; 1846return _scrollData._viewport.Width; 2581double newContainerSpan = isHorizontal ? newContainerSize.Width : newContainerSize.Height; 2972viewport.Width = stackPixelSize.Width; 3328arrangeLength = Math.Max(isHorizontal ? arrangeSize.Height : arrangeSize.Width, arrangeLength); 3900((isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Width, PreviousConstraint.Width)) || 4266viewport = new Rect(offsetX, offsetY, size.Width, size.Height); 4271viewport = new Rect(offsetX, offsetY, viewportSize.Width, viewportSize.Height); 4503viewport = new Rect(0, 0, constraint.Width, constraint.Height); 4648double approxSizeOfLogicalUnit = (DoubleUtil.GreaterThan(_previousStackPixelSizeInViewport.Width, 0.0) && DoubleUtil.GreaterThan(_previousStackLogicalSizeInViewport.Width, 0.0)) ? 4649_previousStackPixelSizeInViewport.Width / _previousStackLogicalSizeInViewport.Width : ScrollViewer._scrollLineDelta; 4651pixelSize = stackPixelSize.Width; 4652logicalSize = stackLogicalSize.Width; 4656pixelSizeBeforeViewport = stackPixelSizeInCacheBeforeViewport.Width; 4657pixelSizeAfterViewport = stackPixelSizeInCacheAfterViewport.Width; 4658logicalSizeBeforeViewport = stackLogicalSizeInCacheBeforeViewport.Width; 4659logicalSizeAfterViewport = stackLogicalSizeInCacheAfterViewport.Width; 4710if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width, _scrollData._extent.Width)) 4712extendedViewport.Width = _scrollData._extent.Width - extendedViewport.X; 4745if (DoubleUtil.GreaterThan(extendedViewport.X + extendedViewport.Width / approxSizeOfLogicalUnit, _scrollData._extent.Width)) 4747extendedViewport.Width = (_scrollData._extent.Width - extendedViewport.X) * approxSizeOfLogicalUnit; 4880viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X, extent.Width, viewport.Width); 4881if (!IsPixelBased && isHorizontal && DoubleUtil.IsZero(viewport.Width) && DoubleUtil.AreClose(viewport.X, extent.Width)) 4883viewport.X = ScrollContentPresenter.CoerceOffset(viewport.X - 1, extent.Width, viewport.Width); 4961viewport.X -= IsPixelBased ? pixelSize.Width : logicalSize.Width; 4969if (IsPixelBased && DoubleUtil.GreaterThan(pixelSize.Width, parentViewport.X)) 4975sizeAfterStartViewportEdge = pixelSize.Width - parentViewport.X; 4976sizeBeforeStartViewportEdge = pixelSize.Width - sizeAfterStartViewportEdge; 4986cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Width * sizeBeforeStartViewportEdge / pixelSize.Width), 0); 5007if (DoubleUtil.GreaterThanOrClose(parentViewport.Width, pixelSize.Width)) 5013viewport.Width = Math.Max(0, parentViewport.Width - pixelSize.Width); 5022sizeAfterEndViewportEdge = pixelSize.Width - sizeBeforeEndViewportEdge; 5032cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Width * sizeAfterEndViewportEdge / pixelSize.Width), 0); 5044cacheAfterSize = Math.Max(cacheAfterSize - pixelSize.Width, 0); 5048cacheAfterSize = Math.Max(cacheAfterSize - logicalSize.Width, 0); 5491containerSpan = isHorizontal ? containerSize.Width : containerSize.Height; 5747stackPixelSize.Width += childDesiredSize.Width; 5832distance += containerSize.Width; 5888distance += containerSize.Width; 5889pixelDistance += containerPixelSize.Width; 5941containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 5971containerSize.Width = IsPixelBased ? DesiredSize.Width : 1; 6050double pixelWidth = DesiredSize.Width; 6087uniformOrAverageContainerSize = isHorizontal ? containerSize.Width : containerSize.Height; 6098areContainersUniformlySized = DoubleUtil.AreClose(containerSize.Width, uniformOrAverageContainerSize); 6138uniformOrAverageContainerSize = isHorizontal ? containerSize.Width : containerSize.Height; 6139uniformOrAverageContainerPixelSize = isHorizontal ? containerPixelSize.Width : containerPixelSize.Height; 6161areContainersUniformlySized = DoubleUtil.AreClose(containerSize.Width, uniformOrAverageContainerSize) 6162&& (ignoreContainerPixelSize || DoubleUtil.AreClose(containerPixelSize.Width, uniformOrAverageContainerPixelSize)); 6198oldSpan = (oldValue != null) ? oldSize.Width : uniformOrAverageContainerSize; 6199newSpan = containerSize.Width; 6230oldSpan = (oldValue != null) ? oldCSD.ItemSize.Width : uniformOrAverageContainerSize;; 6231newSpan = containerSize.Width; 6301inset.Left = headerDesiredSizes.PixelSize.Width + margin.Left; 6342double right = DoubleUtil.AreClose(itemsSize.Width, itemsRect.Right) ? 0 : itemsRect.Right-itemsSize.Width; 6503return DoubleUtil.GreaterThanOrClose(stackLogicalSizeInCache.Width, cacheSize); 6514return DoubleUtil.GreaterThanOrClose(stackPixelSizeInCache.Width, cacheSize); 6528return DoubleUtil.GreaterThanOrClose(stackPixelSizeInViewport.Width, viewport.Width); 6590childViewport.X = (IsPixelBased ? stackPixelSizeInCacheBeforeViewport.Width : stackLogicalSizeInCacheBeforeViewport.Width) + containerSize.Width; 6596(IsPixelBased ? stackPixelSizeInViewport.Width + stackPixelSizeInCacheAfterViewport.Width : 6597stackLogicalSizeInViewport.Width + stackLogicalSizeInCacheAfterViewport.Width); 6598childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6603childViewport.Width = Math.Max(childViewport.Width - stackPixelSizeInViewport.Width, 0.0); 6611Math.Max(parentCacheSize.CacheBeforeViewport - stackLogicalSizeInCacheBeforeViewport.Width, 0.0), 6614Math.Max(parentCacheSize.CacheAfterViewport - stackLogicalSizeInCacheAfterViewport.Width, 0.0)); 6622Math.Max(parentCacheSize.CacheBeforeViewport - stackPixelSizeInCacheBeforeViewport.Width, 0.0), 6625Math.Max(parentCacheSize.CacheAfterViewport - stackPixelSizeInCacheAfterViewport.Width, 0.0)); 6774childLogicalSize.Width = Math.Max(itemDesiredSizes.LogicalSize.Width, logicalHeaderSize.Width); 6778childLogicalSize.Width = itemDesiredSizes.LogicalSize.Width + logicalHeaderSize.Width; 6783((isHorizontal && DoubleUtil.AreClose(itemDesiredSizes.PixelSize.Width, itemDesiredSizes.PixelSizeInViewport.Width)) || 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, 6958( isHorizontal && (itemDesiredSizes.PixelSize.Width > 0 || 6959itemDesiredSizes.LogicalSize.Width > 0))) 6979: new Size(childDesiredSize.Width, Math.Max(inset.Top, 0)); 6993: new Size(childDesiredSize.Width, Math.Max(inset.Bottom,0)); 7004adjustedChildViewport.X -= IsPixelBased ? frontPixelSize.Width + itemDesiredSizes.PixelSize.Width 7005: frontLogicalSize.Width + itemDesiredSizes.LogicalSize.Width; 7006adjustedChildViewport.Width = Math.Max(0, adjustedChildViewport.Width - childPixelSizeInViewport.Width); 7032childLogicalSizeInCacheBeforeViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheBeforeViewport.Width, 0) ? 1 : 0, 7038childLogicalSizeInCacheAfterViewport = new Size(DoubleUtil.GreaterThan(childPixelSizeInCacheAfterViewport.Width, 0) ? 1 : 0, 7097pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.X, childPixelSize.Width) ? Math.Max(childViewport.X, 0.0) : childPixelSize.Width; 7098pixelSizeInViewport = Math.Min(childViewport.Width, childPixelSize.Width - pixelSizeBeforeViewport); 7099pixelSizeAfterViewport = Math.Max(childPixelSize.Width - pixelSizeInViewport - pixelSizeBeforeViewport, 0.0); // Please note that due to rounding errors this subtraction can lead to negative values. Hence the Math.Max call 7115if (DoubleUtil.GreaterThanOrClose(childViewport.X, childLogicalSize.Width)) 7117pixelSizeBeforeViewport = childPixelSize.Width; 7120logicalSizeBeforeViewport = childLogicalSize.Width; 7127pixelSizeInViewport = childPixelSize.Width; 7131pixelSizeAfterViewport = childPixelSize.Width; 7134logicalSizeAfterViewport = childLogicalSize.Width; 7140Debug.Assert(DoubleUtil.AreClose(pixelSizeInViewport + pixelSizeBeforeViewport + pixelSizeAfterViewport, childPixelSize.Width), "The computed sizes within and outside the viewport should add up to the childPixelSize."); 7142if (DoubleUtil.GreaterThan(childPixelSize.Width, 0.0)) 7144logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Width * pixelSizeBeforeViewport / childPixelSize.Width); 7145logicalSizeAfterViewport = Math.Floor(childLogicalSize.Width * pixelSizeAfterViewport / childPixelSize.Width); 7146logicalSizeInViewport = childLogicalSize.Width - logicalSizeBeforeViewport - logicalSizeAfterViewport; 7150logicalSizeInViewport = childLogicalSize.Width - logicalSizeBeforeViewport - logicalSizeAfterViewport; 7182if (DoubleUtil.GreaterThanOrClose(childViewport.X, childPixelSize.Width) || 7200if (DoubleUtil.GreaterThanOrClose(childViewport.X, childLogicalSize.Width) || 7245double childPixelWidthInViewport = Math.Min(childViewport.Width, childPixelSize.Width - Math.Max(childViewport.X, 0.0)); 7248childPixelSizeInViewport.Width = Math.Max(childPixelSizeInViewport.Width, childPixelWidthInViewport); 7250childPixelSizeInCacheBeforeViewport.Width = Math.Max(childPixelSizeInCacheBeforeViewport.Width, childPixelWidthInViewport); 7252childPixelSizeInCacheAfterViewport.Width = Math.Max(childPixelSizeInCacheAfterViewport.Width, childPixelWidthInViewport); 7255childLogicalSizeInViewport.Width = Math.Max(childLogicalSizeInViewport.Width, childLogicalSize.Width); 7257childLogicalSizeInCacheBeforeViewport.Width = Math.Max(childLogicalSizeInCacheBeforeViewport.Width, childLogicalSize.Width); 7259childLogicalSizeInCacheAfterViewport.Width = Math.Max(childLogicalSizeInCacheAfterViewport.Width, childLogicalSize.Width); 7301sz1.Width += sz2.Width; 7307sz1.Width = Math.Max(sz1.Width, sz2.Width); 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, 7383computedAreContainersUniformlySized = DoubleUtil.AreClose(childSize.Width, uniformOrAverageContainerSize); 7427sumOfContainerSizes += containerSize.Width; 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, 7554computedAreContainersUniformlySized = DoubleUtil.AreClose(childSize.Width, uniformOrAverageContainerSize) 7555&& (IsPixelBased || DoubleUtil.AreClose(childPixelSize.Width, uniformOrAverageContainerPixelSize)); 7646sumOfContainerSizes += containerSize.Width; 7647sumOfContainerPixelSizes += containerPixelSize.Width; 8278((IsVSP45Compat || !IsVirtualizing || !HasVirtualizingChildren) ? _previousStackPixelSizeInCacheBeforeViewport.Width : _pixelDistanceToViewport); 8326rcChild.Width = childDesiredSize.Width; 8337previousChildSize.Width = itemDesiredSizes.PixelSizeInViewport.Width; 8341previousChildSize.Width += itemDesiredSizes.PixelSizeBeforeViewport.Width + itemDesiredSizes.PixelSizeAfterViewport.Width; 8348previousChildSize.Width += pixelHeaderSize.Width; 8352previousChildSize.Width = Math.Max(previousChildSize.Width, pixelHeaderSize.Width); 8359rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8412rcChild.X += previousChildSize.Width; 8413rcChild.Width = childDesiredSize.Width; 8420rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 8457rcChild.Width = childDesiredSize.Width; 8500rcChild.X -= childDesiredSize.Width; 8504rcChild.X += previousChildSize.Width; 8511rcChild.Width = Math.Max(arrangeLength, childDesiredSize.Width); 9483if (DoubleUtil.GreaterThan(stackPixelSizeInViewport.Width, constraint.Width) && 9484viewportSize.Width > 1) 9540stackPixelSize.Width = _scrollData._extent.Width; 9547_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 9548stackPixelSize.Width = _scrollData._maxDesiredSize.Width; 9550extentSize.Width = stackPixelSize.Width; 9552if (Double.IsPositiveInfinity(constraint.Width)) 9554viewportSize.Width = stackPixelSize.Width; 9570if (!Double.IsPositiveInfinity(constraint.Width)) 9573Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 9621(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X, _scrollData.Extent.Width-_scrollData.Viewport.Width))) 9628(IsScrollActive && computedViewportOffset.X > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.X, _scrollData.Extent.Width-_scrollData.Viewport.Width))); 9660if (DoubleUtil.GreaterThan(newOffset + viewportSize.Width, extentSize.Width)) 9698!DoubleUtil.AreClose(isHorizontal ? stackPixelSizeInViewport.Width : stackPixelSizeInViewport.Height, 9731extentWidthChanged = !DoubleUtil.AreClose(extentSize.Width, _scrollData._extent.Width); 9778Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 9834DoubleUtil.GreaterThan(stackLogicalSize.Width, stackLogicalSizeInViewport.Width)) 9843lastPagePixelSize = stackPixelSizeInViewport.Width; 9846double approxSizeOfLogicalUnit = stackPixelSizeInViewport.Width / stackLogicalSizeInViewport.Width; 9848if (DoubleUtil.GreaterThan(proposedViewportSize, viewportSize.Width)) 9854"pxSz:", stackPixelSizeInViewport.Width, viewport.Width, 9855"itSz:", stackLogicalSizeInViewport.Width, viewportSize.Width, 9871!DoubleUtil.AreClose(_scrollData._viewport.Width, viewportSize.Width)) 9877"vpSz:", _scrollData._viewport.Width, viewportSize.Width, 9885if (DoubleUtil.AreClose(viewportSize.Width, 0)) 9887viewportSize.Width = _scrollData._viewport.Width; 9903DoubleUtil.GreaterThan(computedViewportOffset.X, extentSize.Width - viewportSize.Width))) 9909"ext:", _scrollData._extent.Width, extentSize.Width, 9910"vpSz:", viewportSize.Width); 9926if (!DoubleUtil.AreClose(_scrollData._extent.Width, 0) && 9927!DoubleUtil.AreClose(extentSize.Width, 0)) 9931if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width)) 9934viewportOffset.X = (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width; 9940if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width)) 9943viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width); 9951"expRat:", _scrollData._offset.X, _scrollData._extent.Width, (_scrollData._offset.X/_scrollData._extent.Width), 9952"actRat:", computedViewportOffset.X, extentSize.Width, (computedViewportOffset.X/extentSize.Width), 10186DoubleUtil.GreaterThan(computedViewportOffset.X, extentSize.Width - viewportSize.Width))) 10193"ext:", _scrollData._extent.Width, extentSize.Width, 10194"vpSz:", viewportSize.Width); 10209if (!DoubleUtil.AreClose(_scrollData._extent.Width, 0) && 10210!DoubleUtil.AreClose(extentSize.Width, 0)) 10212if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width)) 10215viewportOffset.X = (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width; 10222"expRat:", _scrollData._offset.X, _scrollData._extent.Width, (_scrollData._offset.X/_scrollData._extent.Width), 10223"actRat:", computedViewportOffset.X, extentSize.Width, (computedViewportOffset.X/extentSize.Width), 10335if (DoubleUtil.GreaterThan(stackPixelSizeInViewport.Width, constraint.Width) && 10336viewportSize.Width > 1) 10392stackPixelSize.Width = _scrollData._extent.Width; 10399_scrollData._maxDesiredSize.Width = Math.Max(_scrollData._maxDesiredSize.Width, stackPixelSize.Width); 10400stackPixelSize.Width = _scrollData._maxDesiredSize.Width; 10402extentSize.Width = stackPixelSize.Width; 10404if (Double.IsPositiveInfinity(constraint.Width)) 10406viewportSize.Width = stackPixelSize.Width; 10422if (!Double.IsPositiveInfinity(constraint.Width)) 10425Math.Min(stackPixelSize.Width, constraint.Width) : constraint.Width; 10495Visibility newhv = DoubleUtil.LessThanOrClose(extentSize.Width, viewportSize.Width) ? Visibility.Collapsed : Visibility.Visible; 10520DoubleUtil.GreaterThan(stackLogicalSize.Width, stackLogicalSizeInViewport.Width)) 10528double approxSizeOfLogicalUnit = stackPixelSizeInViewport.Width / stackLogicalSizeInViewport.Width; 10530if (DoubleUtil.GreaterThan(proposedViewportSize, viewportSize.Width)) 10544!DoubleUtil.AreClose(_scrollData._viewport.Width, viewportSize.Width)) 10550if (DoubleUtil.AreClose(viewportSize.Width, 0)) 10552viewportSize.Width = _scrollData._viewport.Width; 10557if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(_scrollData._extent.Width, extentSize.Width)) 10564DoubleUtil.GreaterThan(computedViewportOffset.X, extentSize.Width - viewportSize.Width)) 10597!DoubleUtil.AreClose(_scrollData._extent.Width, 0) && 10598!DoubleUtil.AreClose(extentSize.Width, 0)) 10602if (!LayoutDoubleUtil.AreClose(computedViewportOffset.X/extentSize.Width, _scrollData._offset.X/_scrollData._extent.Width)) 10605viewportOffset.X = (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width; 10611if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.X)/extentSize.Width, Math.Floor(_scrollData._offset.X)/_scrollData._extent.Width)) 10614viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width); 10928offset += (isHorizontal ? desiredPixelHeaderSize.Width : desiredPixelHeaderSize.Height); 10941offset += (isHorizontal ? desiredLogicalHeaderSize.Width : desiredLogicalHeaderSize.Height); 11083viewportSize = (int)_scrollData._viewport.Width; 11151maxChildLength = Math.Max(maxChildLength, childSize.Width); 11642_viewport.Width == 0.0 && 11644_extent.Width == 0.0 && 11646_maxDesiredSize.Width == 0.0 && 11736if (DoubleUtil.GreaterThanOrClose(newOffset, _extent.Width - _viewport.Width)) 11740else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset), _viewport.Width)) 12792writer.Write(size.Width);
src\Framework\System\Windows\Controls\WrapPanel.cs (6)
227UVSize uvConstraint = new UVSize(Orientation, constraint.Width, constraint.Height); 234(itemWidthSet ? itemWidth : constraint.Width), 250(itemWidthSet ? itemWidth : child.DesiredSize.Width), 292UVSize uvFinalSize = new UVSize(Orientation, finalSize.Width, finalSize.Height); 306(itemWidthSet ? itemWidth : child.DesiredSize.Width), 353UVSize childSize = new UVSize(Orientation, child.DesiredSize.Width, child.DesiredSize.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)
993matrix = new Matrix(-1.0, 0.0, 0.0, 1.0, adorner.RenderSize.Width, 0.0);
src\Framework\System\windows\Documents\CaretElement.cs (2)
174double.IsInfinity(availableSize.Width) ? double.MaxValue/2 : availableSize.Width,
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
571set { _pageWidth = value.Width; _pageHeight = value.Height; }
src\Framework\System\Windows\Documents\FixedPage.cs (3)
162new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 824x = arrangeSize.Width - child.DesiredSize.Width - right;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
145else if (pt.X > pageSize.Width) 147pt.X = pageSize.Width;
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (9)
2063imageNaturalSize = new Size(imageInputSize.Width, imageInputSize.Height); 2072if (imageInputSize.Width == 0) 2076imageInputSize.Width = imageNaturalSize.Width; 2081imageInputSize.Width = imageNaturalSize.Width * (imageInputSize.Height / imageNaturalSize.Height); 2086if (imageInputSize.Width == 0) 2093imageInputSize.Height = imageNaturalSize.Height * (imageInputSize.Width / imageNaturalSize.Width); 2117_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Width * scaleFactor.Width).ToString(CultureInfo.InvariantCulture));
src\Framework\System\Windows\FrameworkElement.cs (57)
3354return fe.RenderSize.Width; 3377return RenderSize.Width; 3964return new MatrixTransform(-1.0, 0.0, 0.0, 1.0, RenderSize.Width, 0.0); 4133Double xConstr = transformSpaceBounds.Width; 4343Math.Max(availableSize.Width - marginWidth, 0), 4392frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 4406Math.Max(desiredSize.Width, mm.minWidth), 4419Rect unclippedBoundsTransformed = Rect.Transform(new Rect(0, 0, unclippedDesiredSize.Width, unclippedDesiredSize.Height), ltd.Transform.Value); 4429if (desiredSize.Width > mm.maxWidth) 4444Rect childBoundsTransformed = Rect.Transform(new Rect(0, 0, desiredSize.Width, desiredSize.Height), ltd.Transform.Value); 4452double clippedDesiredWidth = desiredSize.Width + marginWidth; 4458if (clippedDesiredWidth > availableSize.Width) 4460clippedDesiredWidth = availableSize.Width; 4510sb.Width = unclippedDesiredSize.Width; 4582arrangeSize.Width = Math.Max(0, arrangeSize.Width - marginWidth); 4591transformedUnroundedDS.Width = Math.Max(0, transformedUnroundedDS.Width - marginWidth); 4601unclippedDesiredSize = new Size(Math.Max(0, this.DesiredSize.Width - marginWidth), 4607unclippedDesiredSize.Width = Math.Max(transformedUnroundedDS.Width, unclippedDesiredSize.Width); 4616if (DoubleUtil.LessThan(arrangeSize.Width, unclippedDesiredSize.Width)) 4619arrangeSize.Width = unclippedDesiredSize.Width; 4632arrangeSize.Width = unclippedDesiredSize.Width; 4655if (!DoubleUtil.IsZero(potentialArrangeSize.Width) 4659if (LayoutDoubleUtil.LessThan(potentialArrangeSize.Width, unclippedDesiredSize.Width) 4669if (DoubleUtil.LessThan(arrangeSize.Width, unclippedDesiredSize.Width)) 4672arrangeSize.Width = unclippedDesiredSize.Width; 4695double effectiveMaxWidth = Math.Max(unclippedDesiredSize.Width, mm.maxWidth); 4696if (DoubleUtil.LessThan(effectiveMaxWidth, arrangeSize.Width)) 4733Size clippedInkSize = new Size(Math.Min(innerInkSize.Width, mm.maxWidth), 4743DoubleUtil.LessThan(clippedInkSize.Width, innerInkSize.Width) 4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value); 4776DoubleUtil.LessThan(clientSize.Width, clippedInkSize.Width) 4810NotifyPropertyChange(new DependencyPropertyChangedEventArgs(ActualWidthProperty, _actualWidthMetadata, sizeInfo.PreviousSize.Width, sizeInfo.NewSize.Width)); 4832&& inkSize.Width > clientSize.Width) 4847offset.X = (clientSize.Width - inkSize.Width) * 0.5; 4851offset.X = clientSize.Width - inkSize.Width; 4906double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 4912|| (DoubleUtil.LessThan(maxWidthClip, inkSize.Width) 4916inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 4924inkRectTransformed = Rect.Transform(new Rect(0, 0, inkSize.Width, inkSize.Height), ltd.Transform.Value); 4934Size clippingSize = new Size(Math.Max(0, layoutSlotSize.Width - marginWidth), 4939|| DoubleUtil.LessThan(clippingSize.Width, inkSize.Width) 4966clippingSize.Width, 5012clippingSize.Width, 5243double maxWidthClip = (Double.IsPositiveInfinity(mm.maxWidth) ? inkSize.Width : mm.maxWidth); 5247inkSize.Width = Math.Min(inkSize.Width, mm.maxWidth); 5298return new Point(renderSize.Width * relativeOrigin.X, renderSize.Height * relativeOrigin.Y);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
2478double width = uiElement.RenderSize.Width + deflateThickness.Left + deflateThickness.Right; 2482x = uiElement.RenderSize.Width * 0.5;
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
232if (Double.IsPositiveInfinity(swConstraint.Width)) 235newWidth = swConstraint.Width;
src\Framework\System\Windows\Interop\HwndHost.cs (2)
857desiredSize.Width = Math.Min(_desiredSize.Width, constraint.Width);
src\Framework\System\Windows\Shapes\Ellipse.cs (2)
92double width = constraint.Width; 128Math.Max(0, finalSize.Width - penThickness), // Width
src\Framework\System\Windows\Shapes\Rectangle.cs (2)
144double width = constraint.Width; 181Math.Max(0, finalSize.Width - penThickness), // Width
src\Framework\System\Windows\Shapes\Shape.cs (2)
452return (DoubleUtil.IsNaN(size.Width) || 592xScale = Math.Max(availableSize.Width - strokeThickness, 0);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (9)
1226double shortestDimension = Math.Min(windowSize.Width, windowSize.Height); 1242hrgn = _CreateRoundRectRgn(new Rect(0, 0, windowSize.Width / 2 + topLeftRadius, windowSize.Height / 2 + topLeftRadius), topLeftRadius); 1246Rect topRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + topRightRadius, windowSize.Height / 2 + topRightRadius); 1247topRightRegionRect.Offset(windowSize.Width / 2 - topRightRadius, 0); 1248Assert.AreEqual(topRightRegionRect.Right, windowSize.Width); 1254Rect bottomLeftRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomLeftRadius, windowSize.Height / 2 + bottomLeftRadius); 1262Rect bottomRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomRightRadius, windowSize.Height / 2 + bottomRightRadius); 1263bottomRightRegionRect.Offset(windowSize.Width / 2 - bottomRightRadius, windowSize.Height / 2 - bottomRightRadius); 1264Assert.AreEqual(bottomRightRegionRect.Right, windowSize.Width);
src\Framework\System\Windows\Standard\DpiHelper.cs (2)
63Point pt = LogicalPixelsToDevice(new Point(logicalSize.Width, logicalSize.Height), dpiScaleX, dpiScaleY); 70Point pt = DevicePixelsToLogical(new Point(deviceSize.Width, deviceSize.Height), dpiScaleX, dpiScaleY);
src\Framework\System\Windows\SystemParameters.cs (4)
6326_windowResizeBorderThickness = new Thickness(frameSizeInDips.Width, frameSizeInDips.Height, frameSizeInDips.Width, frameSizeInDips.Height); 6356_windowNonClientFrameThickness = new Thickness(frameSizeInDips.Width, frameSizeInDips.Height + captionHeightInDips, frameSizeInDips.Width, frameSizeInDips.Height);
src\Framework\System\Windows\Window.cs (22)
1873Size frameworkAvailableSize = new Size(availableSize.Width, availableSize.Height); 1877frameworkAvailableSize.Width = Math.Max(mm.minWidth, Math.Min(frameworkAvailableSize.Width, mm.maxWidth)); 1885Math.Max(desiredSize.Width, mm.minWidth), 1907arrangeBounds.Width = Math.Max(mm.minWidth, Math.Min(arrangeBounds.Width, mm.maxWidth)); 1942childArrangeBounds.Width = Math.Max(0.0, arrangeBounds.Width - frameSize.Width); 1955InternalSetLayoutTransform(child, new MatrixTransform(-1.0, 0.0, 0.0, 1.0, childArrangeBounds.Width, 0.0)); 2783if ((!DoubleUtil.IsNaN(requestedWidth)) && (!DoubleUtil.AreClose(sizeDeviceUnits.Width, requestedSizeDeviceUnits.X))) 2854if (!Double.IsPositiveInfinity(maxSizeDeviceUnits.X) && (sizeDeviceUnits.Width > maxSizeDeviceUnits.X)) 2866if (sizeDeviceUnits.Width < minSizeDeviceUnits.X) 2915DoubleUtil.DoubleToInt(sizeDeviceUnits.Width), 3494childConstraint.Width = ((constraint.Width == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Width - frameSize.Width))); 3499return new Size(childDesiredSize.Width + frameSize.Width, childDesiredSize.Height + frameSize.Height); 3933ownerSizeDeviceUnits = new Point(size.Width, size.Height); 3952leftDeviceUnits = ownerRectDeviceUnits.X + ((ownerRectDeviceUnits.Width - currentSizeDeviceUnits.Width) / 2); 3958leftDeviceUnits = Math.Min(leftDeviceUnits, workAreaRectDeviceUnits.right - currentSizeDeviceUnits.Width); 4037leftDeviceUnits = (workAreaRectDeviceUnits.left + ((workAreaWidthDeviceUnits - currentSizeDeviceUnits.Width) / 2)); 5186(mousePositionWRTResizeGripControl.X > _resizeGripControl.RenderSize.Width) || 6777Debug.Assert(0 != (int)_overlaySize.Width);
PresentationFramework.Aero (25)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
413bool isWidthTooSmall = (availableSize.Width < 4.0); 418childConstraint.Width = availableSize.Width - 4.0; 440desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height)); 458childArrangeRect.Width = Math.Max(0d, finalSize.Width - 4.0); 460childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
64double temp = size.Width; 88dc.DrawRectangle(bevel, null, new Rect(0.0, 0.0, size.Width, size.Height)); 149dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 151if (size.Width >= 2.0) 224dc.DrawRectangle(sideBrush, null, new Rect(size.Width - 1.0, 0.0, 1.0, Max0(size.Height - 0.95))); 228if (isPressed && (size.Width >= 4.0) && (size.Height >= 4.0)) 246dc.DrawRectangle(topBrush, null, new Rect(0.0, 0.0, size.Width, 2.0)); 264dc.DrawRectangle(pressedBevel, null, new Rect(size.Width - 2.0, 0.0, 1.0, size.Height - 0.95)); 307dc.DrawRectangle(bottomBrush, null, new Rect(0.0, size.Height - 1.0, size.Width, 1.0)); 310if (isSorted && (size.Width > 14.0) && (size.Height > 10.0)) 313TranslateTransform positionTransform = new TranslateTransform((size.Width - 8.0) * 0.5, 1.0);
Microsoft\Windows\Themes\ListBoxChrome.cs (5)
234bool isWidthTooSmall = (availableSize.Width < borderX); 239childConstraint.Width = availableSize.Width - borderX; 261desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height)); 293if ((finalSize.Width > borderX) && (finalSize.Height > borderY)) 297childArrangeRect.Width = finalSize.Width - borderX;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
189double childWidth = constraint.Width; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (28)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (12)
669bool isWidthTooSmall = (availableSize.Width < borderSize.Width); 674childConstraint.Width = availableSize.Width - borderSize.Width; 688desired.Width += borderSize.Width; 697desired = new Size(Math.Min(borderSize.Width, availableSize.Width), Math.Min(borderSize.Height, availableSize.Height)); 722if ((finalSize.Width >= borderWidth) && (finalSize.Height >= borderHeight)) 726childArrangeRect.Width = finalSize.Width - borderWidth; 847double width = this.RenderSize.Width; 938if (borderSize.Width <= 0.0 && borderSize.Height <= 0.0) 942if (borderSize.Width > bounds.Width || borderSize.Height > bounds.Height)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (12)
102dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 104if ((size.Width > 3.0) && (size.Height > 3.0)) 109dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, size.Width, 1.0)); 111dc.DrawRectangle(dark, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 112dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 117dc.DrawRectangle(light, null, new Rect(0.0, 0.0, Max0(size.Width - 1.0), 1.0)); 123dc.DrawRectangle(dark, null, new Rect(Max0(size.Width - 2.0), 1.0, 1.0, Max0(size.Height - 2.0))); 126dc.DrawRectangle(darkDarkRight, null, new Rect(Max0(size.Width - 1.0), 0.0, 1.0, size.Height)); 133dc.DrawRectangle(dark, null, new Rect(1.0, Max0(size.Height - 2.0), Max0(size.Width - 2.0), 1.0)); 136dc.DrawRectangle(darkDarkBottom, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 141if (isSorted && (size.Width > 14.0) && (size.Height > 10.0)) 144TranslateTransform positionTransform = new TranslateTransform(size.Width - 15.0, (size.Height - 5.0) * 0.5);
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
189double childWidth = constraint.Width; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (21)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
330bool isWidthTooSmall = (availableSize.Width < sideThickness2); 335childConstraint.Width = availableSize.Width - sideThickness2; 357desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height)); 375childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2); 377childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
103double temp = size.Width; 167dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 169if (isHovered && !isPressed && (size.Width >= 6.0) && (size.Height >= 4.0)) 181LineSegment line = new LineSegment(new Point(size.Width - 0.5, 0.5), true); 185ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 243if (isPressed && (size.Width >= 2.0) && (size.Height >= 2.0)) 255dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 258if (!isPressed && !isHovered && (size.Width >= 4.0)) 302dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0))); 306if (isSorted && (size.Width > 14.0) && (size.Height > 10.0)) 309TranslateTransform positionTransform = new TranslateTransform(size.Width - 15.0, (size.Height - 5.0) * 0.5);
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)
189double childWidth = constraint.Width; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (21)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
288bool isWidthTooSmall = (availableSize.Width < sideThickness2); 293childConstraint.Width = availableSize.Width - sideThickness2; 315desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height)); 333childArrangeRect.Width = Math.Max(0d, finalSize.Width - sideThickness2); 335childArrangeRect.X = (finalSize.Width - childArrangeRect.Width) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
59double temp = size.Width; 96dc.DrawRectangle(background, null, new Rect(0.0, 0.0, size.Width, size.Height)); 98if (isHovered && !isPressed && (size.Width >= 6.0) && (size.Height >= 4.0)) 110LineSegment line = new LineSegment(new Point(size.Width - 0.5, 0.5), true); 114ArcSegment arc = new ArcSegment(new Point(size.Width - 2.5, 2.5), new Size(2.0, 2.0), 90.0, false, SweepDirection.Clockwise, true); 165if (isPressed && (size.Width >= 2.0) && (size.Height >= 2.0)) 177dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.0)); 180if (!isPressed && !isHovered && (size.Width >= 4.0)) 224dc.DrawRectangle(sideBrush, null, new Rect(horizontal ? 0.0 : Max0(size.Width - 2.0), 4.0, 2.0, Max0(size.Height - 8.0))); 228if (isSorted && (size.Width > 14.0) && (size.Height > 10.0)) 231TranslateTransform positionTransform = new TranslateTransform(size.Width - 15.0, (size.Height - 5.0) * 0.5);
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)
189double childWidth = constraint.Width; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 235double childWidth = Math.Max(0.0, arrangeSize.Width - padding.Left - padding.Right);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
System.Activities.Core.Presentation (15)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
292location.X -= element.DesiredSize.Width / 2; 301oldCenter = new Point(location.X + element.DesiredSize.Width / 2, location.Y + element.DesiredSize.Height / 2);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
58double startWidth = this.StartSymbol.DesiredSize.Width;
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
1252virtualizingContainer.MinWidth = size.Width;
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
139oldCenter = new Point(location.X + element.DesiredSize.Width / 2, location.Y + element.DesiredSize.Height / 2);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (10)
483double startWidth = this.initialNode.DesiredSize.Width; 523if (srcLocation.X > destLocation.X + destSize.Width) 528else if (srcLocation.X + srcSize.Width < destLocation.X) 594virtualizingContainer.MinWidth = size.Width; 1665if (this.requiredSize.Width > this.StateContainerWidth) 1670this.requiredSize.Width); 1966if (anchorPoint.X > view.DesiredSize.Width || anchorPoint.Y > view.DesiredSize.Height) 2464midPoint = new Point(location.X + size.Width, location.Y + size.Height / 2); 2467midPoint = new Point(location.X + size.Width / 2, location.Y); 2470midPoint = new Point(location.X + size.Width / 2, location.Y + size.Height);
System.Activities.Presentation (101)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (10)
89if (anchorPoint.X + desiredSize.Width <= canvas.X + canvas.Width) 105if (anchor == AdornerLocation.None && anchorPoint.X - desiredSize.Width >= canvas.X && anchorPoint.Y - desiredSize.Height >= canvas.Y) 132Point anchorPoint = this.AdornedElement.TranslatePoint(new Point(this.AdornedElement.RenderSize.Width, 0), this.ScrollViewer); 140Size adornerSize = new Size(this.content.DesiredSize.Width * zoomLevel, this.content.DesiredSize.Height * zoomLevel); 159location = new Point(adorneeSize.Width, 0); 162location = new Point(adorneeSize.Width, -adornerSize.Height); 165location = new Point(adorneeSize.Width - adornerSize.Width, -adornerSize.Height); 168location = new Point(adorneeSize.Width - adornerSize.Width, 20);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (2)
249return (float)(size.Width / size.Height); 254return (float)(size.Width * size.Height);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (2)
815_sharedWidthContainer.ContainerWidth = arrangeBounds.Width - ((GridLength)gridLength).Value; 819_sharedWidthContainer.ContainerWidth = arrangeBounds.Width;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (2)
71return new CustomPopupPlacement[] { new CustomPopupPlacement(new Point(targetSize.Width - popupSize.Width, targetSize.Height), PopupPrimaryAxis.Horizontal) };
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
220rect.Width = DesiredIconSize.Width;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (14)
180double availableWidth = Math.Max(0, availableSize.Width - lastChildWidth - indent); 198availableWidth -= child.DesiredSize.Width; 201actualSize.Width += child.DesiredSize.Width; 213double availableWidth = Math.Max(0, finalSize.Width - lastChildWidth - indent); 222double desiredWidth = child.DesiredSize.Width; 225child.Arrange(new Rect(Math.Max(0, finalSize.Width - lastChildWidth), 0, lastChildWidth, finalSize.Height)); 249double dividerLeft = renderSize.Width - dividerRight - outlineThickness; 260firstChildWidth = this.Children[0].RenderSize.Width; 275new double[] { 0, dividerLeft, dividerLeft + outlineThickness, renderSize.Width - outlineThickness, renderSize.Width }, 285new Point(renderSize.Width, renderSize.Height - halfThickness)); 291new Point(renderSize.Width, 0 - halfThickness)); 296new Point(renderSize.Width - halfThickness, 0), 297new Point(renderSize.Width - halfThickness, renderSize.Height));
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
865this.width = grid.DesiredSize.Width;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (16)
53new Rect(size.Width, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth), 54new Rect((size.Width / 2) - (HitTestWidth / 2), -HitTestHeight, HitTestWidth, HitTestHeight), 55new Rect((size.Width / 2) - (HitTestWidth / 2), size.Height, HitTestWidth, HitTestHeight) 81StartPoint = new Point(size.Width + DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)), Segments = 83new LineSegment() { Point = new Point(size.Width + DropTargetOffset + TriangleHeight, size.Height / 2) }, 84new LineSegment() { Point = new Point(size.Width + DropTargetOffset, (size.Height / 2) + (TriangleBaseLength / 2)) }, 85new LineSegment() { Point = new Point(size.Width + DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)) } 96StartPoint = new Point((size.Width / 2) - (TriangleBaseLength / 2), -DropTargetOffset), Segments = 98new LineSegment() { Point = new Point((size.Width / 2), -DropTargetOffset - TriangleHeight) }, 99new LineSegment() { Point = new Point((size.Width / 2) + (TriangleBaseLength / 2), -DropTargetOffset) }, 100new LineSegment() { Point = new Point((size.Width / 2) - (TriangleBaseLength / 2), -DropTargetOffset) } 111StartPoint = new Point((size.Width / 2) - (TriangleBaseLength / 2), size.Height + DropTargetOffset), Segments = 113new LineSegment() { Point = new Point((size.Width / 2) + (TriangleBaseLength / 2), size.Height + DropTargetOffset) }, 114new LineSegment() { Point = new Point((size.Width / 2), size.Height + TriangleHeight + DropTargetOffset) }, 115new LineSegment() { Point = new Point((size.Width / 2) - (TriangleBaseLength / 2), size.Height + DropTargetOffset) } 147else if (position.X > size.Width && this.highlightedDirection != AutoConnectDirections.Right)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (10)
56Rect rect = new Rect(new Point(location.X - HitRegionOffset, location.Y - HitRegionOffset), new Size(size.Width + (HitRegionOffset * 2), size.Height + (HitRegionOffset * 2))); 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))); 125dropPoint = new Point(location.X - DropPointOffset - droppedSize.Width, location.Y + ((size.Height - droppedSize.Height) / 2)); 128dropPoint = new Point(location.X + size.Width + DropPointOffset, location.Y + ((size.Height - droppedSize.Height) / 2)); 131dropPoint = new Point(location.X + ((size.Width - droppedSize.Width) / 2), location.Y - DropPointOffset - droppedSize.Height); 134dropPoint = new Point(location.X + ((size.Width - droppedSize.Width) / 2), location.Y + DropPointOffset + size.Height);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (11)
25Point srcCenter = new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2)); 26Point destCenter = new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2)); 70double distToSrc = DesignerGeometryHelper.ManhattanDistanceBetweenPoints(mousePosition, new Point(srcLocation.X + (srcSize.Width / 2), srcLocation.Y + (srcSize.Height / 2))); 71double distToDest = DesignerGeometryHelper.ManhattanDistanceBetweenPoints(mousePosition, new Point(destLocation.X + (destSize.Width / 2), destLocation.Y + (destSize.Height / 2))); 111if (mousePosition.X >= targetLocation.X && mousePosition.X <= targetLocation.X + targetSize.Width) 126dropLocation.X = targetLocation.X + ((targetSize.Width - droppedSize.Width) / 2); 143if (dropLocation.X >= targetLocation.X && dropLocation.X <= targetLocation.X + targetSize.Width + ShapeMargin) 145dropLocation.X = targetLocation.X + targetSize.Width + ShapeMargin; 147else if (dropLocation.X + droppedSize.Width + ShapeMargin >= targetLocation.X && dropLocation.X <= targetLocation.X) 149dropLocation.X = targetLocation.X - droppedSize.Width - ShapeMargin;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
117double parentWidth = parent.DesiredSize.Width - parent.Margin.Left - parent.Margin.Right; 193return new Vector(-rectSize.Width / 2, -rectSize.Height / 2);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (1)
22double width = shapeSize.Width;
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); 456r2.X -= margin.Width; 506r4.X += margin.Width; 584escapePoint = new Point(p.X + direction.X * margin.Width, Z.Y); 952int steps = (int)Math.Max(Math.Abs(sub.X / margin.Width), Math.Abs(sub.Y / margin.Height)); //one of the values will be null 959Point k = new Point(a1.X + i * margin.Width * direction.X, a1.Y + i * margin.Height * direction.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (4)
341if (width < (size.Width + pt.X)) 343width = size.Width + pt.X; 449if (width < child.DesiredSize.Width + pt.X) 451width = child.DesiredSize.Width + pt.X;
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (3)
342if (sizeInfo.WidthChanged && 0.0 != sizeInfo.PreviousSize.Width) 345this.lookupWindow.Left * (sizeInfo.NewSize.Width / sizeInfo.PreviousSize.Width);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
715width = Math.Min(fe.RenderSize.Width, designerView.ScrollViewer.ViewportWidth);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
517this.ContextMenu.MinWidth = this.ContextMenu.DesiredSize.Width;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (10)
184if (IsInvalid(window.ActualWidth) || IsInvalid(window.ActualWidth) || IsInvalid(window.DesiredSize.Width) || IsInvalid(window.DesiredSize.Height)) 308position.X = CalculateInBoundsValue(position.X, window.DesiredSize.Width, this.ActualWidth, this.selectedChild.Value.X); 354if (IsGreater(pos.X, size.Width, this.ActualWidth)) 363System.Diagnostics.Debug.WriteLine("SetSize oldSize (" + window.Width + "," + window.Height + ") newSize (" + size.Width + "," + size.Height + ")"); 364window.Width = size.Width; 383System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "ArrangeOverride Size({0},{1})", arrangeSize.Width, arrangeSize.Height)); 401double offsetPlusX = this.rearangeStartSize.Width; 419offsetPlusX = Math.Max(offsetPlusX, pos.X + child.DesiredSize.Width); 438System.Diagnostics.Debug.WriteLine("MO constraint:" + constraint.Width + "," + constraint.Height + " new: " + result.Width + "," + result.Height);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
62System.Diagnostics.Debug.WriteLine("NewSize = (" + newSize.Width + "," + newSize.Height + ")");
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
77this.Width = size.Width;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
351this.MinWidth = size.Value.Width; 497this.MinWidth = defaultContainerSize.Width;
WindowsBase (8)
Base\System\Windows\Generated\Size.cs (5)
64return size1.Width == size2.Width && 103return size1.Width.Equals(size2.Width) && 160return Width.GetHashCode() ^
Base\System\Windows\Rect.cs (1)
109_width = size.Width;
Shared\MS\Internal\DoubleUtil.cs (2)
206return DoubleUtil.AreClose(size1.Width, size2.Width) &&