title: Silverlight Context Menu IsOpen Exception?
body: <p>I have a project with a Templated Silverlight Control. When I add the DLL from the Project (with Templated Control) in my MainPage and want to open the Context Menu with a right click, I get this error:</p>
  
  <p><strong>MainPage.xaml</strong></p>
  
  <pre><code>&lt;MyControls:Draw x:Name="ctrDraw"&gt;&lt;/MyControls:Draw&gt;
  </code></pre>
  
  <p><strong>Draw.cs</strong> (Templated Silverlight Control)</p>
  
  <pre><code>_contextMenu.IsOpen = true; --&gt; Error
  </code></pre>
  
  <p><strong>ErrorMessage</strong></p>
  
  <pre><code>errMsg  "Unhandled Error in Silverlight Application 
  Code: 4004    
  Category: ManagedRuntimeError       
  Message: Das Festlegen von Eigenschaft 'System.Windows.FrameworkElement.Style' hat eine Ausnahme ausgelöst."
  </code></pre>