Skybound Rebar

RebarMenuExtender.SetPopupTheme Method 

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.

[Visual Basic]
Public Sub SetPopupTheme( _
   ByVal menu As ContextMenu, _
   ByVal theme As RebarTheme _
)
[C#]
public void SetPopupTheme(
   ContextMenu menu,
   RebarTheme theme
);

Parameters

menu
The context menu whose popup theme is set.
theme
The RebarTheme to use as the popup theme.

Remarks

If the context menu will only be used as a menu in a RebarBand, it is unncessary to assign a popup theme as the menu will inherit the theme assigned to the Rebar control.

See Also

RebarMenuExtender Class | Skybound.Rebar Namespace