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
1465
Custom Appointment Dialog not modal
posted

I am doing the following to load my own custom appointment dialog, it sort of works, as in it loads my view but I was wondering if there is a cleaner approach. I also need the appointment dialog to be modal and there does not seem to be a way of doing this.

public

class CustomScheduleDialogFactory : ScheduleDialogFactoryBase

    {

public override ActivityTypes SupportedActivityDialogTypes        {   

 

get { return ActivityTypes.Appointment; }

        }

public override FrameworkElement CreateActivityDialog(

FrameworkElement container,       

XamScheduleDataManager dataManager,

ActivityBase activity,        

bool allowModifications,

bool allowRemove)

        {           

switch (activity.ActivityType)

            {

case ActivityType.Appointment:

                    {                

AppointmentDialogView view = new AppointmentDialogView(activity as Appointment, null);

                    return view;

                    }

default:              {                       

return null;

                    }

            }

        }

    }