Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
Prism RegionManager does not contain regions when regions are inside XamWebOutlookBar
posted

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

Parents
No Data
Reply
  • 6475
    Suggested Answer
    posted

    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,

Children
No Data