private void LoadTeamsData() { // get ViewModel instance from App var vm = new MyTeamsViewModel(); viewModel = vm; }
public App() { Locator.CurrentMutable.RegisterConstant(new NativeMessageHandler(), typeof(HttpMessageHandler)); Config.ResourceAssembly = typeof(App).GetTypeInfo().Assembly; ViewModel = new MyTeamsViewModel(); // constructor parameter => Properties //this.Resources.Add("viewModel", ViewModel); }