Region adapters need updating

Feb 24, 2009 at 11:45 PM
Just wanted to mention that the region adapters need a small update for the latest Composite WPF.

I noticed that they added in a ctor parameter for the RegionAdapterBase class, so the adapters need a 1 argument ctor similar to this:

public class CustomRegionAdapter : RegionAdapterBase<ContentControl>
{
    public CustomRegionAdapter(IRegionBehaviorFactory regionBehaviorFactory)
        : base(regionBehaviorFactory)
    {}
}

The IRegionBehaviorFactory is injected via the container