我正在处理此示例Click here如何更改Xamarin.form中自定义地图的大小?
我发现地图用App.ScreenWidth和App.ScreenHeight显示。这里是我的xaml代码如下:
<ContentPage.Content>
<local:CustomMap x:Name="customMap" MapType="Street"
WidthRequest="{x:Static local:App.ScreenWidth}"
HeightRequest="{x:Static local:App.ScreenHeight}" />
</ContentPage.Content>
如何将App.screenheight设置为其高度的1/2?
谢谢,但这是行不通的。哈哈 –