In design mode
WPF project has begun and I have been continuously finding new things. I’m very excited, mainly because what I have accomplished to today. Maybe I will write about it.
Many thanks to fellows like Josh,Karl and Sasha for the knowledge I have acquired from them since Summer 2007.
One of the things I needed, for my next post, is to know if code is running in DesignMode or not.
So here is the class I wrote
public static class Designer { private static DependencyObject dummy = new DependencyObject(); public static bool InDesignMode { get { return DesignerProperties.GetIsInDesignMode(dummy); } } }
June 14, 2008 at 2:33 am
[...] In design mode WPF project has begun and I have been continuously finding new things. I’m very excited, mainly because what I have accomplished to today. Maybe I will write about it. Many thanks to fellows like Josh,Karl and Sasha for the knowledge I … [...]