Hi,
I'm working on an application based on Silverlight viewer. I'm trying to implement additional controls that interact with the "out of the box" table of contents. For example, I'd like another control to open and close the TOC.
The challenge is to get a reference to the TOC object so that I can work with it. I can look in the layout, find the TOC container (TabItem in TabControl) and make visible or collapsed, or access it's defined states/storyboard. For the feature to just open and close the TOC from another control, I'm finding that making it's TabItem visible does not show the TOC. It will after I've used the OOTB button, which may initialize the TOC control, not sure. After using the OOTB button once, my control is able to open (make visible) and close (make collapsed) but unless I first open it with the OOTB command button, I just get an invisible layout object (I think it's the tabItem with no content opening up because it pushes the navigator control out to the right of its space.
So the general question is...how can one get programmatic references to the OOTB components (TOC and any others) from user code in one's own usercontrol? If there is no way to get an object reference, perhaps an interim step would be to understand why making the TOC tabItem visible (and yes, selecting its index in tabControl) does not show the TOC unless using the OOTB button to first open the control.
Any help on this is appreciated.
thanks,
Danny