I have a LoginWindows, that run in startup.
I have a enterButton ,when click it, send a parametr to mainwindows and show it then hide self.
public RelayCommand EnterCommand { get; set; }
...
public LoginViewModel()
{
EnterCommand = new RelayCommand(() => Enter());
}
private object Enter()
{
//Show MainWndow
}
What is the best way to open a new window from the viewmodel in mvvmLight?