if (DesignerProperties.GetIsInDesignMode(this))
{
//In design-mode
}
see here
ArsenMkrt
2009-07-31 10:33:48
if (DesignerProperties.GetIsInDesignMode(this))
{
//In design-mode
}
see here
In vs2010 goto:
Options > Text Editor > XAML > Miscellaneous
Under "Default View" Section
check Always open documents in full XAML view