Example
The example below shows how to create the component container used for adding personalized gadgets.
C#
using System;
using System.Collections.Generic;
namespace EPiServer.Shell.ViewComposition.Containers
{
    
    
    
    [Component(IsAvailableForUserSelection = false)]
    public class ComponentContainer : ContainerBase
    {
        
        
        
        public ComponentContainer() : this("epi.shell.widget.layout.ComponentContainer") { }
        
        
        
        protected ComponentContainer(string widgetType) : base(widgetType)
        { 
            Settings.Add(new PersonalizableSetting("numberOfColumns", 1));
            Settings.Add(new Setting("showToolbar", true));
            Settings.Add(new Setting("containerUnlocked", false));
            Settings.Add(new Setting("closable", false));
            Settings.Add(new Setting("personalizableHeading", string.Empty, true));
        }
        
        
        
        [Obsolete("Categories are now defined on the view level, and not per container.")]
        public virtual string ComponentCategory
        {
            get
            {
                return null;
            }
            set
            {
            }
        }
    }
}