Display a WPF window inside another
Posted
by Padu Merloti
on Stack Overflow
See other posts from Stack Overflow
or by Padu Merloti
Published on 2010-05-16T01:06:08Z
Indexed on
2010/05/16
1:10 UTC
Read the original article
Hit count: 241
Before pointing me to http://stackoverflow.com/questions/1287820/have-a-wpf-window-inside-another-wpf-window or telling me that MDI is soooo 1995, let me explain my application.
I'm creating a MessageBanner window that works similar to the message banner we see in several sites nowadays (including SO)
I want client code to call my message banner using four different modes:
MessageBanner.Show(content);
MessageBanner.Show(content, ownerWindow);
MessageBanner.ShowModal(content);
MessageBanner.ShowModal(content, ownerWindow);
I believe you got the application.
The thing is that when ownerWindow is displayed, I want to display my MessageBanner window inside the ownerWindow.
Any ideas on how to do it?
© Stack Overflow or respective owner