Good evening, I try to link the window WPF "MainWindow" with another window WPF that I name it "window". I write this code with MVVMLight Toolkit:
ViewModel / MainViewModel.cs
- public class MainViewModel : ViewModelBase
- {
- public ICommand Save { get; set; }
- public MainViewModel()
- {
- ave = new RelayCommand(CommandSave);
- }
- rivate void CommandSave()
- {
- fenetre windows = new fenetre();
- windows.Show();
- }
- }


Francis Bastin149 reputationPosted Feb 21, 2018, 1:49 AM EST
abdelwaheb ammarRank #4,571 · 337 reputationPosted Feb 21, 2018, 6:08 AM EST