Button bt = new Button(); TextBlock tb = new TextBlock(); tb.Text = \"Text to be wrapped\"; tb.TextWrapping = TextWrapping.Wrap; bt.Content = tb;