My ViewModel contains a variable that is initialized in a Command and I want to use it in another command. There are 2 Windows: the first window contains a button that launches the first command and open a second window. The second window contains a button that launches the second command. This second command needs the variable initialized by the first command. Both commands are implemented my ViewModel.
Problem: When the second window opens, the variable that has been initialized by the first Command has lost its value (empty string) and I dont understand why.
How can I realize it?