---
title: "how Animate Popup on Close will work?"  
description: "how Animate Popup on Close will work?"  
author: "Lady Bird Johnson"  
published: 2013-08-09  
updated: 2013-08-10  
canonical: https://www.mindstick.com/forum/1363/how-animate-popup-on-close-will-work  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# how Animate Popup on Close will work?

Hi [Developer](https://www.mindstick.com/articles/157260/variation-between-web-designer-and-web-developer)!

So I am [having trouble](https://answers.mindstick.com/qa/50524/how-to-fix-iphone-8-that-s-overheating-and-having-trouble-turning-on) animating a [Popup](https://www.mindstick.com/blog/11734/how-to-create-advanced-popup-or-banners-with-news-images-discounts-in-magento2) in C#, and I am wondering what I am [doing wrong](https://answers.mindstick.com/qa/36736/what-are-indians-doing-wrong-on-whatsapp). The popup animates on opening, does not animate on close. Do I have to set the PopupAnimation [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) to a new [animation](https://www.mindstick.com/articles/13040/seven-helpful-tips-to-start-and-grow-an-animation-video-company) after it [opens](https://www.mindstick.com/news/2570/china-s-new-space-station-opens-for-business-in-an-increasingly-competitive-era-of-space-activity)?

Popup popup = new Popup();

popup.AllowTransparency = [true](https://yourviews.mindstick.com/view/81326/boycott-chinese-products-dream-will-come-true);

popup.StayOpen = false;

popup.PopupAnimation = PopupAnimation.Slide;

popup.IsOpen = true;

thank in advance.

## Replies

### Reply by Pravesh Singh

To Animate a popup on close, you have to set the animation after the animation to open the popup.

popup.Opened += popup_Opened;

void popup_Opened(object sender, EventArgs e)

{

popup.PopupAnimation = PopupAnimation.Fade;

}


---

Original Source: https://www.mindstick.com/forum/1363/how-animate-popup-on-close-will-work

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
