Provides additional properties for menu components which are used with a RebarTheme.
For a list of all members of this type, see RebarMenuExtender Members.
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Skybound.Rebar.RebarMenuExtender
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
At design-time, this component enables you to associate an image with each menu item on the design surface. When a menu is drawn using a RebarTheme, the image is displayed beside the menu item at runtime.
RebarTheme themes may also be assigned to context menus using by this component. Once a context menu has been assigned a theme, it is drawn using the theme whenever it is displayed. However, even if no theme is assigned, if the context menu is displayed from a RebarBand, it will use the theme assigned to the Rebar control by default.
Unlike most extender providers, all RebarMenuExtender components share a common resource pool. For example, if you assign an image to a menu item using one instance of RebarMenuExtender, you may retrieve it using a different instance, or even using the instance obtained using the static (Shared in Visual Basic) Default property.
Here are a list of the properties provided by this component:
Property | Description |
---|---|
Image (for MenuItem components) | Gets or sets the image associated with a menu item. |
PopupTheme (for ContextMenu components) | Gets or sets the RebarTheme used to render a ContextMenu when it is displayed using the Show method or as a right-click context menu for a control. |
Namespace: Skybound.Rebar
Assembly: Skybound.Rebar (in Skybound.Rebar.dll)
RebarMenuExtender Members | Skybound.Rebar Namespace