194 writes to Height
PresentationCore (1)
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
511size.Height = XamlSerializationHelper.ReadDouble(br);
PresentationFramework (172)
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
115newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 119newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (3)
1106pageSize.Height *= Scale; 1123newPageSize.Height *= Scale; 1238pageSize.Height *= Scale;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (4)
548newPageSize.Height = _defaultPageSize.Height; 877pageSize.Height = _pageSize.Height; 881pageSize.Height = max; 886pageSize.Height = min;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
90desiredSize.Height = Math.Min(constraint.Height, _formatter.DocumentPage.Size.Height);
src\Framework\MS\Internal\Documents\RowCache.cs (4)
1223pageSize.Height *= Scale; 1225pageSize.Height += VerticalPageSpacing; 1423_rowSize.Height = Math.Max(pageSize.Height, _rowSize.Height); 1433_rowSize.Height = 0.0;
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
320_extent.Height = value;
src\Framework\MS\Internal\Documents\TextBoxView.cs (3)
505desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 2278desiredSize.Height += _lineHeight; 2649desiredSize.Height = _lineMetrics.Count * _lineHeight;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (1)
93islandSize.Height = verticalAutoSize ? _child.DesiredSize.Height : availableSize.Height;
src\Framework\MS\Internal\Helper.cs (6)
1097headerSize.Height = Math.Max(itemsCorrectionFactor.Top, headerSize.Height); 1101headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1131itemPixelSize.Height += correctionFactor.Bottom; 1144itemPixelSizeBeforeViewport.Height += correctionFactor.Bottom; 1156itemPixelSizeInViewport.Height += correctionFactor.Bottom; 1167itemPixelSizeAfterViewport.Height += correctionFactor.Bottom;
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (1)
437newSize.Height = newBounds.Height;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
166pageSize.Height += pageMargin.Top + pageMargin.Bottom; 720size.Height += _pageMargin.Top + _pageMargin.Bottom;
src\Framework\MS\Internal\PtsHost\PtsPage.cs (3)
854_calculatedSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(rect.dv)); 859_contentSize.Height = Math.Max(TextDpi.MinWidth, TextDpi.FromTextDpi(bbox.fsrc.dv)); 865_contentSize.Height = Math.Max(_contentSize.Height, _calculatedSize.Height);
src\Framework\MS\Internal\Text\TextDpi.cs (3)
156if (size.Height > _maxSize) { size.Height = _maxSize; } 157else if (size.Height < _minSize) { size.Height = _minSize; } 195if (size.Height > _maxObjSize) { size.Height = _maxObjSize; }
src\Framework\System\Windows\Controls\Border.cs (1)
250mySize.Height = childSize.Height + combined.Height;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
813desiredSize.Height += horizontalLineThickness; 848returnSize.Height += horizontalLineThickness;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (2)
404measureSize.Height = Math.Max(measureSize.Height, childSize.Height); 424measureSize.Height = Math.Max(measureSize.Height, headerSize.Height);
src\Framework\System\Windows\Controls\Grid.cs (1)
443gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height);
src\Framework\System\Windows\Controls\InkPresenter.cs (1)
186newSize.Height = Math.Max(newSize.Height, sizeStrokes.Height);
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (1)
302contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height);
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
123desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height); 131desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height);
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (2)
228desiredSize.Height += thickness; 262returnSize.Height += thickness;
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (2)
247newPageSize.Height = availableSize.Height / _pageZoom; 254newPageSize.Height = newPageSize.Width * (pageSize.Height / pageSize.Width); // Keep aspect ratio.
src\Framework\System\Windows\Controls\Primitives\Popup.cs (5)
2259limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2285limitSize.Height = Math.Max(0.0, Math.Max(screenBounds.Bottom - targetBounds.Bottom, targetBounds.Top - screenBounds.Top)); 2642desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height); 2643desiredSize.Height = Math.Min(desiredSize.Height, maxHeight); 2644desiredSize.Height = Math.Min(desiredSize.Height, limitSize.Height);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
439if (_scrollData._canVerticallyScroll) { childConstraint.Height = Double.PositiveInfinity; } 452desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 821if (Double.IsInfinity(viewport.Height)) viewport.Height = extent.Height;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (4)
138contentSize.Height = _rowHeight * _numRows; 164contentSize.Height += childSize.Height; 213desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 285childSize.Height = Math.Max(0d, childSize.Height - topOffset - bottomOffset);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (2)
409size.Height -= ReservedSpace; 422size.Height -= ReservedSpace;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (5)
133_panelSize.Height += curLineSize.Height; 139_panelSize.Height += sz.Height; 146curLineSize.Height = Math.Max(sz.Height, curLineSize.Height); 152_panelSize.Height += curLineSize.Height; 187curLineSize.Height = Math.Max(sz.Height, curLineSize.Height);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
126panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 131panelDesiredSize.Height += childDesiredSize.Height; 185panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 256layoutSlotSize.Height = Double.PositiveInfinity;
src\Framework\System\Windows\Controls\Primitives\Track.cs (4)
445desiredSize.Height = 0.0; 521pieceSize.Height = increaseButtonLength; 528pieceSize.Height = decreaseButtonLength; 535pieceSize.Height = thumbLength;
src\Framework\System\Windows\Controls\Stack.cs (7)
579if (measureElement.IsScrolling && measureElement.CanVerticallyScroll) { layoutSlotSize.Height = Double.PositiveInfinity; } 585layoutSlotSize.Height = Double.PositiveInfinity; 610stackDesiredSize.Height = Math.Max(stackDesiredSize.Height, childDesiredSize.Height); 616stackDesiredSize.Height += childDesiredSize.Height; 680viewport.Height = logicalViewport; 681extent.Height = logicalExtent; 689stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1402desiredSize.Height += lineHeight; 1426desiredSize.Height += (padding.Top + padding.Bottom);
src\Framework\System\Windows\Controls\ToolBarTray.cs (3)
397childConstraint.Height = remainingLength; 413toolBarTrayDesiredSize.Height += bandThickness; 419toolBarTrayDesiredSize.Height = Math.Max(toolBarTrayDesiredSize.Height, bandLength);
src\Framework\System\Windows\Controls\ViewBox.cs (2)
334parentSize.Height = scalefac.Height * childSize.Height; 367arrangeSize.Height = scalefac.Height * childSize.Height;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (57)
2310if (IsScrolling && CanVerticallyScroll) { childConstraint.Height = Double.PositiveInfinity; } 2314childConstraint.Height = Double.PositiveInfinity; 3835_scrollData._extent.Height = distance; 3853pixelSize.Height = distance; 3875logicalSize.Height = distance; 5703stackPixelSize.Height += distance; 5714stackLogicalSize.Height += distance; 5751stackPixelSize.Height += childDesiredSize.Height; 5770stackPixelSize.Height += pixelDistance; 5936containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 5940containerSize.Height = uniformSize; 5966containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 5970containerSize.Height = averageSize; 6043containerSize.Height = IsPixelBased ? pixelHeight : 1; 6046containerPixelSize.Height = pixelHeight; 6052containerSize.Height = uniformOrAverageContainerSize; 6055containerPixelSize.Height = uniformOrAverageContainerPixelSize; 6773childLogicalSize.Height = itemDesiredSizes.LogicalSize.Height + logicalHeaderSize.Height; 6779childLogicalSize.Height = Math.Max(itemDesiredSizes.LogicalSize.Height, logicalHeaderSize.Height); 7156childPixelSizeInViewport.Height = Math.Max(childPixelSizeInViewport.Height, childPixelHeightInViewport); 7158childPixelSizeInCacheBeforeViewport.Height = Math.Max(childPixelSizeInCacheBeforeViewport.Height, childPixelHeightInViewport); 7160childPixelSizeInCacheAfterViewport.Height = Math.Max(childPixelSizeInCacheAfterViewport.Height, childPixelHeightInViewport); 7163childLogicalSizeInViewport.Height = Math.Max(childLogicalSizeInViewport.Height, childLogicalSize.Height); 7165childLogicalSizeInCacheBeforeViewport.Height = Math.Max(childLogicalSizeInCacheBeforeViewport.Height, childLogicalSize.Height); 7167childLogicalSizeInCacheAfterViewport.Height = Math.Max(childLogicalSizeInCacheAfterViewport.Height, childLogicalSize.Height); 7247childPixelSizeInViewport.Height += pixelSizeInViewport; 7249childPixelSizeInCacheBeforeViewport.Height += pixelSizeBeforeViewport; 7251childPixelSizeInCacheAfterViewport.Height += pixelSizeAfterViewport; 7254childLogicalSizeInViewport.Height += logicalSizeInViewport; 7256childLogicalSizeInCacheBeforeViewport.Height += logicalSizeBeforeViewport; 7258childLogicalSizeInCacheAfterViewport.Height += logicalSizeAfterViewport; 7302sz1.Height = Math.Max(sz1.Height, sz2.Height); 7306sz1.Height += sz2.Height; 8369previousChildSize.Height = itemDesiredSizes.PixelSizeInViewport.Height; 8373previousChildSize.Height += itemDesiredSizes.PixelSizeBeforeViewport.Height + itemDesiredSizes.PixelSizeAfterViewport.Height; 8380previousChildSize.Height += pixelHeaderSize.Height; 8384previousChildSize.Height = Math.Max(previousChildSize.Height, pixelHeaderSize.Height); 9489viewportSize.Height = viewport.Height; 9496viewportSize.Height--; 9513stackPixelSize.Height = _scrollData._extent.Height; 9520_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 9521stackPixelSize.Height = _scrollData._maxDesiredSize.Height; 9523extentSize.Height = stackPixelSize.Height; 9527viewportSize.Height = stackPixelSize.Height; 9577stackPixelSize.Height = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.Y, 0) ? 10077viewportSize.Height = proposedViewportSize; 10104viewportSize.Height = _scrollData._viewport.Height; 10341viewportSize.Height = viewport.Height; 10348viewportSize.Height--; 10365stackPixelSize.Height = _scrollData._extent.Height; 10372_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 10373stackPixelSize.Height = _scrollData._maxDesiredSize.Height; 10375extentSize.Height = stackPixelSize.Height; 10379viewportSize.Height = stackPixelSize.Height; 10429stackPixelSize.Height = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.Y, 0) ? 10664viewportSize.Height = proposedViewportSize; 10683viewportSize.Height = _scrollData._viewport.Height;
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (2)
2088imageInputSize.Height = imageNaturalSize.Height; 2093imageInputSize.Height = imageNaturalSize.Height * (imageInputSize.Width / imageNaturalSize.Width);
src\Framework\System\Windows\FrameworkElement.cs (15)
4393frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4421unclippedDesiredSize.Height = unclippedBoundsTransformed.Height; 4437desiredSize.Height = mm.maxHeight; 4446desiredSize.Height = childBoundsTransformed.Height; 4583arrangeSize.Height = Math.Max(0, arrangeSize.Height - marginHeight); 4592transformedUnroundedDS.Height = Math.Max(0, transformedUnroundedDS.Height- marginHeight); 4608unclippedDesiredSize.Height = Math.Max(transformedUnroundedDS.Height, unclippedDesiredSize.Height); 4625arrangeSize.Height = unclippedDesiredSize.Height; 4637arrangeSize.Height = unclippedDesiredSize.Height; 4678arrangeSize.Height = unclippedDesiredSize.Height; 4706arrangeSize.Height = effectiveMaxHeight; 4751clippedInkSize.Height = inkRectTransformed.Height; 4917inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 4926inkSize.Height = inkRectTransformed.Height; 5248inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
858desiredSize.Height = Math.Min(_desiredSize.Height, constraint.Height);
src\Framework\System\Windows\Standard\DpiHelper.cs (1)
65return new Size { Width = pt.X, Height = pt.Y };
src\Framework\System\Windows\Window.cs (7)
1878frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1908arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 1943childArrangeBounds.Height = Math.Max(0.0, arrangeBounds.Height - frameSize.Height); 2807sizeDeviceUnits.Height = requestedSizeDeviceUnits.Y; 2863sizeDeviceUnits.Height = maxSizeDeviceUnits.Y; 2875sizeDeviceUnits.Height = minSizeDeviceUnits.Y; 3495childConstraint.Height = ((constraint.Height == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Height - frameSize.Height)));
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
422childConstraint.Height = availableSize.Height - 4.0; 435desired.Height += 4.0;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
66size.Height = temp;
Microsoft\Windows\Themes\ListBoxChrome.cs (2)
243childConstraint.Height = availableSize.Height - borderY; 256desired.Height += borderY;
PresentationFramework.Classic (2)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (2)
678childConstraint.Height = availableSize.Height - borderSize.Height; 692desired.Height += borderSize.Height;
PresentationFramework.Luna (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
339childConstraint.Height = availableSize.Height - sideThickness2; 352desired.Height += sideThickness2;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
105size.Height = temp;
PresentationFramework.Royale (3)
Microsoft\Windows\Themes\ButtonChrome.cs (2)
297childConstraint.Height = availableSize.Height - sideThickness2; 310desired.Height += sideThickness2;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
61size.Height = temp;
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (1)
200actualSize.Height = Math.Max(actualSize.Height, child.DesiredSize.Height);
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (1)
21size.Height = this.Child.DesiredSize.Height;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (3)
126this.rearangeStartSize.Height = 0; 360size.Height = this.ActualHeight - pos.Y; 448this.rearangeStartSize.Height = this.ActualHeight;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
487size.Height = this.bottomRight.Y - absolutePosition.Y; 496size.Height = Math.Min(Math.Max(MinHeight, current.Y), MaxHeight);
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindowResizeGrip.cs (1)
61newSize.Height = Math.Min(Math.Max(this.parent.MinHeight, currentPosition.Y), this.parent.MaxHeight);
1069 references to Height
PresentationCore (48)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (10)
123from.Size.Height + ((to.Size.Height - from.Size.Height) * progress)); 221value1.Height + value2.Height); 325value1.Height - value2.Height); 571value.Size.Height * 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)
138double height = element.RenderSize.Height;
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)
245XamlSerializationHelper.WriteDouble(_bw, size.Height);
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (2)
366return viewSize.Width / viewSize.Height; 374-(((2*point.Y)/size.Height) - 1));
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
2691objectBounds.Location.Y + objectBounds.Size.Height,
Core\CSharp\System\Windows\Interop\HwndSource.cs (7)
933|| !DoubleUtil.AreClose(_previousSize.Value.Height, newSize.Height)) 1041Point pt = TransformToDevice(new Point(newSize.Width, newSize.Height)); 1294(_sizeToContent == SizeToContent.Height ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Height)); 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); 1712else if (_sizeToContent == SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
Core\CSharp\System\Windows\LayoutManager.cs (2)
490if (double.IsPositiveInfinity(element.PreviousConstraint.Height)) 491arrangeRect.Height = element.DesiredSize.Height;
Core\CSharp\System\Windows\Media\DrawingImage.cs (1)
73return Size.Height;
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
937newVal.g = (float)s.Height;
Core\CSharp\System\Windows\Media3D\MatrixCamera.cs (2)
185viewportMatrix.TranslatePrepend(new Vector3D(-p.X,viewSize.Height-p.Y,0)); 186viewportMatrix.ScalePrepend(new Vector3D(viewSize.Width/2,-viewSize.Height/2,1));
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (2)
203viewportMatrix.TranslatePrepend(new Vector3D(-p.X, viewSize.Height-p.Y, 0)); 204viewportMatrix.ScalePrepend(new Vector3D(viewSize.Width/2, -viewSize.Height/2, 1));
Core\CSharp\System\Windows\Media3D\PerspectiveCamera.cs (2)
210viewportMatrix.TranslatePrepend(new Vector3D(-p.X, viewSize.Height - p.Y, 0)); 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); 1021yLines.Add(this.RenderSize.Height); 1029if(!DoubleUtil.AreClose(yLines[lastGuideline], this.RenderSize.Height)) 1030yLines[lastGuideline] = this.RenderSize.Height; 1039bool heightChanged = !DoubleUtil.AreClose(oldSize.Height, newSize.Height); 1084return new Size(RoundLayoutValue(size.Width, dpiScaleX), RoundLayoutValue(size.Height, dpiScaleY));
PresentationFramework (805)
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); 173drawingDimensions = new Rect((renderSize.Width - scaledRenderWidth) / 2, 0, scaledRenderWidth, renderSize.Height); 177double scaledRenderHeight = (img.Height / img.Width) * 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); 444MyAbs(frame.PixelHeight, (int)size.Height, true); 476Invariant.Assert(size.Height != 0, "input param height 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)
115newSize.Height = Math.Max(newSize.Height, top + child.DesiredSize.Height); 119newSize.Height = Math.Max(newSize.Height, child.DesiredSize.Height); 179y = arrangeSize.Height - child.DesiredSize.Height - bottom;
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 (10)
1064if (double.IsInfinity(constraint.Width) || double.IsInfinity(constraint.Height)) 1125newPageSize.Height != pageSize.Height) 1146if (_viewportHeight != arrangeSize.Height || 1151_viewportHeight = arrangeSize.Height; 1392offset + constraint.Height, 2291double height = pageSize.Height * rows; 2438double rowHeight = pivotRow.RowSize.Height - VerticalPageSpacing; 2956newRow.RowSize.Height != _savedPivotRow.RowSize.Height)
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (2)
302new Size(_dropShadowWidth, Math.Max( 0.0, arrangeSize.Height - _dropShadowWidth)) 308new Point(_dropShadowWidth, arrangeSize.Height),
src\Framework\MS\Internal\Documents\FlowDocumentFormatter.cs (1)
107_document.StructuralCache.BackgroundFormatInfo.ViewportHeight = constraint.Height;
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (6)
546if (DoubleUtil.IsNaN(newPageSize.Height)) 548newPageSize.Height = _defaultPageSize.Height; 875if (DoubleUtil.IsNaN(pageSize.Height)) 877pageSize.Height = _pageSize.Height; 879if (pageSize.Height > max) 884if (pageSize.Height < min)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (3)
90desiredSize.Height = Math.Min(constraint.Height, _formatter.DocumentPage.Size.Height); 160viewport = new Rect(_scrollData.HorizontalOffset, _scrollData.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height);
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (2)
463else if (DoubleUtil.GreaterThan(point.Y, _viewer.RenderSize.Height)) 923position = pageTextView.GetTextPositionFromPoint(new Point(suggestedX, pageTextView.RenderScope.RenderSize.Height), true);
src\Framework\MS\Internal\Documents\RowCache.cs (11)
341double rowHeight = Math.Round(_rowCache[i].RowSize.Height, _findOffsetPrecision); 496currentOffset += currentRow.RowSize.Height; 497_extentHeight += currentRow.RowSize.Height; 1023newRow.VerticalOffset = lastRow.VerticalOffset + lastRow.RowSize.Height; 1030_extentHeight += newRow.RowSize.Height; 1118if (oldRowInfo.RowSize.Height != newRow.RowSize.Height) 1122double delta = newRow.RowSize.Height - oldRowInfo.RowSize.Height; 1423_rowSize.Height = Math.Max(pageSize.Height, _rowSize.Height);
src\Framework\MS\Internal\Documents\ScrollData.cs (7)
69SetVerticalOffset(owner, _offset.Y - _viewport.Height); 77SetVerticalOffset(owner, _offset.Y + _viewport.Height); 160offset = Math.Max(0, Math.Min(_extent.Height - _viewport.Height, offset)); 191Rect viewport = new Rect(_offset.X, _offset.Y, _viewport.Width, _viewport.Height); 315return _extent.Height; 342return _viewport.Height;
src\Framework\MS\Internal\Documents\TextBoxView.cs (4)
505desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 541context.DrawRectangle(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)), null, new Rect(0, 0, this.RenderSize.Width, this.RenderSize.Height)); 3107padding = Math.Max(0, viewport.Height - _contentSize.Height);
src\Framework\MS\Internal\Documents\UIElementIsland.cs (2)
93islandSize.Height = verticalAutoSize ? _child.DesiredSize.Height : availableSize.Height;
src\Framework\MS\Internal\Helper.cs (10)
1097headerSize.Height = Math.Max(itemsCorrectionFactor.Top, headerSize.Height); 1101headerSize.Height = Math.Max(virtualizingElement.DesiredSize.Height, headerSize.Height); 1128if (DoubleUtil.GreaterThan(itemPixelSize.Height, 0)) 1136if (DoubleUtil.AreClose(itemDesiredSizes.PixelSizeAfterViewport.Height, 0) && 1137DoubleUtil.AreClose(itemDesiredSizes.PixelSizeInViewport.Height, 0) && 1138DoubleUtil.GreaterThan(itemDesiredSizes.PixelSizeBeforeViewport.Height, 0)) 1149if (DoubleUtil.AreClose(itemDesiredSizes.PixelSizeAfterViewport.Height, 0) && 1150DoubleUtil.GreaterThan(itemDesiredSizes.PixelSizeInViewport.Height, 0)) 1161if (DoubleUtil.GreaterThan(itemDesiredSizes.PixelSizeAfterViewport.Height, 0))
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
402inkCanvas.Height = size.Height;
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)
421parentTransform.TryTransform(new Point(0, childElement.RenderSize.Height), out elementPoints.LowerLeft); 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)
398writer.WriteAttributeString("Height", size.Height.ToString("F", CultureInfo.InvariantCulture));
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
193rectCell.dv = TextDpi.ToTextDpi(subpageSize.Height);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
168SetContentBox(new Rect(pageMargin.Left, pageMargin.Top, _ptsPage.CalculatedSize.Width, _ptsPage.CalculatedSize.Height)); 208pageSize.Height - (pageMargin.Top + pageMargin.Bottom)));
src\Framework\MS\Internal\PtsHost\Line.cs (1)
368double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height;
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
244double pageHeight = _paraClient.Paragraph.StructuralCache.CurrentFormatContext.DocumentPageSize.Height;
src\Framework\MS\Internal\PtsHost\PtsHost.cs (2)
2658dvrSumHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height); 2659dvrMinHeight = TextDpi.ToTextDpi(uiElement.DesiredSize.Height);
src\Framework\MS\Internal\PtsHost\PtsPage.cs (2)
865_contentSize.Height = Math.Max(_contentSize.Height, _calculatedSize.Height);
src\Framework\MS\Internal\PtsHost\RunClient.cs (5)
62double baseline = desiredSize.Height; 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 (1)
117dvrPage = TextDpi.ToTextDpi(pageSize.Height);
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (2)
739internal double PageHeight { get { return _currentFormatInfo.PageSize.Height; } } 776PageSize.Height - PageMargin.Top - PageMargin.Bottom)); } }
src\Framework\MS\Internal\PtsHost\UIElementParagraph.cs (2)
426elementHeight = StructuralCache.CurrentFormatContext.DocumentPageSize.Height - pageMargin.Top - pageMargin.Bottom - TextDpi.FromTextDpi(mbp.MBPTop + mbp.MBPBottom); 440fsbbox.fsrc.dv = TextDpi.ToTextDpi(uiIslandSize.Height) + mbp.BPTop + mbp.BPBottom;
src\Framework\MS\Internal\Text\InlineObject.cs (5)
58double baseline = desiredSize.Height; 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\TextDpi.cs (10)
90fsvector.dv = ToTextDpi(size.Height); 123size = new Size(FromTextDpi(ToTextDpi(size.Width)), FromTextDpi(ToTextDpi(size.Height))); 156if (size.Height > _maxSize) { size.Height = _maxSize; } 157else if (size.Height < _minSize) { size.Height = _minSize; } 176if (pageMargin.Top >= pageSize.Height) { pageMargin.Bottom = 0.0; } 177if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height) 179pageMargin.Bottom = Math.Max(0.0, pageSize.Height - pageMargin.Top - _minSize);; 180if (pageMargin.Top + pageMargin.Bottom >= pageSize.Height) 182pageMargin.Top = pageSize.Height - _minSize; 195if (size.Height > _maxObjSize) { size.Height = _maxObjSize; }
src\Framework\System\Windows\Controls\Border.cs (16)
238Size combined = new Size(border.Width + padding.Width, border.Height + padding.Height); 242Math.Max(0.0, constraint.Height - combined.Height)); 250mySize.Height = childSize.Height + combined.Height; 255mySize = new Size(border.Width + padding.Width, border.Height + padding.Height); 444new Point(RenderSize.Width - halfThickness, RenderSize.Height - halfThickness)); 473new Point(halfThickness, RenderSize.Height)); 505new Point(RenderSize.Width - halfThickness, RenderSize.Height)); 566new Point(0, RenderSize.Height - halfThickness), 567new Point(RenderSize.Width, RenderSize.Height - halfThickness)); 587UIElement.RoundLayoutValue(RenderSize.Height - border.Bottom, dpi.DpiScaleY)); 592RenderSize.Height - UIElement.RoundLayoutValue(border.Bottom, dpi.DpiScaleY)); 598ptBR = new Point(RenderSize.Width - border.Right, RenderSize.Height - border.Bottom);
src\Framework\System\Windows\Controls\Canvas.cs (2)
337y = arrangeSize.Height - child.DesiredSize.Height - bottom;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
945rect.Height = _clonedElement.RenderSize.Height; 977rect.Height = _clonedElement.RenderSize.Height;
src\Framework\System\Windows\Controls\DataGridCell.cs (2)
869Rect rect = new Rect(new Size(thickness, RenderSize.Height)); 879rect.Y = RenderSize.Height - thickness;
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (9)
108Size childMeasureConstraint = new Size(double.PositiveInfinity, constraint.Height); 192measureHeight = Math.Max(measureHeight, blockMeasureSize.Height); 404measureSize.Height = Math.Max(measureSize.Height, childSize.Height); 424measureSize.Height = Math.Max(measureSize.Height, headerSize.Height); 582childSize = new Size(width.DisplayValue, childSize.Height); 619measureHeight = Math.Max(measureHeight, childSize.Height); 1367arrangeState.ChildHeight = arrangeSize.Height;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
40return new Size(size.Width, Math.Max(0.0, size.Height - thickness)); 44return new Size(Math.Max(0.0, size.Width - thickness), size.Height);
src\Framework\System\Windows\Controls\DataGridRow.cs (1)
554double minHeight = Math.Max(RowHeader.DesiredSize.Height, MinHeight);
src\Framework\System\Windows\Controls\DockPanel.cs (9)
233Math.Max(0.0, constraint.Height - accumulatedHeight)); 253parentHeight = Math.Max(parentHeight, accumulatedHeight + childDesiredSize.Height); 260accumulatedHeight += childDesiredSize.Height; 298Math.Max(0.0, arrangeSize.Height - (accumulatedTop + accumulatedBottom)) ); 316accumulatedTop += childDesiredSize.Height; 317rcChild.Height = childDesiredSize.Height; 321accumulatedBottom += childDesiredSize.Height; 322rcChild.Y = Math.Max(0.0, arrangeSize.Height - accumulatedBottom); 323rcChild.Height = childDesiredSize.Height;
src\Framework\System\Windows\Controls\Grid.cs (11)
443gridDesiredSize.Height = Math.Max(gridDesiredSize.Height, child.DesiredSize.Height); 451bool sizeToContentV = double.IsPositiveInfinity(constraint.Height); 646if (HasStarCellsV) { ResolveStar(DefinitionsV, constraint.Height); } 660if (HasStarCellsV) { ResolveStar(DefinitionsV, constraint.Height); } 693if (HasStarCellsV) { ResolveStar(DefinitionsV, constraint.Height); } 751SetFinalSize(DefinitionsV, arrangeSize.Height, false); 1311DefinitionsV[PrivateCells[i].RowIndex].UpdateMinSize(Math.Min(children[i].DesiredSize.Height, DefinitionsV[PrivateCells[i].RowIndex].UserMaxSize)); 1320children[i].DesiredSize.Height); 1339key.U ? referenceSize.Width : referenceSize.Height); 4237grid.DefinitionsU[i].FinalOffset, boundsSize.Height);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (6)
253double constraintHeight = constraint.Height; 301maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 308maxHeight = Math.Max(maxHeight, _paddingHeader.DesiredSize.Height); 360rect = new Rect(accumulatedWidth, 0.0, childArrangeWidth, arrangeSize.Height); 391rect = new Rect(accumulatedWidth, 0.0, Math.Max(remainingWidth, 0.0), arrangeSize.Height); 401_indicator.Arrange(new Rect(pos, new Size(_indicator.DesiredSize.Width, arrangeSize.Height)));
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (3)
142double constraintHeight = constraint.Height; 194maxHeight = Math.Max(maxHeight, child.DesiredSize.Height); 229child.Arrange(new Rect(accumulatedWidth, 0, childArrangeWidth, arrangeSize.Height));
src\Framework\System\Windows\Controls\GroupItem.cs (1)
304DoubleUtil.GreaterThan(pixelHeaderSize.Height, 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)
186newSize.Height = Math.Max(newSize.Height, sizeStrokes.Height); 220Math.Min(arrangeSize.Height, _constraintSize.Height));
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 (9)
205new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 264Size desiredSize = new Size(bulletSize.Width + contentSize.Width, Math.Max(bulletSize.Height, contentSize.Height)); 302contentSize.Height = Math.Max(content.DesiredSize.Height, arrangeSize.Height); 304content.Arrange(new Rect(contentOffsetX, 0, contentSize.Width, contentSize.Height)); 307bulletOffsetY += Math.Max(0d, centerY - bulletSize.Height * 0.5d); 313bullet.Arrange(new Rect(0, bulletOffsetY, bullet.DesiredSize.Width, bullet.DesiredSize.Height)); 380return element.RenderSize.Height;
src\Framework\System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (1)
488rect.Y = RenderSize.Height - thickness;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (6)
123desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height); 131desiredSize.Height = Math.Max(desiredSize.Height, indicatorSize.Height); 694height = _draggingSrcColumnHeader.RenderSize.Height; 698height = Math.Max(_draggingSrcColumnHeader.RenderSize.Height, _columnHeaderDragIndicator.Height);
src\Framework\System\Windows\Controls\Primitives\DataGridDetailsPresenter.cs (1)
296rect.Y = RenderSize.Height - thickness;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (1)
205return new Size(dataGridOwner.RowHeaderActualWidth, baseSize.Height);
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (17)
241if (!Double.IsInfinity(availableSize.Width) || !Double.IsInfinity(availableSize.Height)) 247newPageSize.Height = availableSize.Height / _pageZoom; 248newPageSize.Width = newPageSize.Height * (pageSize.Width / pageSize.Height); // Keep aspect ratio. 250else if (Double.IsInfinity(availableSize.Height)) 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); 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); 2642desiredSize.Height = Math.Min(desiredSize.Height, screenBounds.Height); 2643desiredSize.Height = Math.Min(desiredSize.Height, maxHeight); 2644desiredSize.Height = Math.Min(desiredSize.Height, limitSize.Height);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (6)
195restrictHeight ? restrictedSize.Height : Double.PositiveInfinity); 224restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance; 236Math.Min(restrictedSize.Height, restricted2DDesiredSize.Height)); 327double height = _adornerDecorator.RenderSize.Height;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (9)
272get { return (IsScrollClient) ? EnsureScrollData()._extent.Height : 0.0; } 286get { return (IsScrollClient) ? EnsureScrollData()._viewport.Height : 0.0; } 452desiredSize.Height = Math.Min(constraint.Height, desiredSize.Height); 501childRect.Height = Math.Max(childRect.Height, arrangeSize.Height); 821if (Double.IsInfinity(viewport.Height)) viewport.Height = extent.Height; 850CoerceOffset(_scrollData._offset.Y, _scrollData._extent.Height, _scrollData._viewport.Height));
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (8)
116if (_rowHeight < childSize.Height) 117_rowHeight = childSize.Height; 164contentSize.Height += childSize.Height; 213desiredSizeWithoutMargin.Height = Math.Max(0d, element.DesiredSize.Height - margin.Top - margin.Bottom); 282child.Arrange(new Rect(childOffset.X, childOffset.Y, cellSize.Width, cellSize.Height)); 285childSize.Height = Math.Max(0d, childSize.Height - topOffset - bottomOffset); 314child.Arrange(new Rect(0, childOffsetY, arrangeSize.Width, childSize.Height)); 317childOffsetY += childSize.Height;
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (11)
384tickLen = - size.Height; 385startPoint = new Point(halfReservedSpace, size.Height); 386endPoint = new Point(halfReservedSpace + size.Width, size.Height); 397tickLen = size.Height; 405if (DoubleUtil.GreaterThanOrClose(ReservedSpace, size.Height)) 411startPoint = new Point(size.Width, size.Height + halfReservedSpace); 413logicalToPhysical = size.Height / range * -1; 418if (DoubleUtil.GreaterThanOrClose(ReservedSpace, size.Height)) 424startPoint = new Point(0d, size.Height + halfReservedSpace); 426logicalToPhysical = size.Height / range * -1; 458double minInterval = (Maximum - Minimum) / size.Height;
src\Framework\System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (10)
133_panelSize.Height += curLineSize.Height; 139_panelSize.Height += sz.Height; 146curLineSize.Height = Math.Max(sz.Height, curLineSize.Height); 152_panelSize.Height += curLineSize.Height; 177arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, i); 178accumulatedHeight += curLineSize.Height; 187curLineSize.Height = Math.Max(sz.Height, curLineSize.Height); 191arrangeLine(accumulatedHeight, curLineSize.Height, firstInLine, children.Count);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (14)
109newExtent = childDesiredSize.Height + panelDesiredSize.Height; 126panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 131panelDesiredSize.Height += childDesiredSize.Height; 185panelDesiredSize.Height = Math.Max(panelDesiredSize.Height, childDesiredSize.Height); 189overflowExtent += childDesiredSize.Height; 257maxExtent = constraint.Height; 267MinLength = horizontal ? stackDesiredSize.Width : stackDesiredSize.Height; 275MaxLength = (horizontal ? stackDesiredSize.Width : stackDesiredSize.Height) + overflowExtent; 314rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 319previousChildSize = child.DesiredSize.Height;
src\Framework\System\Windows\Controls\Primitives\Track.cs (7)
78val = Value + ValueFromDistance(pt.X - ThumbCenterOffset, pt.Y - (RenderSize.Height * 0.5)); 516CoerceLength(ref decreaseButtonLength, arrangeSize.Height); 517CoerceLength(ref increaseButtonLength, arrangeSize.Height); 518CoerceLength(ref thumbLength, arrangeSize.Height); 591trackLength = arrangeSize.Height; 592thumbLength = Thumb == null ? 0 : Thumb.DesiredSize.Height; 635trackLength = arrangeSize.Height;
src\Framework\System\Windows\Controls\Primitives\UniformGrid.cs (4)
182Size childConstraint = new Size(constraint.Width / _columns, constraint.Height / _rows); 200if (maxChildDesiredHeight < childDesiredSize.Height) 202maxChildDesiredHeight = childDesiredSize.Height; 218Rect childBounds = new Rect(0, 0, arrangeSize.Width / _columns, arrangeSize.Height / _rows);
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (2)
104get { return _viewport.Height; } 137get { return _extent.Height; }
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), 1039if (DoubleUtil.AreClose(range, 0d) || (DoubleUtil.AreClose(trackSize.Height, thumbSize.Height))) 1045valueToSize = Math.Max(0.0, (trackSize.Height - thumbSize.Height) / range); 1051Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(SelectionStart - Minimum, 0) * valueToSize); 1055Canvas.SetTop(rangeElement, (thumbSize.Height * 0.5) + Math.Max(Maximum - SelectionEnd,0) * valueToSize);
src\Framework\System\Windows\Controls\Stack.cs (23)
282newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height); 417return _scrollData._extent.Height; 441return _scrollData._viewport.Height; 588logicalVisibleSpace = constraint.Height; 610stackDesiredSize.Height = Math.Max(stackDesiredSize.Height, childDesiredSize.Height); 616stackDesiredSize.Height += childDesiredSize.Height; 617childLogicalSize = childDesiredSize.Height; 652else { projectedLogicalVisibleSpace -= children[firstViewport - 1].DesiredSize.Height; } 675offset.Y = Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height)); 679scrollData.SetPhysicalViewport(viewport.Height); 689stackDesiredSize.Height = Math.Min(stackDesiredSize.Height, constraint.Height); 767rcChild.Height = Math.Max(arrangeSize.Height, child.DesiredSize.Height); 772previousChildSize = child.DesiredSize.Height; 851: ((UIElement)children[i]).DesiredSize.Height; 943viewportSize = (int)_scrollData._viewport.Height; 957double nextChildSize = ((fHorizontal) ? childDesiredSize.Width : childDesiredSize.Height); 964nextChildSize = ((fHorizontal) ? childDesiredSize.Width : childDesiredSize.Height); 988newRect.Height = InternalChildren[childIndex].DesiredSize.Height;
src\Framework\System\Windows\Controls\TextBlock.cs (11)
1297(DoubleUtil.AreClose(constraint.Height, _referenceSize.Height) || lineCount == 1); 1354Math.Max(0.0, constraint.Height - (padding.Top + padding.Bottom))); 1395(contentSize.Height >= (desiredSize.Height + lineHeight)) || 1400_baselineOffset = desiredSize.Height + line.BaselineOffset; 1588ctx.DrawRectangle(background, null, new Rect(0, 0, RenderSize.Width, RenderSize.Height)); 1622double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom); 2068Math.Max(0.0, _referenceSize.Height - (padding.Top + padding.Bottom))); 3207Math.Max(0.0, computedSize.Height - (padding.Top + padding.Bottom))); 3256double contentBottom = Math.Max(0.0, RenderSize.Height - Padding.Bottom);
src\Framework\System\Windows\Controls\ToolBar.cs (2)
572extraLength = Math.Max(0.0, desiredSize.Height - toolBarPanel.DesiredSize.Height + margin.Top + margin.Bottom);
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; 419toolBarTrayDesiredSize.Height = Math.Max(toolBarTrayDesiredSize.Height, bandLength); 452Size toolBarArrangeSize = new Size(fHorizontal ? toolBar.DesiredSize.Width : bandThickness, fHorizontal ? bandThickness : toolBar.DesiredSize.Height ); 458rcChild.Y += toolBarArrangeSize.Height; 713if (DoubleUtil.GreaterThanOrClose(toolBar.RenderSize.Height - shrinkAmount, toolBar.MinLength)) 715toolBar.Height = toolBar.RenderSize.Height - shrinkAmount; 721shrinkAmount -= toolBar.RenderSize.Height - toolBar.MinLength; 761if (DoubleUtil.LessThanOrClose(toolBar.RenderSize.Height + expandAmount, toolBar.MaxLength)) 763toolBar.Height = toolBar.RenderSize.Height + expandAmount; 769expandAmount -= toolBar.MaxLength - toolBar.RenderSize.Height; 806toolBarOffset += fHorizontal ? currentToolBar.RenderSize.Width : currentToolBar.RenderSize.Height; // points at the end of currentToolBar 815currentToolBar.Height = Math.Max(currentToolBar.MinLength, currentToolBar.RenderSize.Height - toolBarOffset + position);
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
382DoubleUtil.GreaterThan(pixelHeaderSize.Height, 0) ? 1 : 0);
src\Framework\System\Windows\Controls\ViewBox.cs (9)
334parentSize.Height = scalefac.Height * childSize.Height; 360InternalTransform = new ScaleTransform(scalefac.Width, scalefac.Height); 367arrangeSize.Height = scalefac.Height * childSize.Height; 391bool isConstrainedHeight = !Double.IsPositiveInfinity(availableSize.Height); 398scaleY = (DoubleUtil.IsZero(contentSize.Height)) ? 0.0 : availableSize.Height / contentSize.Height;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (297)
700_scrollData._offset.Y = ScrollContentPresenter.CoerceOffset(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height); 939_scrollData._extent.Height - _scrollData._viewport.Height); 1001if (DoubleUtil.LessThan(expectedOffset, 0) || DoubleUtil.GreaterThan(expectedOffset, _scrollData._extent.Height - _scrollData._viewport.Height)) 1003Debug.Assert(DoubleUtil.AreClose(actualOffset, 0) || DoubleUtil.AreClose(actualOffset, _scrollData._extent.Height - _scrollData._viewport.Height), "The actual offset should already be at the beginning or the end."); 1291firstContainerOffsetFromViewport += virtualizingElement.HeaderDesiredSizes.LogicalSize.Height; 1493newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height); 1834return _scrollData._extent.Height; 1858return _scrollData._viewport.Height; 2581double newContainerSpan = isHorizontal ? newContainerSize.Width : newContainerSize.Height; 2976viewport.Height = stackPixelSize.Height; 3328arrangeLength = Math.Max(isHorizontal ? arrangeSize.Height : arrangeSize.Width, arrangeLength); 3901(!isHorizontal && DoubleUtil.GreaterThanOrClose(DesiredSize.Height, PreviousConstraint.Height))); 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); 4754double approxSizeOfLogicalUnit = (DoubleUtil.GreaterThan(_previousStackPixelSizeInViewport.Height, 0.0) && DoubleUtil.GreaterThan(_previousStackLogicalSizeInViewport.Height, 0.0)) ? 4755_previousStackPixelSizeInViewport.Height / _previousStackLogicalSizeInViewport.Height : ScrollViewer._scrollLineDelta; 4757pixelSize = stackPixelSize.Height; 4758logicalSize = stackLogicalSize.Height; 4762pixelSizeBeforeViewport = stackPixelSizeInCacheBeforeViewport.Height; 4763pixelSizeAfterViewport = stackPixelSizeInCacheAfterViewport.Height; 4764logicalSizeBeforeViewport = stackLogicalSizeInCacheBeforeViewport.Height; 4765logicalSizeAfterViewport = stackLogicalSizeInCacheAfterViewport.Height; 4816if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height, _scrollData._extent.Height)) 4818extendedViewport.Height = _scrollData._extent.Height - extendedViewport.Y; 4851if (DoubleUtil.GreaterThan(extendedViewport.Y + extendedViewport.Height / approxSizeOfLogicalUnit, _scrollData._extent.Height)) 4853extendedViewport.Height = (_scrollData._extent.Height - extendedViewport.Y) * approxSizeOfLogicalUnit; 4889viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y, extent.Height, viewport.Height); 4890if (!IsPixelBased && !isHorizontal && DoubleUtil.IsZero(viewport.Height) && DoubleUtil.AreClose(viewport.Y, extent.Height)) 4892viewport.Y = ScrollContentPresenter.CoerceOffset(viewport.Y - 1, extent.Height, viewport.Height); 5060viewport.Y -= IsPixelBased ? pixelSize.Height : logicalSize.Height; 5068if (IsPixelBased && DoubleUtil.GreaterThan(pixelSize.Height, parentViewport.Y)) 5074sizeAfterStartViewportEdge = pixelSize.Height - parentViewport.Y; 5075sizeBeforeStartViewportEdge = pixelSize.Height - sizeAfterStartViewportEdge; 5085cacheBeforeSize = Math.Max(cacheBeforeSize - Math.Floor(logicalSize.Height * sizeBeforeStartViewportEdge / pixelSize.Height), 0); 5106if (DoubleUtil.GreaterThanOrClose(parentViewport.Height, pixelSize.Height)) 5112viewport.Height = Math.Max(0, parentViewport.Height - pixelSize.Height); 5121sizeAfterEndViewportEdge = pixelSize.Height - sizeBeforeEndViewportEdge; 5131cacheAfterSize = Math.Max(cacheAfterSize - Math.Floor(logicalSize.Height * sizeAfterEndViewportEdge / pixelSize.Height), 0); 5143cacheAfterSize = Math.Max(cacheAfterSize - pixelSize.Height, 0); 5147cacheAfterSize = Math.Max(cacheAfterSize - logicalSize.Height, 0); 5491containerSpan = isHorizontal ? containerSize.Width : containerSize.Height; 5751stackPixelSize.Height += childDesiredSize.Height; 5836distance += containerSize.Height; 5893distance += containerSize.Height; 5894pixelDistance += containerPixelSize.Height; 5936containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 5966containerSize.Height = IsPixelBased ? DesiredSize.Height : 1; 6040double pixelHeight = DesiredSize.Height; 6087uniformOrAverageContainerSize = isHorizontal ? containerSize.Width : containerSize.Height; 6102areContainersUniformlySized = DoubleUtil.AreClose(containerSize.Height, uniformOrAverageContainerSize); 6138uniformOrAverageContainerSize = isHorizontal ? containerSize.Width : containerSize.Height; 6139uniformOrAverageContainerPixelSize = isHorizontal ? containerPixelSize.Width : containerPixelSize.Height; 6166areContainersUniformlySized = DoubleUtil.AreClose(containerSize.Height, uniformOrAverageContainerSize) 6167&& (ignoreContainerPixelSize || DoubleUtil.AreClose(containerPixelSize.Height, uniformOrAverageContainerPixelSize)); 6203oldSpan = (oldValue != null) ? oldSize.Height : uniformOrAverageContainerSize; 6204newSpan = containerSize.Height; 6235oldSpan = (oldValue != null) ? oldCSD.ItemSize.Height : uniformOrAverageContainerSize;; 6236newSpan = containerSize.Height; 6300inset.Top = headerDesiredSizes.PixelSize.Height + margin.Top; 6343double bottom = DoubleUtil.AreClose(itemsSize.Height, itemsRect.Bottom) ? 0 : itemsRect.Bottom-itemsSize.Height; 6507return DoubleUtil.GreaterThanOrClose(stackLogicalSizeInCache.Height, cacheSize); 6518return DoubleUtil.GreaterThanOrClose(stackPixelSizeInCache.Height, cacheSize); 6532return DoubleUtil.GreaterThanOrClose(stackPixelSizeInViewport.Height, viewport.Height); 6635childViewport.Y = (IsPixelBased ? stackPixelSizeInCacheBeforeViewport.Height : stackLogicalSizeInCacheBeforeViewport.Height) + containerSize.Height; 6641(IsPixelBased ? stackPixelSizeInViewport.Height + stackPixelSizeInCacheAfterViewport.Height : 6642stackLogicalSizeInViewport.Height + stackLogicalSizeInCacheAfterViewport.Height); 6644childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6649childViewport.Height = Math.Max(childViewport.Height - stackPixelSizeInViewport.Height, 0.0); 6657Math.Max(parentCacheSize.CacheBeforeViewport - stackLogicalSizeInCacheBeforeViewport.Height, 0.0), 6660Math.Max(parentCacheSize.CacheAfterViewport - stackLogicalSizeInCacheAfterViewport.Height, 0.0)); 6668Math.Max(parentCacheSize.CacheBeforeViewport - stackPixelSizeInCacheBeforeViewport.Height, 0.0), 6671Math.Max(parentCacheSize.CacheAfterViewport - stackPixelSizeInCacheAfterViewport.Height, 0.0)); 6773childLogicalSize.Height = itemDesiredSizes.LogicalSize.Height + logicalHeaderSize.Height; 6779childLogicalSize.Height = Math.Max(itemDesiredSizes.LogicalSize.Height, logicalHeaderSize.Height); 6784(!isHorizontal && DoubleUtil.AreClose(itemDesiredSizes.PixelSize.Height, itemDesiredSizes.PixelSizeInViewport.Height)))) 6878DoubleUtil.GreaterThan(childPixelSize.Height, 0) ? 1 : 0); 6884DoubleUtil.GreaterThan(childPixelSizeInCacheBeforeViewport.Height, 0) ? 1 : 0); 6890DoubleUtil.GreaterThan(childPixelSizeInCacheAfterViewport.Height, 0) ? 1 : 0); 6956if ((!isHorizontal && (itemDesiredSizes.PixelSize.Height > 0 || 6957itemDesiredSizes.LogicalSize.Height > 0)) || 6978Size frontPixelSize = isHorizontal ? new Size(Math.Max(inset.Left,0), childDesiredSize.Height) 6992Size backPixelSize = isHorizontal ? new Size(Math.Max(inset.Right,0), childDesiredSize.Height) 7010adjustedChildViewport.Y -= IsPixelBased ? frontPixelSize.Height + itemDesiredSizes.PixelSize.Height 7011: frontLogicalSize.Height + itemDesiredSizes.LogicalSize.Height; 7012adjustedChildViewport.Height = Math.Max(0, adjustedChildViewport.Height - childPixelSizeInViewport.Height); 7033DoubleUtil.GreaterThan(childPixelSizeInCacheBeforeViewport.Height, 0) ? 1 : 0); 7039DoubleUtil.GreaterThan(childPixelSizeInCacheAfterViewport.Height, 0) ? 1 : 0); 7090if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childPixelSize.Height) || 7108if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childLogicalSize.Height) || 7153double childPixelHeightInViewport = Math.Min(childViewport.Height, childPixelSize.Height - Math.Max(childViewport.Y, 0.0)); 7156childPixelSizeInViewport.Height = Math.Max(childPixelSizeInViewport.Height, childPixelHeightInViewport); 7158childPixelSizeInCacheBeforeViewport.Height = Math.Max(childPixelSizeInCacheBeforeViewport.Height, childPixelHeightInViewport); 7160childPixelSizeInCacheAfterViewport.Height = Math.Max(childPixelSizeInCacheAfterViewport.Height, childPixelHeightInViewport); 7163childLogicalSizeInViewport.Height = Math.Max(childLogicalSizeInViewport.Height, childLogicalSize.Height); 7165childLogicalSizeInCacheBeforeViewport.Height = Math.Max(childLogicalSizeInCacheBeforeViewport.Height, childLogicalSize.Height); 7167childLogicalSizeInCacheAfterViewport.Height = Math.Max(childLogicalSizeInCacheAfterViewport.Height, childLogicalSize.Height); 7189pixelSizeBeforeViewport = DoubleUtil.LessThan(childViewport.Y, childPixelSize.Height) ? Math.Max(childViewport.Y, 0.0) : childPixelSize.Height; 7190pixelSizeInViewport = Math.Min(childViewport.Height, childPixelSize.Height - pixelSizeBeforeViewport); 7191pixelSizeAfterViewport = Math.Max(childPixelSize.Height - pixelSizeInViewport - pixelSizeBeforeViewport, 0.0); // Please note that due to rounding errors this subtraction can lead to negative values. Hence the Math.Max call 7207if (DoubleUtil.GreaterThanOrClose(childViewport.Y, childLogicalSize.Height)) 7209pixelSizeBeforeViewport = childPixelSize.Height; 7212logicalSizeBeforeViewport = childLogicalSize.Height; 7219pixelSizeInViewport = childPixelSize.Height; 7223pixelSizeAfterViewport = childPixelSize.Height; 7226logicalSizeAfterViewport = childLogicalSize.Height; 7232Debug.Assert(DoubleUtil.AreClose(pixelSizeInViewport + pixelSizeBeforeViewport + pixelSizeAfterViewport, childPixelSize.Height), "The computed sizes within and outside the viewport should add up to the childPixelSize."); 7234if (DoubleUtil.GreaterThan(childPixelSize.Height, 0.0)) 7236logicalSizeBeforeViewport = Math.Floor(childLogicalSize.Height * pixelSizeBeforeViewport / childPixelSize.Height); 7237logicalSizeAfterViewport = Math.Floor(childLogicalSize.Height * pixelSizeAfterViewport / childPixelSize.Height); 7238logicalSizeInViewport = childLogicalSize.Height - logicalSizeBeforeViewport - logicalSizeAfterViewport; 7242logicalSizeInViewport = childLogicalSize.Height - logicalSizeBeforeViewport - logicalSizeAfterViewport; 7302sz1.Height = Math.Max(sz1.Height, sz2.Height); 7306sz1.Height += sz2.Height; 7358headerDesiredSizes.PixelSize.Height + itemDesiredSizes.PixelSize.Height); 7363headerDesiredSizes.LogicalSize.Height + itemDesiredSizes.LogicalSize.Height); 7375DoubleUtil.GreaterThan(child.DesiredSize.Height, 0) ? 1 : 0); 7387computedAreContainersUniformlySized = DoubleUtil.AreClose(childSize.Height, uniformOrAverageContainerSize); 7432sumOfContainerSizes += containerSize.Height; 7513inset.Top + itemDesiredSizes.PixelSize.Height + inset.Bottom); 7530Math.Max(1, itemDesiredSizes.LogicalSize.Height)) 75321 + itemDesiredSizes.LogicalSize.Height); 7546DoubleUtil.GreaterThan(child.DesiredSize.Height, 0) ? 1 : 0); 7559computedAreContainersUniformlySized = DoubleUtil.AreClose(childSize.Height, uniformOrAverageContainerSize) 7560&& (IsPixelBased || DoubleUtil.AreClose(childPixelSize.Height, uniformOrAverageContainerPixelSize)); 7652sumOfContainerSizes += containerSize.Height; 7653sumOfContainerPixelSizes += containerPixelSize.Height; 8284((IsVSP45Compat || !IsVirtualizing || !HasVirtualizingChildren) ? _previousStackPixelSizeInCacheBeforeViewport.Height : _pixelDistanceToViewport); 8327rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8358rcChild.Height = childDesiredSize.Height; 8369previousChildSize.Height = itemDesiredSizes.PixelSizeInViewport.Height; 8373previousChildSize.Height += itemDesiredSizes.PixelSizeBeforeViewport.Height + itemDesiredSizes.PixelSizeAfterViewport.Height; 8380previousChildSize.Height += pixelHeaderSize.Height; 8384previousChildSize.Height = Math.Max(previousChildSize.Height, pixelHeaderSize.Height); 8414rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8418rcChild.Y += previousChildSize.Height; 8419rcChild.Height = childDesiredSize.Height; 8458rcChild.Height = Math.Max(arrangeLength, childDesiredSize.Height); 8510rcChild.Height = childDesiredSize.Height; 8553rcChild.Y -= childDesiredSize.Height; 8557rcChild.Y += previousChildSize.Height; 9493if (DoubleUtil.GreaterThan(stackPixelSizeInViewport.Height, constraint.Height) && 9494viewportSize.Height > 1) 9513stackPixelSize.Height = _scrollData._extent.Height; 9520_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 9521stackPixelSize.Height = _scrollData._maxDesiredSize.Height; 9523extentSize.Height = stackPixelSize.Height; 9525if (Double.IsPositiveInfinity(constraint.Height)) 9527viewportSize.Height = stackPixelSize.Height; 9575if (!Double.IsPositiveInfinity(constraint.Height)) 9578Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 9623(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y, _scrollData.Extent.Height-_scrollData.Viewport.Height))); 9626(IsScrollActive && computedViewportOffset.Y > 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.Y, _scrollData.Extent.Height-_scrollData.Viewport.Height))) 9683if (DoubleUtil.GreaterThan(newOffset + viewportSize.Height, extentSize.Height)) 9698!DoubleUtil.AreClose(isHorizontal ? stackPixelSizeInViewport.Width : stackPixelSizeInViewport.Height, 9732extentHeightChanged = !DoubleUtil.AreClose(extentSize.Height, _scrollData._extent.Height); 9762Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 9970DoubleUtil.GreaterThan(computedViewportOffset.Y, extentSize.Height - viewportSize.Height))) 9977"ext:", _scrollData._extent.Height, extentSize.Height, 9978"vpSz:", viewportSize.Height); 9993if (!DoubleUtil.AreClose(_scrollData._extent.Height, 0) && 9994!DoubleUtil.AreClose(extentSize.Height, 0)) 9996if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height)) 9999viewportOffset.Y = (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height; 10006"expRat:", _scrollData._offset.Y, _scrollData._extent.Height, (_scrollData._offset.Y/_scrollData._extent.Height), 10007"actRat:", computedViewportOffset.Y, extentSize.Height, (computedViewportOffset.Y/extentSize.Height), 10051DoubleUtil.GreaterThan(stackLogicalSize.Height, stackLogicalSizeInViewport.Height)) 10060lastPagePixelSize = stackPixelSizeInViewport.Height; 10063double approxSizeOfLogicalUnit = stackPixelSizeInViewport.Height / stackLogicalSizeInViewport.Height; 10065if (DoubleUtil.GreaterThan(proposedViewportSize, viewportSize.Height)) 10071"pxSz:", stackPixelSizeInViewport.Height, viewport.Height, 10072"itSz:", stackLogicalSizeInViewport.Height, viewportSize.Height, 10088!DoubleUtil.AreClose(_scrollData._viewport.Height, viewportSize.Height)) 10094"vpSz:", _scrollData._viewport.Height, viewportSize.Height, 10102if (DoubleUtil.AreClose(viewportSize.Height, 0)) 10104viewportSize.Height = _scrollData._viewport.Height; 10120DoubleUtil.GreaterThan(computedViewportOffset.Y, extentSize.Height - viewportSize.Height))) 10126"ext:", _scrollData._extent.Height, extentSize.Height, 10127"vpSz:", viewportSize.Height); 10143if (!DoubleUtil.AreClose(_scrollData._extent.Height, 0) && 10144!DoubleUtil.AreClose(extentSize.Height, 0)) 10148if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height)) 10151viewportOffset.Y = (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height; 10157if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height)) 10160viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height); 10167"expRat:", _scrollData._offset.Y, _scrollData._extent.Height, (_scrollData._offset.Y/_scrollData._extent.Height), 10168"actRat:", computedViewportOffset.Y, extentSize.Height, (computedViewportOffset.Y/extentSize.Height), 10345if (DoubleUtil.GreaterThan(stackPixelSizeInViewport.Height, constraint.Height) && 10346viewportSize.Height > 1) 10365stackPixelSize.Height = _scrollData._extent.Height; 10372_scrollData._maxDesiredSize.Height = Math.Max(_scrollData._maxDesiredSize.Height, stackPixelSize.Height); 10373stackPixelSize.Height = _scrollData._maxDesiredSize.Height; 10375extentSize.Height = stackPixelSize.Height; 10377if (Double.IsPositiveInfinity(constraint.Height)) 10379viewportSize.Height = stackPixelSize.Height; 10427if (!Double.IsPositiveInfinity(constraint.Height)) 10430Math.Min(stackPixelSize.Height, constraint.Height) : constraint.Height; 10479Visibility newvv = DoubleUtil.LessThanOrClose(extentSize.Height, viewportSize.Height) ? Visibility.Collapsed : Visibility.Visible; 10651DoubleUtil.GreaterThan(stackLogicalSize.Height, stackLogicalSizeInViewport.Height)) 10659double approxSizeOfLogicalUnit = stackPixelSizeInViewport.Height / stackLogicalSizeInViewport.Height; 10661if (DoubleUtil.GreaterThan(proposedViewportSize, viewportSize.Height)) 10675!DoubleUtil.AreClose(_scrollData._viewport.Height, viewportSize.Height)) 10681if (DoubleUtil.AreClose(viewportSize.Height, 0)) 10683viewportSize.Height = _scrollData._viewport.Height; 10688if (!remeasure && extentSizeChanged && !DoubleUtil.AreClose(_scrollData._extent.Height, extentSize.Height)) 10695DoubleUtil.GreaterThan(computedViewportOffset.Y, extentSize.Height - viewportSize.Height)) 10728!DoubleUtil.AreClose(_scrollData._extent.Height, 0) && 10729!DoubleUtil.AreClose(extentSize.Height, 0)) 10733if (!LayoutDoubleUtil.AreClose(computedViewportOffset.Y/extentSize.Height, _scrollData._offset.Y/_scrollData._extent.Height)) 10736viewportOffset.Y = (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height; 10742if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.Y)/extentSize.Height, Math.Floor(_scrollData._offset.Y)/_scrollData._extent.Height)) 10745viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height); 10928offset += (isHorizontal ? desiredPixelHeaderSize.Width : desiredPixelHeaderSize.Height); 10941offset += (isHorizontal ? desiredLogicalHeaderSize.Width : desiredLogicalHeaderSize.Height); 11088viewportSize = (int)_scrollData._viewport.Height; 11147maxChildLength = Math.Max(maxChildLength, childSize.Height); 11643_viewport.Height == 0.0 && 11645_extent.Height == 0.0 && 11647_maxDesiredSize.Height == 0.0; 11752if (DoubleUtil.GreaterThanOrClose(newOffset, _extent.Height - _viewport.Height)) 11756else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset), _viewport.Height)) 12793writer.Write(size.Height);
src\Framework\System\Windows\Controls\WrapPanel.cs (6)
227UVSize uvConstraint = new UVSize(Orientation, constraint.Width, constraint.Height); 235(itemHeightSet ? itemHeight : constraint.Height)); 251(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 292UVSize uvFinalSize = new UVSize(Orientation, finalSize.Width, finalSize.Height); 307(itemHeightSet ? itemHeight : child.DesiredSize.Height)); 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\CaretElement.cs (2)
175double.IsInfinity(availableSize.Height) ? double.MaxValue/2 : availableSize.Height);
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)); 839y = arrangeSize.Height - child.DesiredSize.Height - bottom;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
154else if (pt.Y > pageSize.Height) 156pt.Y = pageSize.Height;
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (11)
2063imageNaturalSize = new Size(imageInputSize.Width, imageInputSize.Height); 2074if (imageInputSize.Height == 0) 2081imageInputSize.Width = imageNaturalSize.Width * (imageInputSize.Height / imageNaturalSize.Height); 2084if (imageInputSize.Height == 0) 2088imageInputSize.Height = imageNaturalSize.Height; 2093imageInputSize.Height = imageNaturalSize.Height * (imageInputSize.Width / imageNaturalSize.Width); 2111Converters.PxToHalfPointRounded((imageNaturalSize.Height * scaleFactor.Height) - 2121_rtfBuilder.Append(Converters.PxToTwipRounded(imageNaturalSize.Height * scaleFactor.Height).ToString(CultureInfo.InvariantCulture));
src\Framework\System\Windows\FrameworkElement.cs (56)
3399return fe.RenderSize.Height; 3422return RenderSize.Height; 4134Double yConstr = transformSpaceBounds.Height; 4344Math.Max(availableSize.Height - marginHeight, 0)); 4393frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 4407Math.Max(desiredSize.Height, mm.minHeight)); 4419Rect unclippedBoundsTransformed = Rect.Transform(new Rect(0, 0, unclippedDesiredSize.Width, unclippedDesiredSize.Height), ltd.Transform.Value); 4435if (desiredSize.Height > mm.maxHeight) 4444Rect childBoundsTransformed = Rect.Transform(new Rect(0, 0, desiredSize.Width, desiredSize.Height), ltd.Transform.Value); 4453double clippedDesiredHeight = desiredSize.Height + marginHeight; 4464if (clippedDesiredHeight > availableSize.Height) 4466clippedDesiredHeight = availableSize.Height; 4511sb.Height = unclippedDesiredSize.Height; 4583arrangeSize.Height = Math.Max(0, arrangeSize.Height - marginHeight); 4592transformedUnroundedDS.Height = Math.Max(0, transformedUnroundedDS.Height- marginHeight); 4602Math.Max(0, this.DesiredSize.Height - marginHeight)); 4608unclippedDesiredSize.Height = Math.Max(transformedUnroundedDS.Height, unclippedDesiredSize.Height); 4622if (DoubleUtil.LessThan(arrangeSize.Height, unclippedDesiredSize.Height)) 4625arrangeSize.Height = unclippedDesiredSize.Height; 4637arrangeSize.Height = unclippedDesiredSize.Height; 4656&& !DoubleUtil.IsZero(potentialArrangeSize.Height)) 4660|| LayoutDoubleUtil.LessThan(potentialArrangeSize.Height, unclippedDesiredSize.Height)) 4675if (DoubleUtil.LessThan(arrangeSize.Height, unclippedDesiredSize.Height)) 4678arrangeSize.Height = unclippedDesiredSize.Height; 4702double effectiveMaxHeight = Math.Max(unclippedDesiredSize.Height, mm.maxHeight); 4703if (DoubleUtil.LessThan(effectiveMaxHeight, arrangeSize.Height)) 4734Math.Min(innerInkSize.Height, mm.maxHeight)); 4744|| DoubleUtil.LessThan(clippedInkSize.Height, innerInkSize.Height); 4749Rect inkRectTransformed = Rect.Transform(new Rect(0, 0, clippedInkSize.Width, clippedInkSize.Height), ltd.Transform.Value); 4777|| DoubleUtil.LessThan(clientSize.Height, clippedInkSize.Height); 4816NotifyPropertyChange(new DependencyPropertyChangedEventArgs(ActualHeightProperty, _actualHeightMetadata, sizeInfo.PreviousSize.Height, sizeInfo.NewSize.Height)); 4838&& inkSize.Height > clientSize.Height) 4861offset.Y = (clientSize.Height - inkSize.Height) * 0.5; 4865offset.Y = clientSize.Height - inkSize.Height; 4907double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight); 4913|| DoubleUtil.LessThan(maxHeightClip, inkSize.Height)); 4917inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 4924inkRectTransformed = Rect.Transform(new Rect(0, 0, inkSize.Width, inkSize.Height), ltd.Transform.Value); 4935Math.Max(0, layoutSlotSize.Height - marginHeight)); 4940|| DoubleUtil.LessThan(clippingSize.Height, inkSize.Height)); 4967clippingSize.Height); 5013clippingSize.Height); 5244double maxHeightClip = (Double.IsPositiveInfinity(mm.maxHeight) ? inkSize.Height : mm.maxHeight); 5248inkSize.Height = Math.Min(inkSize.Height, mm.maxHeight); 5298return new Point(renderSize.Width * relativeOrigin.X, renderSize.Height * relativeOrigin.Y);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (2)
2479double height = uiElement.RenderSize.Height + deflateThickness.Top + deflateThickness.Bottom; 2487y = uiElement.RenderSize.Height * 0.5;
src\Framework\System\Windows\Interop\ActiveXHost.cs (2)
237if (Double.IsPositiveInfinity(swConstraint.Height)) 240newHeight = swConstraint.Height;
src\Framework\System\Windows\Interop\HwndHost.cs (2)
858desiredSize.Height = Math.Min(_desiredSize.Height, constraint.Height);
src\Framework\System\Windows\Shapes\Ellipse.cs (2)
93double height = constraint.Height; 129Math.Max(0, finalSize.Height - penThickness)); // Height
src\Framework\System\Windows\Shapes\Rectangle.cs (2)
145double height = constraint.Height; 182Math.Max(0, finalSize.Height - penThickness)); // Height
src\Framework\System\Windows\Shapes\Shape.cs (2)
453DoubleUtil.IsNaN(size.Height) || 593yScale = Math.Max(availableSize.Height - 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); 1254Rect bottomLeftRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomLeftRadius, windowSize.Height / 2 + bottomLeftRadius); 1255bottomLeftRegionRect.Offset(0, windowSize.Height / 2 - bottomLeftRadius); 1256Assert.AreEqual(bottomLeftRegionRect.Bottom, windowSize.Height); 1262Rect bottomRightRegionRect = new Rect(0, 0, windowSize.Width / 2 + bottomRightRadius, windowSize.Height / 2 + bottomRightRadius); 1263bottomRightRegionRect.Offset(windowSize.Width / 2 - bottomRightRadius, windowSize.Height / 2 - bottomRightRadius); 1265Assert.AreEqual(bottomRightRegionRect.Bottom, windowSize.Height);
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 (21)
1873Size frameworkAvailableSize = new Size(availableSize.Width, availableSize.Height); 1878frameworkAvailableSize.Height = Math.Max(mm.minHeight, Math.Min(frameworkAvailableSize.Height, mm.maxHeight)); 1886Math.Max(desiredSize.Height, mm.minHeight)); 1908arrangeBounds.Height = Math.Max(mm.minHeight, Math.Min(arrangeBounds.Height, mm.maxHeight)); 1943childArrangeBounds.Height = Math.Max(0.0, arrangeBounds.Height - frameSize.Height); 2800if (!DoubleUtil.IsNaN(requestedHeight) && (!DoubleUtil.AreClose(sizeDeviceUnits.Height, requestedSizeDeviceUnits.Y))) 2860if (!Double.IsPositiveInfinity(minSizeDeviceUnits.Y) && (sizeDeviceUnits.Height > maxSizeDeviceUnits.Y)) 2872if (sizeDeviceUnits.Height < minSizeDeviceUnits.Y) 2916DoubleUtil.DoubleToInt(sizeDeviceUnits.Height), 3495childConstraint.Height = ((constraint.Height == Double.PositiveInfinity) ? Double.PositiveInfinity : Math.Max(0.0, (constraint.Height - frameSize.Height))); 3499return new Size(childDesiredSize.Width + frameSize.Width, childDesiredSize.Height + frameSize.Height); 3933ownerSizeDeviceUnits = new Point(size.Width, size.Height); 3953topDeviceUnits = ownerRectDeviceUnits.Y + ((ownerRectDeviceUnits.Height - currentSizeDeviceUnits.Height) / 2); 3960topDeviceUnits = Math.Min(topDeviceUnits, workAreaRectDeviceUnits.bottom - currentSizeDeviceUnits.Height); 4038topDeviceUnits = (workAreaRectDeviceUnits.top + ((workAreaHeightDeviceUnits - currentSizeDeviceUnits.Height) / 2)); 5187(mousePositionWRTResizeGripControl.Y > _resizeGripControl.RenderSize.Height)) 6778Debug.Assert(0 != (int)_overlaySize.Height);
PresentationFramework.Aero (26)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
414bool isHeightTooSmall = (availableSize.Height < 4.0); 422childConstraint.Height = availableSize.Height - 4.0; 440desired = new Size(Math.Min(4.0, availableSize.Width), Math.Min(4.0, availableSize.Height)); 459childArrangeRect.Height = Math.Max(0d, finalSize.Height - 4.0); 461childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (12)
58m2.Translate(0.0, size.Height); 65size.Width = size.Height; 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)); 223dc.DrawRectangle(sideBrush, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 0.95))); 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)) 263dc.DrawRectangle(pressedBevel, null, new Rect(1.0, 0.0, 1.0, size.Height - 0.95)); 264dc.DrawRectangle(pressedBevel, null, new Rect(size.Width - 2.0, 0.0, 1.0, size.Height - 0.95)); 267if (size.Height >= 2.0) 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))
Microsoft\Windows\Themes\ListBoxChrome.cs (5)
235bool isHeightTooSmall = (availableSize.Height < borderY); 243childConstraint.Height = availableSize.Height - borderY; 261desired = new Size(Math.Min(borderX, availableSize.Width), Math.Min(borderY, availableSize.Height)); 293if ((finalSize.Width > borderX) && (finalSize.Height > borderY)) 298childArrangeRect.Height = finalSize.Height - borderY;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (3)
190double childHeight = constraint.Height; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Classic (28)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (12)
670bool isHeightTooSmall = (availableSize.Height < borderSize.Height); 678childConstraint.Height = availableSize.Height - borderSize.Height; 692desired.Height += borderSize.Height; 697desired = new Size(Math.Min(borderSize.Width, availableSize.Width), Math.Min(borderSize.Height, availableSize.Height)); 722if ((finalSize.Width >= borderWidth) && (finalSize.Height >= borderHeight)) 727childArrangeRect.Height = finalSize.Height - borderHeight; 855double height = this.RenderSize.Height; 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)) 110dc.DrawRectangle(dark, null, new Rect(0.0, 0.0, 1.0, size.Height)); 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)); 116dc.DrawRectangle(light, null, new Rect(0.0, 0.0, 1.0, Max0(size.Height - 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)
190double childHeight = constraint.Height; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Luna (21)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
331bool isHeightTooSmall = (availableSize.Height < sideThickness2); 339childConstraint.Height = availableSize.Height - sideThickness2; 357desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height)); 376childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2); 378childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
97m2.Translate(0.0, size.Height); 104size.Width = size.Height; 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)) 172TranslateTransform positionTransform = new TranslateTransform(0.0, size.Height - 3.0); 243if (isPressed && (size.Width >= 2.0) && (size.Height >= 2.0)) 254dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 255dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.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)
190double childHeight = constraint.Height; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
PresentationFramework.Royale (21)
Microsoft\Windows\Themes\ButtonChrome.cs (5)
289bool isHeightTooSmall = (availableSize.Height < sideThickness2); 297childConstraint.Height = availableSize.Height - sideThickness2; 315desired = new Size(Math.Min(sideThickness2, availableSize.Width), Math.Min(sideThickness2, availableSize.Height)); 334childArrangeRect.Height = Math.Max(0d, finalSize.Height - sideThickness2); 336childArrangeRect.Y = (finalSize.Height - childArrangeRect.Height) * 0.5;
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (11)
53m2.Translate(0.0, size.Height); 60size.Width = size.Height; 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)) 101TranslateTransform positionTransform = new TranslateTransform(0.0, size.Height - 3.0); 165if (isPressed && (size.Width >= 2.0) && (size.Height >= 2.0)) 176dc.DrawRectangle(border, null, new Rect(0.0, 0.0, 1.0, size.Height)); 177dc.DrawRectangle(border, null, new Rect(0.0, Max0(size.Height - 1.0), size.Width, 1.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)
190double childHeight = constraint.Height; 207return new Size(desiredSize.Width + padding.Left + padding.Right, desiredSize.Height + padding.Top + padding.Bottom); 236double childHeight = Math.Max(0.0, arrangeSize.Height - padding.Top - padding.Bottom);
parent\Shared\Microsoft\Windows\Themes\SystemDropShadowChrome.cs (1)
110new Size(RenderSize.Width, RenderSize.Height));
System.Activities.Core.Presentation (14)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
293location.Y -= element.DesiredSize.Height / 2; 301oldCenter = new Point(location.X + element.DesiredSize.Width / 2, location.Y + element.DesiredSize.Height / 2);
System\Activities\Core\Presentation\FlowchartDesigner.ModelChangeReactions.cs (1)
57double startHeight = this.StartSymbol.DesiredSize.Height;
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
1253virtualizingContainer.MinHeight = size.Height;
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (1)
61Rect tooltipRect = new Rect(adornedElementRect.TopLeft + new Vector(adornedElementRect.Width, -tooltip.DesiredSize.Height), tooltip.DesiredSize);
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 (8)
482double startHeight = this.initialNode.DesiredSize.Height; 595virtualizingContainer.MinHeight = size.Height; 1672if (this.requiredSize.Height > this.StateContainerHeight) 1677this.requiredSize.Height); 1966if (anchorPoint.X > view.DesiredSize.Width || anchorPoint.Y > view.DesiredSize.Height) 2461midPoint = new Point(location.X, location.Y + size.Height / 2); 2464midPoint = new Point(location.X + size.Width, location.Y + size.Height / 2); 2470midPoint = new Point(location.X + size.Width / 2, location.Y + size.Height);
System.Activities.Presentation (98)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (6)
92if (anchorPoint.Y + desiredSize.Height <= canvas.Y + canvas.Height) 98if (anchor == AdornerLocation.None && anchorPoint.Y - desiredSize.Height >= canvas.Y) 105if (anchor == AdornerLocation.None && anchorPoint.X - desiredSize.Width >= canvas.X && anchorPoint.Y - desiredSize.Height >= canvas.Y) 140Size adornerSize = new Size(this.content.DesiredSize.Width * zoomLevel, this.content.DesiredSize.Height * zoomLevel); 162location = new Point(adorneeSize.Width, -adornerSize.Height); 165location = new Point(adorneeSize.Width - adornerSize.Width, -adornerSize.Height);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (3)
244if (size.Height < float.Epsilon) 249return (float)(size.Width / size.Height); 254return (float)(size.Width * size.Height);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\PropertyContainerPopupHelper.cs (1)
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)
221rect.Height = DesiredIconSize.Height;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyPanel.cs (13)
191InternalChildren[i].Measure(new Size(lastChildWidth, availableSize.Height)); 195InternalChildren[i].Measure(new Size(availableWidth, availableSize.Height)); 200actualSize.Height = Math.Max(actualSize.Height, child.DesiredSize.Height); 225child.Arrange(new Rect(Math.Max(0, finalSize.Width - lastChildWidth), 0, lastChildWidth, finalSize.Height)); 229child.Arrange(new Rect(left, 0, Math.Min(desiredWidth, availableWidth), finalSize.Height)); 267renderSize.Height)); 277new double[] { 0, renderSize.Height - outlineThickness, renderSize.Height })); 284new Point(0, renderSize.Height - halfThickness), 285new Point(renderSize.Width, renderSize.Height - halfThickness)); 297new Point(renderSize.Width - halfThickness, renderSize.Height)); 303new Point(dividerLeft + halfThickness, renderSize.Height));
System.Activities.Presentation\System\Activities\Presentation\DockedAnnotationDecorator.cs (1)
21size.Height = this.Child.DesiredSize.Height;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
866this.height = grid.DesiredSize.Height;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (16)
52new Rect(-HitTestHeight, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth), 53new Rect(size.Width, (size.Height / 2) - (HitTestWidth / 2), HitTestHeight, HitTestWidth), 55new Rect((size.Width / 2) - (HitTestWidth / 2), size.Height, HitTestWidth, HitTestHeight) 66StartPoint = new Point(-DropTargetOffset - TriangleHeight, size.Height / 2), Segments = 68new LineSegment() { Point = new Point(-DropTargetOffset, (size.Height / 2) - (TriangleBaseLength / 2)) }, 69new LineSegment() { Point = new Point(-DropTargetOffset, (size.Height / 2) + (TriangleBaseLength / 2)) }, 70new LineSegment() { Point = new Point(-DropTargetOffset - TriangleHeight, size.Height / 2) } 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)) } 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) } 157else if (position.Y > size.Height && this.highlightedDirection != AutoConnectDirections.Bottom)
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))); 91rects.Add(new Rect(new Point(targetLocation.X - HitRegionOffset, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 92rects.Add(new Rect(new Point(targetLocation.X + targetSize.Width, targetLocation.Y + ((targetSize.Height - DropTargetWidth) / 2)), new Size(HitRegionOffset, DropTargetWidth))); 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))); 115else if (mousePosition.Y >= targetLocation.Y && mousePosition.Y <= targetLocation.Y + targetSize.Height) 127if (dropLocation.Y >= targetLocation.Y && dropLocation.Y <= targetLocation.Y + targetSize.Height + ShapeMargin) 129dropLocation.Y = targetLocation.Y + targetSize.Height + ShapeMargin; 131else if (dropLocation.Y + droppedSize.Height + ShapeMargin >= targetLocation.Y && dropLocation.Y <= targetLocation.Y) 133dropLocation.Y = targetLocation.Y - droppedSize.Height - ShapeMargin; 142dropLocation.Y = targetLocation.Y + ((targetSize.Height - droppedSize.Height) / 2);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (2)
118double parentHeight = parent.DesiredSize.Height - parent.Margin.Top - parent.Margin.Bottom; 193return new Vector(-rectSize.Width / 2, -rectSize.Height / 2);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointConverter.cs (1)
23double height = shapeSize.Height;
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); 431r1.Y -= margin.Height; 481r3.Y += margin.Height; 588escapePoint = new Point(Z.X, p.Y + direction.Y * margin.Height); 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 (5)
345if (height < (size.Height + pt.Y)) 347height = size.Height + pt.Y; 442lastYPosition += child.DesiredSize.Height + VerticalStackingDistance; 445if (height < child.DesiredSize.Height + pt.Y) 447height = child.DesiredSize.Height + pt.Y;
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (3)
347if (sizeInfo.HeightChanged && 0.0 != sizeInfo.PreviousSize.Height) 350this.lookupWindow.Top * (sizeInfo.NewSize.Height / sizeInfo.PreviousSize.Height);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
716height = Math.Min(fe.RenderSize.Height, designerView.ScrollViewer.ViewportHeight);
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)) 309position.Y = CalculateInBoundsValue(position.Y, window.DesiredSize.Height, this.ActualHeight, this.selectedChild.Value.Y); 358if (IsGreater(pos.Y, size.Height, this.ActualHeight)) 363System.Diagnostics.Debug.WriteLine("SetSize oldSize (" + window.Width + "," + window.Height + ") newSize (" + size.Width + "," + size.Height + ")"); 365window.Height = size.Height; 383System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.InvariantCulture, "ArrangeOverride Size({0},{1})", arrangeSize.Width, arrangeSize.Height)); 402double offsetPlusY = this.rearangeStartSize.Height; 420offsetPlusY = Math.Max(offsetPlusY, pos.Y + child.DesiredSize.Height); 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\SearchToolTipAdorner.cs (3)
57double Y = adornerElementToVisibleScrollViewDistance < tooltip.DesiredSize.Height ? 58tooltip.DesiredSize.Height : 59-tooltip.DesiredSize.Height;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
76this.Height = size.Height;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (2)
352this.MinHeight = size.Value.Height; 496this.MinHeight = defaultContainerSize.Height;
WindowsBase (8)
Base\System\Windows\Generated\Size.cs (5)
65size1.Height == size2.Height; 104size1.Height.Equals(size2.Height); 161Height.GetHashCode();
Base\System\Windows\Rect.cs (1)
110_height = size.Height;
Shared\MS\Internal\DoubleUtil.cs (2)
207DoubleUtil.AreClose(size1.Height, size2.Height);