Skip to content

MAUI FlexLayout in a Grid Row of Height Auto will throw exception #13004

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
MainPage.xaml

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiApp1.MainPage">
	<Grid RowDefinitions="Auto">
		<FlexLayout Wrap="Wrap">
			<Label Text="扩展D"/>
		</FlexLayout>
	</Grid>
</ContentPage>

MainPage.xaml.cs

namespace MauiApp1;

public partial class MainPage : ContentPage
{
	public MainPage()
	{
		InitializeComponent();
	}
}

Create a MAUI App project, set the MainPage XAML and C# code as above, and Debug on Windows Machine. It will cause a debug break:
image.png


Original Comments

Feedback Bot on 1/17/2023, 06:29 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterlayout-flexFlexLayout issuesplatform/windowst/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions