dotnet/maui

[Enhancement] Label Autofit Font

Open

#10.884 geöffnet am 25. Okt. 2022

Auf GitHub ansehen
 (5 Kommentare) (13 Reaktionen) (0 zugewiesene Personen)C# (1.951 Forks)batch import
area-fontsgood first issueproposal/open

Repository-Metriken

Stars
 (23.245 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 47T 9h) (248 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide