64 references to Size
Microsoft.Maui (12)
Animations\AnimationLerpingExtensions.cs (1)
30
new
Size
(start.Width.Lerp(end.Width, progress), start.Height.Lerp(end.Height, progress));
Layouts\AbsoluteLayoutManager.cs (2)
56
return new
Size
(finalWidth, finalHeight);
102
return new
Size
(availableWidth, availableHeight);
Layouts\FlexLayoutManager.cs (1)
73
return new
Size
(finalWidth, finalHeight);
Layouts\GridLayoutManager.cs (2)
29
return new
Size
(measuredWidth, measuredHeight);
49
var actual = new
Size
(_gridStructure.MeasuredGridWidth(), _gridStructure.MeasuredGridHeight());
Layouts\HorizontalStackLayoutManager.cs (2)
42
return new
Size
(finalWidth, finalHeight);
76
var actual = new
Size
(xPosition, height);
Layouts\LayoutExtensions.cs (2)
30
return new
Size
(measureWithoutMargins.Width + margin.HorizontalThickness,
167
return new
Size
(contentSize.Width + inset.HorizontalThickness, contentSize.Height + inset.VerticalThickness);
Layouts\VerticalStackLayoutManager.cs (2)
43
return new
Size
(finalWidth, finalHeight);
68
var actual = new
Size
(width, stackHeight);
Microsoft.Maui.Controls (41)
BoxView\BoxView.cs (1)
49
return new SizeRequest(new
Size
(40, 40));
ContentPage\ContentPage.cs (1)
98
return new
Size
(widthConstraint, heightConstraint);
DisplayInfoExtensions.cs (1)
15
return new
Size
(info.Width / info.Density, info.Height / info.Density);
ImageElement.cs (2)
55
return new SizeRequest(new
Size
(0, 0));
98
return new SizeRequest(new
Size
(width, height));
Items\ItemsView.cs (2)
199
var minimumSize = new
Size
(40, 40);
205
Size request = new
Size
(maxWidth, maxHeight);
Layout\FlexExtensions.cs (1)
29
return new
Size
(widthConstraint, heightConstraint);
LegacyLayouts\AbsoluteLayout.cs (3)
74
Rect rect = ComputeLayoutForRegion(child, new
Size
(width, height));
227
return new SizeRequest(new
Size
(width, height), new
Size
(minWidth, minHeight));
LegacyLayouts\FlexLayout.cs (3)
440
return new SizeRequest(new
Size
(widthConstraint, heightConstraint));
444
return new SizeRequest(new
Size
(widthConstraint, heightConstraint));
483
return new SizeRequest(new
Size
(widthConstraint, heightConstraint));
LegacyLayouts\GridCalc.cs (4)
57
return new SizeRequest(new
Size
(0, 0));
81
var request = new
Size
(columnWidthSum + (structure.Columns.Count - 1) * ColumnSpacing, rowHeightSum + (structure.Rows.Count - 1) * RowSpacing);
82
var minimum = new
Size
(nonStarColumnWidthSum + (structure.Columns.Count - 1) * ColumnSpacing, nonStarRowHeightSum + (structure.Rows.Count - 1) * RowSpacing);
295
return new
Size
(columnWidthSum + (_columns.Count - 1) * columnSpacing, rowHeightSum + (_rows.Count - 1) * rowSpacing);
LegacyLayouts\Layout.cs (6)
109
Size _lastLayoutSize = new
Size
(-1, -1);
205
return new SizeRequest(new
Size
(size.Request.Width + Padding.HorizontalThickness, size.Request.Height + Padding.VerticalThickness),
206
new
Size
(size.Minimum.Width + Padding.HorizontalThickness, size.Minimum.Height + Padding.VerticalThickness));
395
return new
Size
(sansMargins.Width + Margin.HorizontalThickness, sansMargins.Height + Margin.VerticalThickness);
470
_lastLayoutSize = new
Size
(width, height);
599
if (_lastLayoutSize != new
Size
(Width, Height))
LegacyLayouts\RelativeLayout.cs (1)
238
return new SizeRequest(new
Size
(boundsRectangle.Right, boundsRectangle.Bottom));
LegacyLayouts\StackLayout.cs (2)
125
layout.Constraint = new
Size
(widthConstraint, heightConstraint);
227
layout.MinimumSize = new
Size
(minimumWidth, minimumHeight);
ListView\ListView.cs (3)
424
var minimumSize = new
Size
(40, 40);
434
request = new
Size
(width, list.Count * RowHeight);
439
request = new
Size
(width, Math.Max(scaled.Width, scaled.Height));
PlatformConfiguration\WindowsSpecific\TabbedPage.cs (1)
20
BindableProperty.Create(nameof(HeaderIconsSizeProperty), typeof(Size), typeof(TabbedPage), new
Size
(16, 16));
ScrollView\ScrollView.cs (2)
187
ContentSize = new
Size
(frameSize.Width + margin.HorizontalThickness,
320
contentRequest.Minimum = new
Size
(Math.Min(40, contentRequest.Minimum.Width), Math.Min(40, contentRequest.Minimum.Height));
Shapes\ArcSegment.cs (1)
32
BindableProperty.Create(nameof(Size), typeof(Size), typeof(ArcSegment), new
Size
(0, 0));
Shapes\PathFigureCollectionConverter.cs (1)
293
Size = new
Size
(w, h),
TableView\TableView.cs (2)
137
var minimumSize = new
Size
(40, 40);
140
var request = new
Size
(width, Math.Max(scaled.Width, scaled.Height));
VisualElement\VisualElement.cs (4)
1162
var constraintSize = new
Size
(widthConstraint, heightConstraint);
1250
result.Minimum = new
Size
(result.Minimum.Width + margin.HorizontalThickness, result.Minimum.Height + margin.VerticalThickness);
1251
result.Request = new
Size
(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness);
1349
return new SizeRequest(new
Size
(-1, -1));
Microsoft.Maui.Controls.Foldable (1)
TwoPaneViewLayoutGuide.cs (1)
176
containerArea = new Rect(locationOnScreen.Value, new
Size
(width, height));
Microsoft.Maui.Graphics (10)
Point.cs (2)
87
return new
Size
(pt.X, pt.Y);
97
return new
Size
(ptA.X - ptB.X, ptA.Y - ptB.Y);
Rect.cs (1)
158
get => new
Size
(Width, Height);
Size.cs (5)
43
return new
Size
(s1.Width + s2.Width, s1.Height + s2.Height);
48
return new
Size
(s1.Width - s2.Width, s1.Height - s2.Height);
53
return new
Size
(s1.Width * value, s1.Height * value);
58
return new
Size
(s1.Width / value, s1.Height / value);
117
size = new
Size
(w, h);
SizeF.cs (2)
122
public static implicit operator Size(SizeF s) => new
Size
(s.Width, s.Height);
133
sizeF = new
Size
(w, h);