Hello. I am working on an IWS extension and I have created a view and inserted it in a tab within the Workspace region.
Is there any way to make the new tab get focus (and the Workspace region open if it was closed) when receiving a certain event? I mean, is there a way to do it programmatically rather than have the user click buttons manually?
I think, all is possible Try to debug, which methods and objects are called/created during the focusing any tab and try to use it within your code-behind. IWS is just an WPF application, so if it is possible in WPF in general, in IWS will be too.
Thank you for your reply. That would be a nice thing to be able to do, but I don’t have the source for the IWS itself nor its DLLs (other than my own extension), so how can I tell what methods are called when I click on a particular IWS button or focus on a particular tab?
I second Pete’s example. This is how I have “programatically clicked” the tabs in the past. One of the IWS Extension samples also demonstrates this well.