What we can see on the screenshots is really an undesired behavior. We cannot exactly say why it happens by simply looking at the code you are sending here.
Is it possible that you open a new support ticket, attach your project there as a ZIP archive and send it to us for further investigation?
Thanks for your time.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.