ComponentOne Ribbon for WinForms
C1Ribbon (Classic) Appearance / XML Serialization of the Ribbon Layout
In This Topic
    XML Serialization of the Ribbon Layout
    In This Topic

    The Load/Save Template feature allows end users to create a collection of ready-to-use templates for tabs and control groups. For example, many applications are likely to have the Clipboard and Font groups. Instead of creating a new Ribbon with these groups from scratch for each application, you can save the tabs and control groups as XML files and reuse them later. Then you can quickly import the XML and add the code to handle the commands.

    Load Ribbon Template

    To import an existing XML file to the Ribbon, complete the following steps:

    1. Click the Ribbon to enable the Ribbon's floating toolbar.
      ribbon floating toolbar
    2. Click the Actions drop-down button.
    3. From the list, select Load Ribbon Template.
    4. The Load Ribbon Template dialog box appears. Browse to the location of the XML.
    5. Click Open. The template loads the Ribbon.
    6. Add the code to handle the commands.

    Save Ribbon Template

    To save a Ribbon template, complete the following steps:

    1. Create a Ribbon group and add Ribbon items to the group
    2. Click the Ribbon to enable the Ribbon's floating toolbar.
      ribbon floating toolbar
    3. Click the Actions drop-down button.
    4. From the list, select Save Ribbon Template.
    5. The Save Ribbon Template dialog box appears. Enter the XML's name in the File name text box and browse to the save location for the XML.
    6. Click Save.

    Load StatusBar Template

    To load a status bar template, complete the following steps:

    1. Click the C1StatusBar smart tag () to enable the C1StatusBar Tasks menu.
    2. Select Load StatusBar Template from the menu:
      load template of statusbar
    3. The Load StatusBar Template dialog box appears. Browse to the location of the XML.
    4. Click Open. The template loads the status bar items.
    5. Add code to handle the commands.

    Save StatusBar Template

    To save a status bar template, complete the following steps:

    1. Add status bar itemsto the status bar.
    2. Click the C1StatusBar smart tag () to enable the C1StatusBar Tasks menu.
    3. Select Save StatusBar Template from the menu:
      save template of statusbar
    4. The Save StatusBar Template dialog box appears. Enter the XML's name in the File name text box and browse to the save location for the XML.
    5. Click Save.