Available Prism Region Controls

I am new to Prism, and I usually do the same as in the samples that I see; place the regions inside the ItemsControl. I read that you can use more controls, but not all, to define a region. However, I did not see a review of what controls can be used to identify areas of Prism, and not. Is there a rule or a list?

<ItemsControl x:Name="MainRegion" Regions:RegionManager.RegionName="MainRegion" /> 
+4
source share
1 answer

This is from the documentation for "User Interface Compositions" in the composite application library:

The composite application library has the following region adapters: ContentControlRegionAdapter SelectorRegionAdapter and ItemsControlRegionAdapter . These adapters are designed to adapt controls derived from ContentControl , Selector and ItemsControl , respectively. There is an additional adapter, TabControlRegionAdapter , used in Silverlight because the Tab control does not derive from Selector , as in WPF.

So, the game here in a nutshell is that these adapters work for any control that comes from these supported containers. For example, a TabControl inherits from Selector .

This is obviously not the limit. If you have your own control that does not inherit from one of these controls, you can implement your own region adapter to support this control.

Hope this helps, Anderson

+6
source

All Articles