有什么方法可以更改 uwp 应用程序中 TextBox 的行高?

Is there any way to change the line height of a TextBox in a uwp app?

有什么方法可以更改 uwp 中 TextBox 的行间距或行高吗? wpf:

TextBlock.SetLineHeigh(textboxName, 30)

但是 uwp 是不允许的?

Is there any way to change the line spacing or line height of a TextBox in a uwp?

UWP TextBox 不支持设置行高。请用RichEditBox代替

源自 rob 的 reply,

RichEditBoxcan represent rich text. The RichEditBox's underlying engine is more similar to the one in WordPad.

You can change the formatting in the RichEditBox by manipulating properties on the Document. You can set the line spacing by getting an ITextRange's ParagraphFormat and callingITextParagraphFormat.SetLineSpacing method.