Infragistics TabGroupPane

Dec 20, 2010 at 9:36 PM

Hi All

I'm being a bit dense at the moment and can not get CM to work with the Infragistics TabGroupPane. I have a question on StackOverflow: http://stackoverflow.com/questions/4309032/caliburn-micro-infragistics-xamdockmanager-tabgrouppane

Basically I want to be able to the use the TabGroupPane as you would a regular tab control but the TabGroupPane expects it's contents to be wrapped in a ContentPane, that is where the problem is!

Any help would be very useful.

 

Dec 20, 2010 at 11:39 PM

If you can't get the ContentPaneFactory suggested in Infragistics blog to fill the TabGroupPane through binding, you might consider these alternative approaches:

  • keep your VM with BindableCollection in place, subscribe VM change notification in code-behind and change the TabGroupPane programmatically according to the actual change occurred in observed collection
  • build a custom IResult and invoke it from VM (using Coroutine.Execute) according to the desired TabGroupPane variation.
    In IResult.Execute body you have access to ActionExecutionContext.View, so you can reach the TabGroupPane by name and operate whathever action you need on it.
    This way you keep your VM free from direct reference to the particular UI control library.
  • define an interface abstracting the whole Docking Manager, and use it as a service from VM (see this post about the implementation of a Docking Manager).
    This approach diverges quite a lot from the MVVM idea, but unfortunately most docking library are not very MVVM friendly...