If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: WPF Button Content Multi-line

You know we answer a lot of questions around here so it's pretty hard to keep track of those too busy to look things up for themselves.

So help us out here. If you've looked in google, how about stating why the solutions found in a google search "WPF text multiline" aren't adequate.

Arjay,

Creating multi-line text is not the problem. Creating multi-line button text is not the problem. The problem is creating a button template in a resource file where the content presenter supports text wrapping. This I cannot find on google. In fact, if I type WPF Multiline button, this post is near the top....

Why should I have to add <LineBreak/> or create a new TextBlock for my buttons every time I use them simply to support text wrapping? I should just be able to add this to my Button Template and be done with it. This is my problem.

Re: WPF Button Content Multi-line

Alright, well, I thought I found the solution, but it doesn't work...... I should have searched for ContentPresenter then I would have known that this is actually a place holder for the content and for lack of a better description means "YOUR CONTENT GOES HERE!".

So, I added the TextBlock to my template and placed the ContentPresenter there, but......not wrapping.