dotnet/maui

[Enhancement] Label Autofit Font

Open

#10 884 ouverte le 25 oct. 2022

Voir sur GitHub
 (5 commentaires) (13 réactions) (0 assignés)C# (1 951 forks)batch import
area-fontsgood first issueproposal/open

Métriques du dépôt

Stars
 (23 245 stars)
Métriques de merge PR
 (Merge moyen 47j 9h) (248 PRs mergées en 30 j)

Description

Description

Add new properties to the label control to enable auto-scaling font based on available width

A PR was done in Xamarin.Forms, but was closed as its a new feature - https://github.com/xamarin/Xamarin.Forms/pull/7981

Public API Changes

  • (enum) AutoFitTextMode Label.AutofitText{ get; set; } //Bindable Property
  • double Label.MaxAutoFitSize { get; set;} //Bindable Property
  • double Label.MinAutoFitSize {get; set;} //Bindable Property

Intended Use-Case

When you want to scale font based on the given space

Guide contributeur