Hosting a window inside a frame – WPF

Don’t ask me how or why this was needed 🙂

Someone asked me if it was possible and I said yes and then produced this code, thought I would publish it just in case someone else needed to know how !

        public void HostWindowInFrame(Frame fraContainer, Window win) {
            object tmp = win.Content;
            win.Content = null;
            fraContainer.Content = new ContentControl() { Content = tmp };


  1. Good day! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very good results.
    If you know of any please share. Appreciate it!

  2. It is actually a great and useful piece of information. I’m glad that you shared this helpful info with us.
    Please keep us up to date like this. Thank you for sharing.

    Also visit my page; Iso certification dubai (Trena)

  3. John Wild is vice president of Absolute Access & Security.
    In addition, you might need to have an electronic key replaced
    and a locksmith can also perform this service. With a very good
    background to its credit, you will surely have a rewarding and ingenuous experience with a

    My webpage … Jerilyn

  4. I don’t know if it’s just me or if perhaps everyone else experiencing issues with your blog.
    It appears like some of the written text within your posts are running off the screen.
    Can someone else please comment and let me know if this is happening to them
    as well? This could be a issue with my internet browser because I’ve had this happen
    before. Thank you

Comments are closed.