dotnet/maui

[Enhancement] Label Autofit Font

Open

#10.884 aperta il 25 ott 2022

Vedi su GitHub
 (5 commenti) (13 reazioni) (0 assegnatari)C# (1951 fork)batch import
area-fontsgood first issueproposal/open

Metriche repository

Star
 (23.245 star)
Metriche merge PR
 (Merge medio 47g 9h) (248 PR mergiate in 30 g)

Descrizione

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

Guida contributor