Ejemplo n.º 1
0
        protected TItem CreateItem(IScopeLocator scopeLocator, string name)
        {
            TItem item = CreateItem(name);

            item.ScopeLocator = scopeLocator;

            return(item);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }