Hello,the current task is to provide some UI for configuring a cron job expression of a Quartz job. In order not to re-building that UI, the idea is to have a button in the configuration tool bound to an ICommand and an action that shows up the ActivityRecurrenceDialogCore.
While the documentation always is in relation with a XamScheduleView or ssth. similar, my interest is about a simple most example how to show that ActivityRecurrenceDialogCore.
Best regards,Juergen
Hello Juergen,
In order to display the ActivityRecurrenceDialogCore element for a specific activity, you can use the DisplayActivityRecurrenceDialog method of the XamScheduleDataManager by passing the respective parameters.
For example:
// Get specific appointment.var appointment = (this.DataContext as ScheduleData).Appointments.First(a => a.Subject == "Sprint planning"); // Display the recurrence dialog for the respective appointment.dataManager.DisplayActivityRecurrenceDialog(myView, appointment, "Recurrence Dialog for '" + appointment.Subject + "' activity", null, null);
// Display the recurrence dialog for the respective appointment.dataManager.DisplayActivityRecurrenceDialog(myView, appointment, "Recurrence Dialog for '" + appointment.Subject + "' activity", null, null);
The XamScheduleDataManager introduces even more methods that can be used for displaying various dialogs. For more details on this, you can take a look at the following topic.
I have attached a sample application that demonstrates the approach from above.
If you have any questions, please let me know.
Hello Tacho,thank you very much for your quick help. This is exactly what I was searching for. Thanks and best regards,
Juergen