title: adopt popup from blend and to visual studio windows phone 8
body: <p>We are trying to implement a popup window.</p>
  
  <p>This we are doing by making a popup in Blend, which we interpret as a style ? Because of its variable name in visual studio. We have tried to give </p>
  
  <p>myPopup.style = blendPopupStyle;</p>
  
  <p>But when displaying it the style is lost.
  Can somebody explain a mock up of how to do this?</p>
  
  <p>Furthermore the popup should scale out the background so as not to make people able to click anything else than the UI on the popup.</p>
  
  <p>An example is here <a href="http://blogs.u2u.be/diederik/post/2012/06/12/Modal-Dialogs-in-Windows-8-Metro.aspx" rel="nofollow">http://blogs.u2u.be/diederik/post/2012/06/12/Modal-Dialogs-in-Windows-8-Metro.aspx</a> but it is only working for windows 8. And when trying to port I have not been able to find a way. But this still leaves the blend issue.</p>
  
  <p>Hope somebody have an example / tutorial, or some pointers :)</p>
  
  <p><strong>Answer</strong></p>
  
  <p>The error is in where you in blend position your popup model. it should be where the other elements are as a popup element. Then you can simply by NAME.isopen = true;.</p>
  
  <p>If you want a background that is not accesible in the meantime of popup and you do not want a hugh popup. simply open a popup with an appropriate opacity &amp;/| colour. And then open your blend model done :)</p>
  
  <p>Johann</p>