Created
May 5, 2018 11:21
-
-
Save FraukeN/db44d571a7d0f1a4ae36efa6edc16fbc to your computer and use it in GitHub Desktop.
OverviewPage with data loading in OnAppearing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class OverviewPage : ContentPage | |
{ | |
private OverviewVM _viewModel; | |
public OverviewPage() | |
{ | |
InitializeComponent(); | |
_viewModel = new OverviewVM(); | |
BindingContext = _viewModel; | |
} | |
protected override async void OnAppearing() | |
{ | |
base.OnAppearing(); | |
await _viewModel.LoadData(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment