This time I must be migrate MVVMLight and replace it with Microsoft.Toolkit.MVVM.
In the documentation is written there's no direct replacement for IsInDesignMode, altered or remove it.
I don't know any option to alter it, can anyone help me ?
public MainViewModel()
{
//To Migrate GalaSoft there's no direct replacement for IsInDesignMode, remove
//if (IsInDesignMode)
//{
// // Code runs in Blend --> create design time data.
//}
//else
//{
// Code runs "for real"
this.app = (App)Application.Current;
//}
}
The general idea would be as follows, WPF for instance:
You can inject it differently, querying a platform-provided service for instance, I guess you get the point.