Hello there! Working in xamarin forms. How do I reference a content view from a content page but also include passing information like below?
await Navigation.PushAsync(new SecondContentPage(new NextViewModel(FirstViewModel.id)));
I've tried xaml binding context but don't know where to go from there and it keeps giving me errors about a parameterless constructor.
<StackLayout> <local:SecondContentView> <local:SecondContentView.BindingContext> <viewmodel:NextViewModel></viewmodel:NextViewModel> </local:SecondContentView.BindingContext> </local:SecondContentView> </StackLayout>
I need the id passed along basically so that the list can run on the content view. thanks all