public ContentContainer(ContentContainer parent, string contentSelector, Action<ContentBindingModel, IDomElement> modelBindingFunction) { ChildContents = new List<ContentContainer>(); ModelBindingFunction = modelBindingFunction; ContentSelector = contentSelector; Parent = parent; DomElement = Parent.DomElement.Find(ContentSelector); }
public ContentIf(ContentContainer parent, Func<ContentBindingModel> modelBindingFunction) : base(parent, modelBindingFunction) { }
public void RemoveChild(ContentContainer child) { ChildContents.Remove(child); }
public void AddChild(ContentContainer child) { ChildContents.Add(child); }