Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

.NET MAUI TableView collapses when Entry control receives focus

I have a TableView in which I render form controls for data editing.

However, as soon as the Entry control receives focus, the ViewCell seemingly collapses, leaving only the section title and separator borders visible:

    <TableView Intent="Data">
        <TableRoot>
            <TableSection Title="Details">
                <ViewCell>
                    <Grid ColumnDefinitions="0.5*,0.5*">
                        <Label Text="Manufacturer" />
                        <Entry Text="{Binding Manufacturer}" Grid.Column="1" />
                    </Grid>
                </ViewCell>
            </TableSection>
        </TableRoot>
    </TableView>

Initial state:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Before

After tapping the Entry element:

After

I’ve tried setting a specific height for the Grid and the Entry control, but I get the same result regardless.

Am I missing something obvious here? 🤔

>Solution :

It’s a bug in .NET MAUI: https://github.com/dotnet/maui/issues/10322

I ran into this a while ago and reported it. For now, I have created my own table using a Grid.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading