protected TItem CreateItem(IScopeLocator scopeLocator, string name) { TItem item = CreateItem(name); item.ScopeLocator = scopeLocator; return(item); }
public TControl Create <TControl>(string name, IScopeLocator scopeLocator, params Attribute[] attributes) where TControl : Control <TOwner> { var control = Create <TControl>(name, attributes); control.ScopeLocator = scopeLocator; return(control); }
public TControl Create <TControl>(string name, IScopeLocator scopeLocator, params Attribute[] attributes) where TControl : Control <TOwner> { name.CheckNotNullOrWhitespace(nameof(name)); var control = Create <TControl>(name, attributes); control.ScopeLocator = scopeLocator; return(control); }
protected TItem CreateItem(IScopeLocator scopeLocator, string name) { TItem item = CreateItem(name); if (scopeLocator is ControlListScopeLocator controlListScopeLocator) { controlListScopeLocator.ElementName = item.ComponentFullName; } item.ScopeLocator = scopeLocator; return(item); }