I’v tried to use TextBlock.wrap ( and so TextBlock.wrap.None + TextBlock.overflow ) to deal with CJK.
The best solution for me is set word-break to break-all. (cause contents are mainly CJK)
But I can’t figure out how to make it.
Could somebody give me some hints or maybe i need to use inherit function?
Could you describe more precisely what the problem is? I am unable to reproduce any problems by modifying Family Tree (Japanese) to force some wrapping by setting the TextBlock.width to 30 or 40.
Does this problem only happen with CJK characters? Does it wrap text correctly with latin characters?
Does this problem only exist when the text is right-to-left? Does it wrap text correctly when the text is left-to-right?
Thanks for your reply.
My text in TextBlock is like:
2017 年一二三四五六七八九十 one two 一二三四五六七八九十
which mainly in CJK with white space,.
It seems like when words between white space are not the same word scripts, it will automatically break one line, such as
For some reasons, the best solution to me is like this:
2017 年一二三四五
六七八九十 one tw
o 一二三四五六七
八九十
don’t automatically break line
(seems like set CSS -> word-break: break-all;)