I know TextBox/TextBlock already support text word wrap very well. (Windows WPF)
the question is how can I 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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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