コード例 #1
0
        public AddPokemonView()
        {
            InitializeComponent();
            BindingContext = _viewModel = new AddPokemonViewModel();

            NavigationPage.SetBackButtonTitle(this, string.Empty);
        }
コード例 #2
0
        public AddPokemonWindow(ObservableCollection <Pokemon> _pokemons)
        {
            InitializeComponent();
            AddPokemonViewModel vm = new AddPokemonViewModel(_pokemons);

            DataContext    = vm;
            vm.CloseWindow = new System.Action(this.Close);
        }