I have a project where I\'m trying to populate some data in a constructor:
public class ViewModel { public ObservableCollection Data { get;
I use this easy trick.
public sealed partial class NamePage { private readonly Task _initializingTask; public NamePage() { _initializingTask = Init(); } private async Task Init() { /* Initialization that you need with await/async stuff allowed */ } }