public override void ParseComplete(ControlBuilder rootBuilder) { base.ParseComplete(rootBuilder); IMvcControlBuilder builder = rootBuilder as IMvcControlBuilder; if (builder != null) { builder.Inherits = _inherits; } }
public override void ParseComplete(ControlBuilder rootBuilder) { base.ParseComplete(rootBuilder); // If it's our page ControlBuilder, give it the base type string IMvcControlBuilder controlBuilder = rootBuilder as IMvcControlBuilder; if (controlBuilder != null) { controlBuilder.Inherits = _viewBaseType; } }