Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
855
DocumentContentHost: Accessing Panes from Code-Behind
posted

I'm trying to get access to panes contained in the documentcontenthost. In my xamDockManager_Load event I have this line:

ContentPane pane1 = (this.xamDockManager.DocumentContentHost.Panes[0] as TabGroupPane).Panes[0] as ContentPane;

// do something with pane1

The line above gives me a null reference exception.

Please assist.

Thanks

Parents Reply Children
No Data