This is a migrated thread and some comments may be shown as answers.

Unpinned panes have no content

1 Answer 48 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 15 Jul 2013, 10:41 PM
Hi,

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?

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 18 Jul 2013, 02:07 PM
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.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
Tags
Docking
Asked by
Michael
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or