xmlns:syncfusion="clr-namespace:Syncfusion.SfSchedule.XForms;assembly=Syncfusion.SfSchedule.XForms" xmlns:b="clr-namespace:Prism.Behaviors;assembly=Prism.Forms" <syncfusion:SfSchedule x:Name="schedule" DataSource="{Binding Meetings}" ScheduleView="MonthView" > <syncfusion:SfSchedule.Behaviors> <b:EventToCommandBehavior Command="{Binding DayClieckedCommand}" EventName="CellTapped" EventArgsParameterPath="Item" /> </syncfusion:SfSchedule.Behaviors> </syncfusion:SfSchedule> |
public void DayClicked(CellTappedEventArgs args) { System.Diagnostics.Debug.WriteLine("TEST"); } |
Paying it forward in case anyone searches for this and is using Corcav Behaviors like I am in my MVVM architecture...here is all you need to do
The above sample will pass in the entire schedule control.
If you just want the CellTappedParameters then simply use this code
Then in the command cast it like so...
Hi Amen,Thank you for contacting Syncfusion Support.Based on the provided information, we have checked the issue with “System.ArgumentException has been thrown while using EventToCommand behavior in SfCalendar” and it is working fine from our side. We have prepared a sample, please find the sample from the below link.If the given sample also doesn’t meet your requirement, could you please modify the provided sample along with its reproducing procedure? It will be helpful for us to analyze on your requirement and provide you a possible solution.Please let us know if you have any concern.Regards,
Vigneshkumar R
Hi Amen,
Thanks for the update.
Based on the provided information, we have checked and we are able to reproduce the mentioned issue " System.ArgumentException has been thrown while using EventToCommand behavior in SfCalendar " from our side. We have already logged issue report on this, we will provide fix for the reported issue in our upcoming Volume 3 SP1 release, which will be rolled out in the end of October. We appreciate your patience until then.
Regards,
Vigneshkumar R
Hi Amen,
Thank you for your patience.
We have fixed the issue’s with “System.ArgumentException has been thrown while using EventToCommand behavior in SfCalendar”. As per the implementation Monthcell is moved to EventArgs from View and it is deprecated in OnMonthCellLoaded event and use MonthCellLoadedEventArgs. Please find the Custom assemblies for this fix below.
Custom assemblies: http://www.syncfusion.com/downloads/support/directtrac/217023/ze/Assembly1814496033.zip
Please clear the NuGet cache before replacing the custom assemblies. Please find the link below,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Assembly Version: 16.3.0.21
Installation Directions:
Replace the files “Syncfusion.SfCalendar.XForms.dll, Syncfusion.SfCalendar.XForms.Android.dll, Syncfusion.SfCalendar.XForms.iOS.dll” under following folders. Before replacing the new assemblies please take backup of old assemblies.
{Syncfusion Installed location} \Essential Studio\16.3.0.21\Xamarin\lib\pcl\Syncfusion.SfCalendar.XForms.dll
{Syncfusion Installed location} \Essential Studio\16.3.0.21\Xamarin\lib\Android\Syncfusion.SfCalendar.XForms.dll
{Syncfusion Installed location}\EssentialStudio\16.3.0.21\Xamarin\lib\Android\Syncfusion.SfCalendar.XForms.Android.dll
{Syncfusion Installed location} \Essential Studio\16.3.0.21\Xamarin\lib\iOS\Syncfusion.SfCalendar.XForms.dll
{Syncfusion Installed location}\EssentialStudio\16.3.0.21\Xamarin\lib\iOS\Syncfusion.SfCalendar.XForms.iOS.dll
Disclaimer:
Please note that we have created these custom assemblies for version 16.3.0.21 .This fix will be included in our upcoming Vol 3 SP1 release which is expected to be available by end of October 2018. Please use the provided assemblies and let us know if you have any concern.
Regards,
Vigneshkumar R