roubachof/Sharpnado.Presentation.Forms

The property TabHostContent is set more than once

Closed this issue · 4 comments

Platform (please complete the following information):

  • OS: [iOS/Android/Both]

Describe the bug
I got a problem that happend suddenly, and i dont know why.

Here is the error message i got

Error XLS0501 The property 'TabHostContent' is set more than once. Comic.Viewer Manga.xaml 34

I cant even build.

Here is my Xaml

   <tabs:TabHostView x:Name="tabHost" Grid.Row="0"
                              BackgroundColor="White"
                              SelectedIndex="{ Binding Source={x:Reference Switcher }, Path=SelectedIndex, Mode=TwoWay}"
                              ShadowType="Bottom">

                <tabs:BottomTabItem Style="{StaticResource TabStyle}" IconImageSource="home.png" IsSelected="True" />
                <tabs:BottomTabItem Style="{StaticResource TabStyle}" IconImageSource="favorit.png" />
                <tabs:BottomTabItem Style="{StaticResource TabStyle}" IconImageSource="search.png" />
            </tabs:TabHostView>


            <tabs:ViewSwitcher Grid.Row="1" x:Name="Switcher" Animate="True" SelectedIndex="{ Binding SelectedViewModelIndex, Mode=TwoWay}">
                <view:Items Header="Latest Updates" />
                <view:Favorit />
                <view:MangaSeach />
            </tabs:ViewSwitcher>

Exceptions (if applicable)
Error XLS0501 The property 'TabHostContent' is set more than once. Comic.Viewer Manga.xaml 34

Yes i fixed it when i added it under tabs :) thx

How I catch tabs:BottomTabItem click event?

With the selected index property