Hi I have a problem when navigate to CarouselPage in Android.
Below is the my source code in PCL. it works well in iOS, but got System.ArgumentNullException: Argument cannot be null.
please advice.
public class App
{
public static Page GetMainPage()
{
ContentPage root = new ContentPage();
StackLayout stack=new StackLayout();
root.Content = stack;
NavigationPage mainPage= new NavigationPage(root);
stack.Children.Add(
new Button { Command = new Command(() => { mainPage.Navigation.PushAsync(new CarouselPage()); }),
Text = "Test Nav CarouselPage" }
);
return mainPage;
}
}