示例#1
0
        public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
        {
            UITypeEditorEditStyle style = base.GetEditStyle(context);

            PropertyGrid propertyGrid = context.ResolvePropertyGrid();

            if (propertyGrid != null)
            {
                RunExpandAllOnGrid(propertyGrid, false);
            }

            return(style);
        }