

I've seen answers saying not to use a Textbox.Įven though the OP says that the \n works, I don't think that that is the way to go, in my opinion you're just brute forcing the control to do what you want and if at any point you need to change the text you will have to go and check if the text is correctly wrapped or if the \n needs to be in another position. I've seen answers mentioning the use of stackpanels or grids. replace button text with a text block (I think this lets you center align the text but doesn't wrap it) replace button text with a new label (doesn't let you center align the text) ntent = "Line1\nLine2" (didn't work, maybe I did something wrong) I'm sure many more exist, the list is basically in order from most to least favorite.

Use can a StackPanel in your Button, and add each line as a Text.Once the Buttons size is smaller than the TextBlocks size it will simply split the content into two lines or more automatically This method is simple but there is no way to easily control the alignment of the text: There are several ways to do this via XAML:
