Newline in string attribute

How can I add a line break to text when it is being set as an attribute i.e.: <TextBlock Text=”Stuff on line1 \n Stuff on line2″ /> Breaking it out into the exploded format isn’t an option for my particular situation. What I need is some way to emulate the following: <TextBlock> <TextBlock.Text> Stuff on … Read more

How to get a ListBox ItemTemplate to stretch horizontally the full width of the ListBox?

I want to have the ListItems to extend with their orange background the full width of the Listbox. Currently they are only as wide as the FirstName + LastName. I’ve set every element I can to: HorizontalAlignment=”Stretch”. I want the background of the ListboxItems to expand as the user stretches the Listbox so I don’t … Read more