MVVM-Samples
MVVM-Samples copied to clipboard
Base PageViewModel and PageView
Create BasePageViewModel with methods OnActivated/OnDeactivated (or OnNavigatedTo/OnNavigatefFrom) and PasePage. Invoce corresponding methods of PageViewModel on Page lifecycle. It will allow to move LoadDocsCommand from xaml.cs file to PageViewModel.OnActivated. So we will keep codebehind file empty