views:

4486

answers:

4

I am looking for a way to display a modal window in WPF the same way as a window in Cocoa can be displayed as a sheet, i.e. it slides down from the titlebar in front of the main parent window.

My guess is that this would be accomplished by having the modal window as a user control which is loaded into a panel when displayed, and that this panel is the one which would be animated somehow from the titlebar.

Any ideas on how to do this?

P.S: Here is a brief description of the NSWindow/sheet in case you don't what it is.

+5  A: 

Don't. It's not the expected user experience on Windows. Use modal dialogs or in-window navigation instead.

millenomi
A: 

Thanks for the answers guys.

My main objective for this was to have a shared window for the two windows, but I do not want to make it break any expected UX either so I'll take your answers into consideration and try to make up another idea for this.

Geir-Tore Lindsve
A: 

Check out the Sliding and Flying Windows sample on CodeProject and also the Microsoft Health Common User Interface demonstrator which was the (Silverlight) inspiration. The latter gives you a good idea of what's going to be pushed as both cool and blessed in corporate UI design :-)

Andy Dent