Skip to content

[Windows] MAUI Label LineHeight is not same in .NET 9 and .NET 10 #32434

@KamalaKannan-SF4101

Description

@KamalaKannan-SF4101

Description

When setting a LineHeight to a Label , text alignment not same in .NET 9 and .NET 10
.NET 9 :

Image

.NET 10:

Image

Steps to Reproduce

  1. Create a MAUI app in both version .NET 9 and .NET 10.
  2. Here is the Label configuration done in sample , attach this code snippent in both version and run

<Label Text="Stop responding" LineHeight="1.8" HorizontalOptions="Center" HorizontalTextAlignment="Center" VerticalOptions="Center" VerticalTextAlignment="Center" Background="Orange"> </Label>

  1. Observe the text alignment: the text does not appear the same on both versions.

Link to public reproduction project repository

No response

Version with bug

10.0.0-rc.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-labelLabel, Spani/regressionThis issue described a confirmed regression on a currently supported versionplatform/windowsregressed-in-10-rc2s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions