title: `DesignMode` in subcontrols is not set correctly?
body: <p>I have a compound control contains nested controls. The problem i am facing is that control read properties from a global setting class which is static and intern read from setting file. To stop individual control from accessing configuration in design mode i added check in each control.</p>
  
  <pre><code>If(!DesignMode){
      ...
      //Initialize properties e.g. prop = AppConfig.GetProperty("prop1");
  }
  </code></pre>
  
  <p>The problem is that individual control work fine when open in VS. But when i open top control containing nested control i get error by VS designer. The error is that in a nested control <code>DesignMode=false</code> for some reason. </p>
  
  <p>I also created a test app and created a simple control within another control to test if there is a problem with VS but it seem to work correctly for any depth of controls. </p>
  
  <p>I dont even know how to debug this. For now i comment out the property initializing code and build it and then open designer and there uncomment it and build it again to run it.</p>
  
  <p>Did anyone came across this problem or is there any way to fix it.</p>