Displaying WPF window inside another

Before you point me out to have a wpf window inside another wpf window, or tell me the MDI is soooo 1995, let me explain my application.

I am creating a MessageBanner box that works similar to the message banner we see on several sites currently (including SO)

I want client code to invoke my message banner using four different modes:

MessageBanner.Show(content);
MessageBanner.Show(content, ownerWindow);
MessageBanner.ShowModal(content);
MessageBanner.ShowModal(content, ownerWindow);

      

I believe you received the application.

The thing is, when the ownerWindow name is displayed, I want to display the MessageBanner inside the ownerWindow.

Any ideas on how to do this?

+2


a source to share


1 answer


I'm not sure why you want to add it as a window. It sounds to me like you want to create it as an adorner, not a window.



+1


a source







All Articles