visual studio - XAML editor won't render the controls in my WPF window -


as of visual c# 2012's xaml editor won't render controls. don't error messages or warnings , can still select controls. don't see them. here's looks in editor:

xaml editor

the source code of xaml file can found here. oddly enough other xaml files displaying normally. @ runtime, controls in faulty xaml file render normally. can see in screenshot, error list empty.

why isn't xaml file rendering in editor?

removing opacity="0" window root tag makes controls show in visual studio.

i tried switch opacity on in case if code running in designer this:

public nfywindow() {     initializecomponent();     if (system.componentmodel.designerproperties.getisindesignmode(this))         this.opacity = 1; } 

—but seems ignored visual studio 2010.

however reverse trick helps: can remove opacity setting xaml , put constructor. worked me, visual studio version/sp may different.

you may try cleaner way:

public nfywindow() {     initializecomponent();     if (!system.componentmodel.designerproperties.getisindesignmode(this))         this.opacity = 0; } 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -