Hi!
It seems that XamDockManager doesn't work with MEF RegionManager...
Is this true, or is ther some solution?
Hi,
Sorry for the delayed response, i was on vacation last week.
I've attached a sample showing the XamDockManager working with regions. Note: this is just a simple example and isn't using a MEF region, however, from what i gather you were having trouble loading any region.
To run the sample, just unzip it, and add references to your IG assemblies.
If this sample doesn't work for you, or does work but doesn't cover your case, i'd be more than happy to work with you to more closely identify the problem you're running into.
-SteveZ
In my point of view, this has nothing to do with having a "ContentControl" inside the "ContentPane" or whatever...
The main issue here, is the region not been registered in RegionManager.
Sadly, I've found out, that this is comun problem with infragistics constrols...
Take a look at here:
http://community.infragistics.com/forums/p/39320/224079.aspx
and here:
http://community.infragistics.com/forums/p/40612/227531.aspx
http://forums.infragistics.com/forums/p/30026/156772.aspx
http://blogs.infragistics.com/forums/t/42884.aspx
and so on...
We are giving up of this control...
I think infragistics should answer this...
you did not try to add a ContentControl inside the ContentPane and attatch cal:Region to the ContentControl...
This should work...
Regards,
I've done as you said...
Still not works.
I had to create a new "RegionAdapter" for the "ContentPane", and register it within "MefBootstrapper"
It enters the RegionAdapter, and calls for the method "CreateRegion()", but the region isn't added to RegionManager.
With all other controls, the region is successfully added to the RegionManager after "CreateRegion()", in this case (XamlDockManager) it isn't...
NOTE: We have several controls working this way, all of them working fantastic. This has been a routine job for us. "XamlDockManager" is the only one with this strange behavior...
Sorry i misunderstood you...
try the following...
Manualy add a ContentPane to the DockManager, and inside that pane add a ContentControl. Apply a region to that ContentControl and try to show a view into that region...
Does it work?