WPF : Callout Popup

I could not sleep last night, thinking too much I guess, so I got up and tried something out for a larger project ( article for www.codeproject.com ) that I am working on.

Basically I needed a nice animated callout that could also take some content.

This seems to be the exact role of the standard WPF Popup primitive, so I thought I’ll just use that and tweak it a bit. And about 30 minutes later, I have a nice callout popup which animates in using the standard Popup PopupAnimation enumeration.

The only thing is that the Width and Height and direction of the callout are hardcoded in the attached example, but if you were so inclined I am sure you could alter that.

Any way here is the callout popup in action (nice drop shadow, no?)

image

As always here is a small demo project link

http://sachabarber.net/wp-content/uploads/2009/11/CalloutPopup.zip

Also look out for the upcoming article that goes with this. It’s an AI type search article. I have been laying low for a while but this one was quite fun. I have loads more interesting stuff planned, as always its just finding the time.

About these ads

7 thoughts on “WPF : Callout Popup

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s