ViewHandler.GetDesiredSize(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the actual size of a view based on the desired size and constraints.
public:
abstract Microsoft::Maui::Graphics::Size GetDesiredSize(double widthConstraint, double heightConstraint);
public abstract Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);
abstract member GetDesiredSize : double * double -> Microsoft.Maui.Graphics.Size
Public MustOverride Function GetDesiredSize (widthConstraint As Double, heightConstraint As Double) As Size
Parameters
- widthConstraint
- Double
The constraint on the width of the view.
- heightConstraint
- Double
The constraint on the height of the view.
Returns
The computed size for the view associated to this handler.
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.