if ( itemIndex !== undefined && items[ itemIndex ] ) {
        tabPanel = items[ itemIndex ];
    } else {
        tabPanel = this.stackLayout.getCurrentItem();
    }