The appearance of the menu can be modeled entirely with images, without using skins
or Themes. The RadMenuItem class exposes the Image
property which you can use to set the image. You can also add an image list to your menu by setting the ImageList property, either via VS2005 or programmatically.
If you set the images programatically, you can have one image for the initial state
of a menu item and another image for the hover state. Just use the ImageList
to se the images:
radMenu1.ImageList = imageList1;
and then add an image to some of the MenuItems by setting the index of
the image in the ImageList in Visual Studio 2005 or by:
radMenuItem1.ImageIndex = 0;
The relation between image and text is determined by TextImageRelation
property.
Programmatically you can set
it in the following
way:
radMenuItem1.TextImageRelation = TextImageRelation.ImageBeforeText;
TextImageRelation enumeration defines the following values:
Overlay, ImageAboveText, TextAboveImage,
ImageBeforeText, and TextBeforeImage.programmatically