I have some text which has \"\\r\\n\" newline markers. I would like to have the newlines in a WPF textblock. I\'ve tried replacing \"\\r\\n\" with \"& # 13;\" (without t
Try these for a more WPF centric solution.
TextBlock.Inlines.Add(new Run("First")); TextBlock.Inlines.Add(new LineBreak()); TextBlock.Inlines.Add(new Run("Second"));
See also : XAML based Answer