tags:

views:

91

answers:

1

Hello,

I'm having an issue where the property IsInDesignMode is not returning the expected value of true when running the solution in VS or Blend. My environment consists of Win Server 2008 R2, VS2010 Pro, Blend 4 and MVVM Light V3. I run my Silverlight 4 solution in Debug mode from VS and Blend, and IsInDesignMode is always false. Am I missing a setting? Is there a reason why it may not be picking up the environment? Thanks in advance.

-Greg

+1  A: 

Hi,

It should work properly. The only place where I know that IsInDesignMode returns a wrong value is when using it to build code that runs within Visual Studio, such as VS plug-ins. This is an issue that is very difficult to solve. It doesn't sound like it is what you are doing, though...

Do you have a repro that I can test? Alternatively, could you download the MVVM Light code and debug this?

Thanks, Laurent

LBugnion