我如何调整我的标签文字右侧?我的、文字、标签

2023-09-11 23:34:34 作者:一人一心一世界,

因此​​,这里是我的文件标签。如果标签太长,它会关闭屏幕从而使我不得不滚动。

So here is my file label. If the label is too long, it will go off the screen thus making me have to scroll.

我已经试过以下属性(不同时间):

I've tried the following properties (separate times):

从右至左的是 的ContentAlignment 作为BottomRight或TopRight RightToLeft as Yes ContentAlignment as BottomRight or TopRight

然而,他们没有工作。什么是正确的属性?

However, none of them are working. What is the correct property?

推荐答案

尝试自动调整设置为(即使一个固定大小的盒子)。然后,你可以使用设置textAlign 属性来对齐文本 - 例如:使用 MiddleRight 。这应该做的伎俩。

Try setting Autosize to false (that makes a fixed size box). Then you can use the Textalign property to align the text - e.g. use MiddleRight. That should do the trick.

 
精彩推荐
图片推荐