开发者

how to add CharacterEllipsis at the beginning of the textblock in wpf?

开发者 https://www.devze.com 2023-01-28 11:41 出处:网络
I have a TextBlock with TextTrimming = TextTrimming.CharacterEllipsis and I want the dots to appear at the beginging. I开发者_StackOverflows there a property for this?

I have a TextBlock with TextTrimming = TextTrimming.CharacterEllipsis and I want the dots to appear at the beginging. I开发者_StackOverflows there a property for this?

For example if I have the text "123456789ABCDEF" it is displayed "12345678...", but I want it "...89ABCDEF".

Thanks


I had a go at messing about with FlowDirection, it renders the ... at the beginning but still started with 1234 etc.

I did however come across this very similar question:

Ellipsis at start of string in WPF ListView

Someone there has a routine to do it manually. Hope that helps :)

0

精彩评论

暂无评论...
验证码 换一张
取 消