Sharpnado.Tabs
Sharpnado.Tabs copied to clipboard
[MAUI] Map not working properly
Platform (please complete the following information):
- OS: [iOS/Android]
- Device: [iPhoneSimulator/AndroidEmulator]
- Sharpnado.Tabs.Maui: [3.0.1]
When using Microsoft.Maui.Controls.Maps The map is not displayed on ios. On android it is displayed but not in full screen height
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RxLoyaltyMAUI.Views.ShopPage"
xmlns:local="clr-namespace:RxLoyaltyMAUI.Views"
xmlns:tabs="http://sharpnado.com"
xmlns:controls="clr-namespace:RxLoyaltyMAUI.Views.Controls"
Title="ShopPage">
<ContentPage.Resources>
<ResourceDictionary>
<Style x:Key="BottomTab" TargetType="tabs:BottomTabItem">
<Setter Property="SelectedTabColor" Value="Gray" />
<Setter Property="UnselectedLabelColor" Value="#00928A" />
<Setter Property="LabelSize" Value="36" />
<Setter Property="FontFamily" Value="OpenSansExtraBold" />
</Style>
</ResourceDictionary>
</ContentPage.Resources>
<VerticalStackLayout>
<tabs:TabHostView HeightRequest="40"
SelectedIndex="{Binding Source={x:Reference Switcher},
Path=SelectedIndex, Mode=TwoWay}"
VerticalOptions="Center"
BackgroundColor="#F0F0F3"
x:Name="TabHost">
<tabs:TabHostView.Tabs>
<tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="На карте"
IsSelected="True"
>
</tabs:UnderlinedTabItem>
<tabs:UnderlinedTabItem Style="{StaticResource TabStyle}" Label="Список">
</tabs:UnderlinedTabItem>
</tabs:TabHostView.Tabs>
</tabs:TabHostView>
<tabs:ViewSwitcher x:Name="Switcher"
SelectedIndex="{Binding SelectedViewModelIndex,
Mode=TwoWay}">
<controls:ShopMap/>
<controls:ShopList/>
</tabs:ViewSwitcher>
</VerticalStackLayout>
</ContentPage>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="RxLoyaltyMAUI.Views.Controls.ShopMap"
xmlns:maps="clr-namespace:Microsoft.Maui.Controls.Maps;assembly=Microsoft.Maui.Controls.Maps">
<maps:Map/>
</ContentView>
Well it's a maui bug I'm afraid