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();
- }
- }

abdelwaheb ammarPosted Feb 21, 2018, 11:08 AM
Francis BastinPosted Feb 21, 2018, 6:49 AM