Sharpnado.Tabs
Sharpnado.Tabs copied to clipboard
[MAUI] Double border on hidden underlined tabs for Segemented TabHostView
Platform:
- OS: [Android]
- Device: [AndroidEmulator]
- Sdk version: [Android SDK 29]
- MAUI: [.net70-android]
Describe the bug
If an underlined tab is hidden via its IsVisible="False", its side tabs border is merged and shown as double bordered for segmented tabhostview
To Reproduce
<ContentPage.Resources>
<Style TargetType="tabs:UnderlinedTabItem">
<Setter Property="UnselectedLabelColor"
Value="#333333" />
<Setter Property="HorizontalOptions"
Value="FillAndExpand" />
<Setter Property="WidthRequest"
Value="100" />
<Setter Property="Padding"
Value="4" />
</Style>
</ContentPage.Resources>
<tabs:TabHostView x:Name="tabHost"
ShowScrollbar="False"
TabType="Scrollable"
IsSegmented="True"
CornerRadius="0"
HorizontalOptions="FillAndExpand"
HeightRequest="60"
SegmentedHasSeparator="True"
SegmentedOutlineColor="Red">
<tabs:UnderlinedTabItem Label="All" />
<tabs:UnderlinedTabItem Label="Canada" />
<tabs:UnderlinedTabItem Label="America" IsVisible="False"/>
<tabs:UnderlinedTabItem Label="Brazil" />
<tabs:UnderlinedTabItem Label="France" />
</tabs:TabHostView>
Screenshots (if applicable)
@roubachof Any update on this?
any pr is welcome: it's a very straightforward fix.