Freigeben über


Adding a New Line to your TextBlock

I am in the early stages of building a new Windows 8 app (you’ll get more details when I publish it).  As I worked on the app I found for formatting purposes I needed a new line in my TextBlock and I needed to add it programmatically.  My initial guess was simply inserting a \n to get the new line, but that didn’t work.  A bit more experimentation revealed it was the old carriage return and line feed in combination.  If your playing along at home that is \r\n.