I know TextBox/TextBlock already support text word wrap very well. (Windows WPF)
the question is how can I开发者_C百科 reuse that logic? so I don't need to write an other word wrap util class for this purpose.
Any feedback would be great appericated!
Algorithms to do this have been around for ages and are relatively simple. You'd be a lot better off using one of the standard algorithms rather than trying to duct-tape something to a textbox. Try the wikipedia page for starters: Word Wrap
精彩评论