Message 1 of 6
Adding my own toolbar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
i'm looking for a sample code for creating my own toolbar.
My code i using for adding one command to the "AdvancedToolbar".
CommandItem CopyLinkCmdItem = new CommandItem("CommandCL", "Copy Link")
{
NavigationTypes = new SelectionTypeId[] { SelectionTypeId.File },
MultiSelectEnabled = false
};
CommandSite toolbarCmdSite = new CommandSite("SampleCommand.Toolbar", "Hello World Menu")
{
Location = CommandSiteLocation.AdvancedToolbar,
DeployAsPulldownMenu = false
};
toolbarCmdSite.AddCommand(CopyLinkCmdItem);
i want to place this command, and some others, on my own toolbar.