Build toolbars programatically without using config files

  •  03-01-2010, 12:27 PM

    Build toolbars programatically without using config files

    How do we go about creating an instance of the editor in C#, and adding our own toolbars and toolbar controls without using inline markup or config files? We want to lock down the ability of developers to override our pre-defined tool bars without relying on a configuration file.
     
    e.g. pseudo-code
     
     
    CuteEditor.Editor editor = new CuteEditor.Editor();
    Toolbar toolbar = new Toolbar()
    toolbar.Add(new ToolbarControl("Bold");
    toolbar.Add(new ToolbarControl("Separator");
     
    editor.Toolbars.Add(toolbar)
View Complete Thread