title: "The DOM/scripting bridge is disabled" error in Blend
body: <p>I've been given a custom Silverlight control to use, and everytime I open it up in Blend, get the "The DOM/scripting bridge is disabled" error.</p>
  
  <p>Looking in the control's source code, I can see calls to</p>
  
  <pre><code>public override void OnApplyTemplate()
      {
             ...
     HtmlPage.Window.Invoke("GetPrimaryGradStart").ToString()
  </code></pre>
  
  <p>which I'm guessing might be the problem. Any ideas about what I can do, or am I back to pure XAML?</p>
  
  <p>cheers</p>
  
  <p>Toby</p>