M
M
Mikhailushka2018-12-02 01:10:23
WPF
Mikhailushka, 2018-12-02 01:10:23

How, when a button is pressed, make a link to a new window in which a particular one will be selected from several tabs?

There is an add button, how to make it so that when you click on it, a window opens in which of several tabs (tabcontrol), some specific one is active?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sttrox, 2018-12-03
@noire_night

The simplest solution is to add the index argument of the required tab to the constructor of the window with tabs and assign the index of the selected tab to the SelectedIndex property of the TabControl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question