Sharpnado.Tabs icon indicating copy to clipboard operation
Sharpnado.Tabs copied to clipboard

[MAUI] Map not working properly

Open K0Ma19 opened this issue 1 year ago • 1 comments

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>

K0Ma19 avatar May 02 '23 10:05 K0Ma19

Well it's a maui bug I'm afraid

roubachof avatar Jul 29 '23 13:07 roubachof