protected override void OnUpdatePageModel(StructureMap.IContainer container) { base.OnUpdatePageModel(container); // special, update page model with config includes foreach (Include include in Includes.Select(i => i.ConfigInclude).Where(i => i != null)) { var w = container.TryGetInstance<IWidget>(include.Name); if (w != null) w.UpdatePageModel(this, include); } }