dotnet/maui

[Enhancement] Label Autofit Font

Open

#10,884 建立於 2022年10月25日

在 GitHub 查看
 (5 留言) (13 反應) (0 負責人)C# (1,951 fork)batch import
area-fontsgood first issueproposal/open

倉庫指標

Star
 (23,245 star)
PR 合併指標
 (平均合併 47天 9小時) (30 天內合併 248 個 PR)

描述

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

貢獻者指南