Region in a WrapPanel

Nov 2, 2008 at 6:46 PM
I'm new to Composite WPF.
How can I add UserControls to a Region which is a WrapPanel?

Do I need a custom Region Adapter?
Nov 12, 2008 at 4:31 PM



There is a way to use a WrapPanel like a Region without implement a Region Adapter for it. You should add in your XAML file something like the following:


<ItemsControl cal:RegionManager.RegionName="MainRegion">



            <WrapPanel />





Perhaps, you may want to check this another question to find more information about how to use general Panels as Regions:

·         Confused by removal of PanelRegion


If you are interested on creating customs regions adapter, I recommend you to review the following How-to article that provides good guidelines about it:

·         How to: Create a Custom Region Adapter


Please, let me know if you find this useful.


Ezequiel Sculli