public AddPokemonView() { InitializeComponent(); BindingContext = _viewModel = new AddPokemonViewModel(); NavigationPage.SetBackButtonTitle(this, string.Empty); }
public AddPokemonWindow(ObservableCollection <Pokemon> _pokemons) { InitializeComponent(); AddPokemonViewModel vm = new AddPokemonViewModel(_pokemons); DataContext = vm; vm.CloseWindow = new System.Action(this.Close); }