Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

The Name Navigation does not exists

$
0
0

Hi,

I just encountered a strange error message. I try to Push a New Page on the Navigationstack from one of my ViewModels, but the Compiler tells me, that Navigation does not exist. Here is my File:

{
using System;
using System.IO;

using Xamarin.Forms;
using BREADy;
using BREADy.Views;

namespace BREADy.ViewModels
{

public class GalleryViewModelIngredients : GalleryViewModel {

    public void AddNewIngredient() {
    }

    protected override void AddEntry()
    {
        IngredientViewModel viewModel = new IngredientViewModel(true);

        Navigation.PushAsync(new IngredientView(viewModel));
    }

}

}
}


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>