WittyCoding

Coding blog

Silverlight/WPF tip 2 : Line break, the magic character

It happens sometimes that you want to make a line break in XAML view. As this language is based on XML, it becomes problematic because traditional characters do not work.

The LineBreak tag can work but we can use only in a very specific case, as Inline element.

We can use a Binding and an environment variable, but it really is not practical.

That is why there is a magic character that allows this behavior: "
"

Tags: Silverlight, WPF, XAML

No Comments

Add a Comment