88 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 (52)
BoxView\BoxView.cs (1)
49
return new SizeRequest(new
Size
(40, 40));
Button\Button.iOS.cs (3)
158
var returnSize = new
Size
(Math.Min(buttonContentWidth, widthConstraint),
162
return new
Size
((int)Math.Ceiling(returnSize.Width), (int)Math.Ceiling(returnSize.Height));
179
return new
Size
(bounds.Width, bounds.Height);
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (1)
83
new
Size
(0, 0));
Compatibility\Handlers\Shell\iOS\ShellRenderer.cs (2)
145
SetElementSize(new
Size
(View.Bounds.Width, View.Bounds.Height));
393
Size IViewHandler.GetDesiredSize(double widthConstraint, double heightConstraint) => new
Size
(100, 100);
Compatibility\Handlers\TableView\iOS\TableViewRenderer.cs (1)
25
return new
Size
(44, 44);
Compatibility\Handlers\VisualElementRenderer.cs (2)
134
return new
Size
(
152
return new
Size
(
Compatibility\iOS\Extensions\UIViewExtensions.cs (2)
47
var request = new
Size
(s.Width == float.PositiveInfinity ? double.PositiveInfinity : s.Width,
49
var minimum = new
Size
(minimumWidth < 0 ? request.Width : minimumWidth,
ContentPage\ContentPage.cs (1)
95
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)
196
var minimumSize = new
Size
(40, 40);
202
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)
184
ContentSize = new
Size
(frameSize.Width + margin.HorizontalThickness,
317
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)
1125
var constraintSize = new
Size
(widthConstraint, heightConstraint);
1213
result.Minimum = new
Size
(result.Minimum.Width + margin.HorizontalThickness, result.Minimum.Height + margin.VerticalThickness);
1214
result.Request = new
Size
(result.Request.Width + margin.HorizontalThickness, result.Request.Height + margin.VerticalThickness);
1312
return new SizeRequest(new
Size
(-1, -1));
Microsoft.Maui.Controls.Compatibility (13)
iOS\Platform.cs (2)
356
rootRenderer.SetElementSize(new
Size
(_renderer.View.Bounds.Width, _renderer.View.Bounds.Height));
408
viewRenderer.SetElementSize(new
Size
(_renderer.View.Bounds.Width, _renderer.View.Bounds.Height));
iOS\Renderers\CheckBoxRendererBase.cs (2)
81
sizeConstraint = new SizeRequest(new
Size
(width, height), new
Size
(MinimumSize, MinimumSize));
iOS\Renderers\EntryRenderer.cs (1)
72
return new SizeRequest(new
Size
(baseResult.Request.Width, height));
iOS\Renderers\LabelRenderer.cs (3)
63
_perfectSize.Minimum = new
Size
(Math.Min(10, _perfectSize.Request.Width), _perfectSize.Request.Height);
75
result.Minimum = new
Size
(tinyWidth, result.Request.Height);
90
result.Request = new
Size
(expandedWidth, result.Request.Height);
iOS\Renderers\SwipeViewRenderer.cs (4)
1312
return new
Size
(items.Mode == SwipeMode.Execute ? (threshold > 0 ? threshold : contentWidth) / items.Count : (threshold < SwipeItemWidth ? SwipeItemWidth : threshold), contentHeight);
1326
return new
Size
(swipeItemWidth, contentHeight);
1334
return new
Size
(contentWidth / items.Count, (threshold > 0 && threshold < swipeItemHeight) ? threshold : swipeItemHeight);
1348
return new
Size
(contentWidth / items.Count, swipeItemHeight);
iOS\Shapes\ShapeRenderer.cs (1)
304
return new SizeRequest(new
Size
(
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);