Display WPF modal window/dialog/panel the same way as a NSWindow can be displayed like a sheet in Cocoa

StackOverflow https://stackoverflow.com/questions/215457

  •  03-07-2019
  •  | 
  •  

Question

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.

Was it helpful?

Solution

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

OTHER TIPS

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.

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 :-)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top