public ViewModelLocator() { FillDefaultSettings(); SettingsViewModel = new SettingsViewModel(this); DrumsViewModel = new DrumsViewModel(this); }
// Constructor public MainPage() { InitializeComponent(); _drums = ((ViewModelLocator) Application.Current.Resources["viewModelLocator"]).DrumsViewModel; InitializePaths(); Touch.FrameReported += Check; }