Hello,
I am using the XamMonthView which is binding to my own custom data and I am using property mapping to map my properties to the task properties which is working fine, however I want to be able to set the recurrence and the reminder using my own custom objects however I'm struggling to find the functionality.
I see there are the following properties I can map to:
<ig:TaskPropertyMapping TaskProperty="ReminderEnabled" DataObjectProperty="ReminderEnabled" /> <ig:TaskPropertyMapping TaskProperty="ReminderInterval" DataObjectProperty="ReminderInterval" /><ig:TaskPropertyMapping TaskProperty="Reminder" DataObjectProperty="Reminder" /><ig:TaskPropertyMapping TaskProperty="Recurrence" DataObjectProperty="Recurrence" />
However it isn't getting the desired affect, my Reminder class that it is looking at it:
public class Reminder { public bool IsSnoozed { get; set; } public DateTime LastDisplayedTime { get; set; } public DateTime LastSnoozeTime { get; set; } public TimeSpan SnoozeInterval { get; set; } public string Text { get; set; } public string UserData { get; set; } }Which looks exactly the same as yours:
http://help.infragistics.com/Help/Doc/WPF/2012.1/CLR4.0/html/InfragisticsWPF4.Controls.Schedules.v12.1~Infragistics.Controls.Schedules.Reminder_members.html
How can I get the reminder mapping to work as well as the recurrence. A small sample project would be much appreciated
Thanks, Grant
Hello Grant,
Thank you for your post!
Currently the functionality to map custom Reminders or Recurrences does not exist within the XamSchedule controls. The source code of the control expects a RecurrenceBase object for the Recurrence and a Reminder object for the Reminder (or an object that derives from these).
I have attached a sample project that demonstrates the mappings working with a custom object in place of the Tasks, but the TaskPropertyMappings only relate to Task-related things which the custom object has a property for.
If you would like to see a way to map the Recurrences and Reminders of the XamSchedule controls, I would recommend that you consider placing a new product idea for it at http://ideas.infragistics.com.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hi,
Thanks for the answer it was helpful! Solved my issues