Classe: XListMenu - X-Ref
XListMenu class
XListMenu displays a list of hyperlinks that can be used for page menus.
Menu items adjust their css class automatically according to the current
page displayed. In particular, a menu item is considered as active if
the URL it represents is for the page currently displayed.
Usage of XListMenu is similar to PRADO list controls. Each list item has
two extra properties: {@link XListMenuItem::setPagePath PagePath} and
{@link XListMenuItem::setNavigateUrl NavigateUrl}. The former is used to
determine if the item is active or not, while the latter specifies the
URL for the item. If the latter is not specified, a URL to the page is
generated automatically.
In template, you may use the following tags to specify a menu:
<code>
<com:XListMenu ActiveCssClass="class1" InactiveCssClass="class2">
<com:XListMenuItem Text="Menu 1" PagePath="Page1" />
<com:XListMenuItem Text="Menu 2" PagePath="Page2" NavigateUrl="/page2" />
</com:XListMenu>
</code>