I have created a shell page and trying to call a content page as per following code in xamarin forms public
AppShell() { Routing.RegisterRoute("itemdetails", typeof(ItemDetailPage)); }
Following is the event on which i am calling content page - itemdetails page alongwith selected categoryid as parameter
private async void CategoriesCollectionView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
int selectedCategoryId = ((CategoryMasterWithImage)e.CurrentSelection[0]).CategoryId;
Application.Current.Properties["SelectedCategoryId"] = selectedCategoryId.ToString();
await Shell.Current.GoToAsync($"itemdetails?name={selectedCategoryId}");
public ItemDetailPage(int categoryId)
{
InitializeComponent();
productCategoryId = categoryId;
}
This is constructor of ItemDetailPage.. When i am calling this is saying: No Default Constructor found for ItemDetailPage