public void Test_focus(Object o, EventArgs e)
{
if (stageTabCtrl.SelectedItem == EventBrowser)
{
MsgBox.Show("EventBrowser");
}
else if (stageTabCtrl.SelectedItem == Live_View)
{
MsgBox.Show("Live_View");
}
}
<tabcontrol borderthickness="1,0,1,1" name="stageTabCtrl" gotfocus="Test_focus"></tabcontrol>