Xamarin.forms: [UWP] TabbedPage title padding broken in 4.0

Created on 2 Jul 2019  路  2Comments  路  Source: xamarin/Xamarin.Forms

Description

Padding around the TextBlock displaying the child pages' Titles in a UWP TabbedPage was lost in 4.0.0.

Steps to Reproduce

  1. Create new project in VS2019 from Xamarin.Forms Tabbed template (make sure to check UWP box)
  2. Run on UWP and see that there is some padding around the page title text
  3. Upgrade to Xamarin.Forms 4.0.0-pre10 or higher
  4. Run and see that padding is gone.

Expected Behavior

Consistent padding between versions

Actual Behavior

Padding is gone

Basic Information

  • Version with issue: 4.0.0-pre10 -> 4.1.0
  • Last known good version: 3.6.0-sr4

    • Stable: 3.6.0-sr4

    • Pre-release: 4.0.0-pre9

  • IDE: Visual Studio Entreprise 2019, version 16.0.3
  • Platform Target Frameworks:

    • UWP: Target 17763, Minimum 16299

Screenshots

Before (3.6.0)

Technician3 6

After (4.0.0)

Technician4 1

Reproduction Link

UWPTabTitlePadding.zip

4.0.0 2 regression in-progress UWP bug

Most helpful comment

I get that sort of issue when using tab icons, the labels get squashed to the bottom.
As it looks terribe, I'm disabling tab icons for UWP by adding this platform specific bit to each tabbedpage.

xmlns:windows="clr-namespace:Xamarin.Forms.PlatformConfiguration.WindowsSpecific;assembly=Xamarin.Forms.Core"
windows:TabbedPage.HeaderIconsEnabled="false"

All 2 comments

I get that sort of issue when using tab icons, the labels get squashed to the bottom.
As it looks terribe, I'm disabling tab icons for UWP by adding this platform specific bit to each tabbedpage.

xmlns:windows="clr-namespace:Xamarin.Forms.PlatformConfiguration.WindowsSpecific;assembly=Xamarin.Forms.Core"
windows:TabbedPage.HeaderIconsEnabled="false"

@MitchBomcanhao Thanks, using that platform specific makes it look like it did before.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xabre picture xabre  路  3Comments

suihanhbr picture suihanhbr  路  3Comments

simontocknell picture simontocknell  路  3Comments

joseluisct picture joseluisct  路  3Comments

Hudhud picture Hudhud  路  3Comments