最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xamarin - VerticalStackLayout shows white screen with MAUI map, works fine with StackLayout - Stack Overflow

programmeradmin7浏览0评论

If you create a blank template with the Maps controls, following instructions shared here, in MAUI on iOS like this:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=";
             xmlns:x=";
             x:Class="SignalCortex.Views.MapPage"
             xmlns:maps=";
             Title="MapPage">
    <VerticalStackLayout>
        <maps:Map x:Name="map" />
    </VerticalStackLayout>
</ContentPage>

You will see a blank white screen.

But if you change the VerticalStackLayout to just be StackLayout the maps appears fine. What am I missing here, I don't see anything in the docs explaining what I am doing wrong?

Images show the screenshots from when you run the code I shared:

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论