Jump to content
  • Advertisement
Sign in to follow this  

[.net] UIType Editor help

This topic is 3323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys, This is my first UI Type editor and I'm not too experienced with C#, so some help would be appreciated. I am in the process of creating a tree control (similar to TreeView, but it allows nodes to be any control the user wants). I've got a Nodes property in my control and decided to do a modal UIType Editor for it. I've got it done, all I want to know is how to save and load values using it. I'm relatively sure my returning code is correct, using the overridden EditValue function, if I understand correctly:
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
            // Access the property browser's UI display service
            IWindowsFormsEditorService editorService =

            if (editorService != null)
                ExTreeNodeEditorForm treeNodeEditorForm = new ExTreeNodeEditorForm();

                // Display the editor
                if (editorService.ShowDialog(treeNodeEditorForm) == DialogResult.OK)
                    return treeNodeEditorForm.m_Nodes;

            return base.EditValue(context, provider, value);


I just want to know how to then load the returned values when I next load up my UIType Editor. I hope that made at least a bit of sense. Any help is greatly appreciated. Cheers Ray

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!