11
I would like to build a generic/re-usable modal dialog that I can use in our WPF (MVVM) - WCF LOB application.
I have a Views and associated ViewModels that I would like to display using dialogs. Bindings between Views and ViewModels are done using Type-targeted DataTemplates.
Here are some requirements that I have been able to draft:
- I prefer this to be based on a Window instead of using Adorners and controls that act like a modal dialog.
- It should get its minimum size from the content.
- It should center on the owner window.
- The window must not show the Minimize and Maximize buttons.
- It should get its title from the content.
What is the best way to do this?