Hi,
Not sure what is correct usage of the Prism RegionManager in XamWebOutlookBar.
Here is my XAML:
<igOB:XamWebOutlookBar > <igOB:OutlookBarGroup.ContentTemplate> <DataTemplate Regions:RegionManager.RegionName="ControlRegion"> </DataTemplate> </igOB:OutlookBarGroup.ContentTemplate></igOB:OutlookBarGroup>
code behind returns null
IRegion
region = m_RegionManager.Regions["ControlRegion"];
Thank you,
Dmitri
Hi Dmitri,
If I undestand you correctly, you're trying to use the XamWebOutlookBar as a Region container.
The supported controls that you could use as regions in Prism are:
- ItemsControl and its derived controls (for example, ListBox);
- Selector and its derived controls (for example, TabControl);
- ContentControl and its derived controls (for example, ScrollViewer)
Unfortunatelly, that means you cannot use the XamWebOutlookBar as Region container out of the box, because it's derived from Control.
In order to use it as a Region container you'll have to implement a Region Adapter for the corresponding type.
This article might be helpfull on how to do that:
http://johnpapa.net/silverlight/fill-my-prism-region-please/
Hope that helps,