Hi,
I'm using SfSchedule in a POC Xamarin.Forms project using Prism. I'm displaying schedule items in a Month view and when I tap on a cell I want to navigate away to another page using Prism's navigation service. When I changed my code to inject the the INavigationService into the ViewModel constructor for the schedule page I got the following error: Missing default constructor for 'ProductViewer.ViewModels.ScheduleViewModel' with File: SyncFusionSchedule.xaml line 16.
I assume syncefusion is expecting a default constructor which takes no parameters but how can I inject and use Prism navigation service here?
My Code:
public ScheduleViewModel(INavigationService naviagtionService)
: base(naviagtionService)
{
Title = "";
ScheduleCellTapped = new Command<CellTappedEventArgs>(CellTappedAsync);
...
}
Thanks for any help.
Eddie.