Search code examples
wpffocustabcontroltabitem

Focus the controls in a Tabcontrol


How can focus the controls when select a tabitem in a tabcontrol?


Solution

  • You should capture the Selection changed event of the TabControl and inside that you focus the control you need. Just as

    private void TabControl1_SelectionChanged(object sender, EventArgs e)
    {
        control1.Focus();
    }