WPF Flowdocument - 无法左对齐 ListItem 标记

发布于 2024-09-27 18:20:27 字数 258 浏览 11 评论 0原文

我有一个 WPF FlowDocument,其中包含 MarkerType 'Upper Latin' 列表。它看起来像这样:

alt text

请注意,列表项对齐在标记后面的句点上,但由于文本是宽度可变,D、E 和 F 看起来很傻。我宁愿让列表标记左对齐而不是右对齐,但我不知道该怎么做。 List 或 ListItem 上的 TextAlignment 没有区别。

I've got a WPF FlowDocument with a list of MarkerType 'Upper Latin'. It's looking like this:

alt text

Notice that the list item alignment is on the periods after the marker, but since the text is variable width, the D, E, and F look silly. I would rather have the list markers be left aligned than right aligned, but I can't figure out how to do it. TextAlignment on the List or ListItem makes no difference.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半暖夏伤 2024-10-04 18:20:27

我最终只使用了表格布局......有点笨重,但它有效

I ended up just using a table layout....Kinda clunky but it works

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文