Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个TextBlock,TextTrimming = TextTrimming.CharacterEllipsis我希望这些点出现在开头。有这个属性吗?
TextBlock
TextTrimming = TextTrimming.CharacterEllipsis
例如,如果我有文本“123456789ABCDEF”,则显示为“12345678...”,但我想要它“...89ABCDEF”。
谢谢
我尝试过使用 FlowDirection,它在开始时呈现 ...,但仍然以 1234 等开始。
然而,我确实遇到了这个非常相似的问题:
WPF ListView中字符串开头的省略号
那里有人有一个例行程序来手动完成。希望有帮助:)