This is very usual situation. You can fix it.
Please see my past answer to this Question:
format code in technical blog
In this answer I cover most common formatting mistakes. Your problem is most likely related to escaping of tag's angular brackets of your XAML code sample.