Click or drag to resize
KaxTabOwner Property
Gets the IKaxTabContainer instance which contains the current tab.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public IKaxTabContainer Owner { get; }

Property Value

Type: IKaxTabContainer
The object which contains the tab. It might be an instance of the KaxTabControl class or the KaxTab class depending on the hierarchy level.

Implements

IKaxTabContainerOwner
Remarks
The value is of the IKaxTabContainer type which is implemented by the KaxTabControl class and the KaxTab class. Use the Owner property when recursively traversing tabs in the KaxTabControl control.
Examples
The following example demonstrates how to make a bread crumb trail out of hierarchical KaxTabControl.
void Page_Load(object sender, EventArgs e)
{
    if (KaxTabControl1.SelectedIndex >= 0)
    {
        KaxTab selected = KaxTabControl1.InnermostSelectedTab;
        IKaxTabContainer owner = selected.Owner;
        string breadCrumbTrail = string.Empty;
        while (owner != null)
        {
            breadCrumbTrail =  " > " +  owner.SelectedTab.Text + breadCrumbTrail;
            owner = owner.Owner;
        }
        Label1.Text = breadCrumbTrail;
    }
}
See Also