Created
July 7, 2018 14:19
-
-
Save FraukeN/5528a559c28e6366a196f327a8476ea7 to your computer and use it in GitHub Desktop.
OverviewPage with DI v 1
This file contains 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 OverviewPage() | |
{ | |
InitializeComponent(); | |
IRepository<ToDoItem> repo = SimpleIoc.Default.GetInstance<IRepository<ToDoItem>>(); | |
_viewModel = new OverviewVM(repo); | |
BindingContext = _viewModel; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment