Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Launching ActivityRecurrenceDialogCore
posted

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 

Parents
No Data
Reply
  • 6365
    Offline posted

    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);

    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.

    xamSchedule_dayActivities.zip
Children