48 references to MeasureSpecFactory
Microsoft.Maui.Controls.Compatibility (48)
Android\AppCompat\CarouselPageRenderer.cs (2)
174 pager.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.AtMost), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.AtMost));
Android\AppCompat\NavigationPageRenderer.cs (5)
404 bar.Measure(MeasureSpecFactory.MakeMeasureSpec(r - l, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(barHeight, MeasureSpecMode.Exactly)); 1184 var width = (int)ctx.FromPixels(MeasureSpecFactory.GetSize(widthMeasureSpec)); 1189 int widthSpec = MeasureSpecFactory.MakeMeasureSpec((int)ctx.ToPixels(width), MeasureSpecMode.Exactly); 1190 int heightSpec = MeasureSpecFactory.MakeMeasureSpec((int)ctx.ToPixels(request.Request.Height), MeasureSpecMode.Exactly);
Android\AppCompat\Platform.cs (6)
238 ? MeasureSpecFactory.MakeMeasureSpec((int)widthConstraint, MeasureSpecMode.AtMost) 239 : MeasureSpecFactory.MakeMeasureSpec(0, MeasureSpecMode.Unspecified); 242 ? MeasureSpecFactory.MakeMeasureSpec((int)heightConstraint, MeasureSpecMode.AtMost) 243 : MeasureSpecFactory.MakeMeasureSpec(0, MeasureSpecMode.Unspecified); 435 child.Measure(MeasureSpecFactory.MakeMeasureSpec(r - l, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(t - b, MeasureSpecMode.Exactly));
Android\AppCompat\TabbedPageRenderer.cs (8)
393 pager.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.AtMost), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.AtMost)); 413 tabs.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.AtMost)); 421 pager.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.AtMost), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.AtMost)); 431 tabs.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(tabsHeight, MeasureSpecMode.Exactly));
Android\FastRenderers\LabelRenderer.cs (4)
93 int lastConstraintWidthSize = MeasureSpecFactory.GetSize(_lastConstraintWidth); 94 int lastConstraintHeightSize = MeasureSpecFactory.GetSize(_lastConstraintHeight); 96 int currentConstraintWidthSize = MeasureSpecFactory.GetSize(widthConstraint); 97 int currentConstraintHeightSize = MeasureSpecFactory.GetSize(heightConstraint);
Android\PlatformRenderer.cs (4)
83 var width = MeasureSpecFactory.GetSize(widthMeasureSpec); 84 var height = MeasureSpecFactory.GetSize(heightMeasureSpec); 89 child.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.Exactly), 90 MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.Exactly));
Android\Renderers\LabelRenderer.cs (4)
54 int lastConstraintWidthSize = MeasureSpecFactory.GetSize(_lastConstraintWidth); 55 int lastConstraintHeightSize = MeasureSpecFactory.GetSize(_lastConstraintHeight); 57 int currentConstraintWidthSize = MeasureSpecFactory.GetSize(widthConstraint); 58 int currentConstraintHeightSize = MeasureSpecFactory.GetSize(heightConstraint);
Android\Renderers\ListViewRenderer.cs (5)
331 view.Measure(MeasureSpecFactory.MakeMeasureSpec(Control.Width, MeasureSpecMode.AtMost), MeasureSpecFactory.MakeMeasureSpec(0, MeasureSpecMode.Unspecified)); 547 var width = (int)ctx.FromPixels(MeasureSpecFactory.GetSize(widthMeasureSpec)); 552 int widthSpec = MeasureSpecFactory.MakeMeasureSpec((int)ctx.ToPixels(width), MeasureSpecMode.Exactly); 553 int heightSpec = MeasureSpecFactory.MakeMeasureSpec((int)ctx.ToPixels(request.Request.Height), MeasureSpecMode.Exactly);
Android\Renderers\ScrollViewRenderer.cs (2)
267 _container?.Measure(MeasureSpecFactory.MakeMeasureSpec(right - left, MeasureSpecMode.Unspecified), 268 MeasureSpecFactory.MakeMeasureSpec(bottom - top, MeasureSpecMode.Unspecified));
Android\ViewRenderer.cs (4)
76 var widthMeasureSpec = MeasureSpecFactory.MakeMeasureSpec(realWidth, MeasureSpecMode.Exactly); 77 var heightMeasureSpec = MeasureSpecFactory.MakeMeasureSpec(realHeight, MeasureSpecMode.Exactly); 195 view.Measure(MeasureSpecFactory.MakeMeasureSpec(r - l, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(b - t, MeasureSpecMode.Exactly));
Android\VisualElementTracker.cs (4)
98 formsViewGroup.MeasureAndLayout(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.Exactly), x, y, x + width, y + height); 108 aview.Measure(MeasureSpecFactory.MakeMeasureSpec(width, MeasureSpecMode.Exactly), MeasureSpecFactory.MakeMeasureSpec(height, MeasureSpecMode.Exactly));