Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
When trying to use the scenario that the schedule shows the appointment in the client TimeZone I'm having trouble using the mapping.
My definition is
EndTimeMapping="To"
StartTimeMapping="From"
StartTimeZoneMapping="TimeZone"
EndTimeZoneMapping="TimeZone"
SubjectMapping="Title"
ColorMapping="Color"
IsAllDayMapping="IsBirthday"/>
The object has for example "UTC" or "
" in the TimeZone property.
But when accessing the page I get the following error.
[0:] System.ArgumentException: An item with the same key has already been added. Key: TimeZone
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:572
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/Generic/Dictionary.cs:240
at Syncfusion.SfSchedule.XForms.Droid.SfScheduleMapping.GetCustomAppointmentProperties (System.Object formsAppointmentObject, System.Collections.Generic.Dictionary`2[TKey,TValue] appointmentProperties, Syncfusion.SfSchedule.XForms.SfSchedule _formSchedule) [0x00118] in <7803b14dc7af478589a818a6d379d6f9>:0
at Syncfusion.SfSchedule.XForms.Droid.SfScheduleMapping.GetAppointmentRunTimeProperties (System.Object formsAppointmentObject, Syncfusion.SfSchedule.XForms.SfSchedule _formSchedule) [0x00030] in <7803b14dc7af478589a818a6d379d6f9>:0
at Syncfusion.SfSchedule.XForms.Droid.SfScheduleMapping.Appointments_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0002e] in <7803b14dc7af478589a818a6d379d6f9>:0
at (wrapper delegate-invoke)
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00018] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:263
at BoxPlanner.Toolbox.TrulyObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x000df] in C:\Users\Micha\source\repos\BoxPlannerMobile\BoxPlanner\BoxPlanner\Toolbox\TrulyObservableCollection.cs:77
at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:338
at System.Collections.ObjectModel.ObservableCollection`1[T].InsertItem (System.Int32 index, T item) [0x0001a] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.ObjectModel/src/System/Collections/ObjectModel/ObservableCollection.cs:196
at System.Collections.ObjectModel.Collection`1[T].Add (T item) [0x00020] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Collections/ObjectModel/Collection.cs:71
at BoxPlanner.Views.Pages.Calendar.CalendarPageModel.ExecuteLoadItemsCommand (System.DateTime date, System.Boolean add) [0x0057d] in C:\Users\Micha\source\repos\BoxPlannerMobile\BoxPlanner\BoxPlanner\Views\Pages\Calendar\CalendarPageModel.cs:333