Unpinned panes have no content

2 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    May 2013

    Posted 15 Jul 2013 Link to this post


    I'm using Prism and MEF to inject my views into RadPanes.  Everything works great, with one exception... if a pane is unpinned (i.e. it is just a tab) when the application starts up, when I mouse over the tab or click to pin, the pane has no content.  I can pin/unpin a pane that already has content without issue.

    It's a reasonable guess that because the pane is not active on startup, no content is injected, and then it doesn't know to inject the content on mouse-over or when pinning that pane.

    What event at the pane level can I track to know when a pane is now being displayed from a hidden state (both on mouse over, and on click)?  In this way I think I could detect that a pane has no content and request a navigation to that region.

    Alternatively, is there a way to have even hidden or unpinned panes be 'Active' so they load content?

  2. George
    George avatar
    1332 posts

    Posted 18 Jul 2013 Link to this post

    Hi Bryan,

    You could get the AutoHideArea and cast it to INotifyLayoutChange. Then, handle the LayoutChangeStarted event and add some logic to load the pane's content. You can find the attached project for reference.

    Hope this helps.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top