I have Views and ViewModels in separated projects.
What is the best practice to getting from some viewmodel config datas, for example username, set of privelleges for users, which I set after launch of application in App.xaml.cs
In older project I had views and viewmodels in the same project, and I was getting this datas by:
App _app = Application.Current as App;
var userName=_app.UserName;
I’m not sure why you have your Views and VMs in seperate projects. We normally use a singleton pattern to store application wide settings e.g.
..and then to use it anywhere in the app: