Click or drag to resize
KaxNavigationBar Constructor
Initializes a new instance of the KaxNavigationBar class.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public KaxNavigationBar()
Remarks
Use this constructor to create and initialize a new instance of the KaxNavigationBar control.
Examples
The following example demonstrates how to programmatically create a KaxNavigationBar control.
void Page_Load(object sender, EventArgs e)
{
    KaxNavigationBar KaxNavigationBar1 = new KaxNavigationBar();
    KaxNavigationBar1.ID = "KaxNavigationBar1";

    if (!Page.IsPostBack)
    {
        //KaxNavigationBar persist its item in ViewState (if EnableViewState is true). 
        //Hence items should be created only on initial load.

        PadNavigationItem sportItem= new PadNavigationItem("Sport");
        KaxNavigationBar1.Items.Add(sportItem);

        PadNavigationItem newsItem = new PadNavigationItem("News");
        KaxNavigationBar1.Items.Add(newsItem);
    }

    PlaceHolder1.Controls.Add(newsItem);
}
See Also