// Constructor public MainPage() { InitializeComponent(); DataContext = viewModel; viewModel.IsLoading = true; this.Loaded += (s, e) => viewModel.OnLoad(); this.Loaded += (s, e) => lst.SelectedIndex = -1; }