Note the brand new toolbarset above containing a single ToolbarItem (horizontal
rule).
This was created declaratively. To achieve this, first we want to try and serialize
all the defaults into the page. This can be done by selecting this option from the
smart menu. Reference screen shot below :

Then simply use the toolbar collections editor in designview

ASP.NET (The declarative output generated after using the collections editor in the screenshot above)
|
|
<cc1:ToolBarSet> <Items> <cc1:ToolBarItem Command="inserthr" Icon="~/Toolbar-Items/hr.gif" ToolTip="Add a horizontal line." /> </Items> <ToolBarItemStyle BorderColor="#EEEEEE" BorderStyle="Solid" BorderWidth="1px" CssFloat="Left" Cursor="Pointer" Display="Block" Height="22px" MarginBottom="1px" MarginTop="1px" Width="24px" /> <ToolBarStyle BackColor="#DADCDC" BackgroundPositionX="1px" BackgroundPositionY="1px" BackgroundRepeat="Repeat" BorderColor="#646464" BorderStyle="Outset" BorderWidth="1px" CssFloat="Left" Height="26px" MarginBottom="2px" MarginLeft="2px" MarginRight="5px" MarginTop="2px" /> </cc1:ToolBarSet>
|
After this, simply keep the items of interest to you. In this case, we want all
the default settings for the toolbaritems. Everything else is irrelevant and can
be removed. Then turn off the serialization since we don't require it anymore and
proceed to adding your custom toolbarset declaratively. Follow the highlighted code
below :