我正在處理此示例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?
謝謝,但這是行不通的。哈哈 –