低版本TextBlock的Horizo​​ntalTextAlignment如何管理?

How to manage HorizontalTextAlignment of TextBlock in lower versions?

当我尝试在 Textblock 文本的内容对齐方式中使用 Horizo​​ntalTextAlignment 将其文本居中对齐时,(只有当文本为多行时我们才能看到效果),它警告我 "Not available in this min version",它需要 'Windows 10 Fall Creators Update (introduced v10.0.16299.0)'

我想知道可以采取什么解决方法来处理这个问题。我尝试在堆栈面板中使用多个文本块,但似乎不是一种有效的方法。

How to manage HorizontalTextAlignment of TextBlock in lower versions?

请检查TextBlock.HorizontalTextAlignment Property备注部分。

This property provides the same functionality as the TextAlignment property. If both properties are set to conflicting values, the last one set is used.

Apps that target the Fall Creators Update (SDK 16299) or later should use this property instead of TextAlignment. If your app also supports previous versions

您使用TextAlignment属性低版本