WebView in Maui basically kills the display

Lloyd Sheen 1,476 Reputation points
2022-10-23T18:41:03.337+00:00

I have the following XAML:

                                    <Grid x:Name="VH" RowDefinitions="50,150,*">  
                                        <Label Grid.Row="0" Text='Game HighLights MP' FontSize="24" HorizontalTextAlignment="Center"></Label>  


                                        <ListView Grid.Row="1" ItemsSource="{Binding videos}" ItemSelected="newItem">  
                                            <ListView.ItemTemplate>  
                                                <DataTemplate>  
                                                    <ViewCell Height="16">  
                                                        <Label Text="{Binding blurb}" FontSize="12"></Label>  
                                                    </ViewCell>  
                                                </DataTemplate>  
                                            </ListView.ItemTemplate>  
                                        </ListView>  

                                        <WebView Grid.Row="2" x:Name="theWebView" IsVisible="false" Margin="0,20,0,0" ></WebView>  

                                    </Grid>  

Now the important things is the IsVisible on the WebView. I have to set it to false or the label and ListView do not show. I have now spent another 2 hours trying to find out what is going on since this is just so screwed up it defies description.

No when I select a item from the listview (has the URL's for the videos) I can then set the IsVisible to true. Now when this happens the display goes nuts but eventually shows the list and the video.

Is this Maui??? I would tell you what happens on my phone but VS and Maui are now on a "Ready" timeout. Been 5 minutes so time to restart VS and when that doesn't work reboot. Feel like I am working for QA for MS for VS.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,130 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,517 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.