title: Animate Popup on Close
body: <p>So I am having trouble animating a Popup in C#, and I am wondering what I am doing wrong. The popup animates on opening, does not animate on close. Do I have to set the PopupAnimation value to a new animation after it opens?
  </p>
  
  <pre><code>Popup popup = new Popup();
  popup.AllowTransparency = true;
  popup.StayOpen = false;
  popup.PopupAnimation = PopupAnimation.Slide;
  popup.IsOpen = true;
  </code></pre>