public MainWindow() { InitializeComponent(); //This should be injected as Dependency; JsonPostsViewModel jsonPlaceHolderViewModel = new JsonPostsViewModel(); this.DataContext = jsonPlaceHolderViewModel; }
public void Init() { _jsonPostsViewModel = new JsonPostsViewModel(); Thread.Sleep(5000); }