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
35
Custom Appointment Dialog (saving Appointment)
posted

Hi,
I'm testing the 20days trial to decide to buy or not the ultimate suite.
I've a problem to define a custom Appointment dialog using XamlScheduleView.
I've defined:

 class MyScheduleDialogFactory : 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:
                    {
                        // Create the element that represents
                        // the contents of the dialog
                        var vm = new ScheduleAppointmentViewModel() { Activity = activity, AllowModifications = allowModifications, AllowRemove = allowRemove, Container = container, DataManager = dataManager };
                        return new ScheduleAppointmentWindow(vm);
                    }
                default:
                    {
                        // Return null for unsupported activity types.
                        return null;
                    }
            }
        }

    }
 
The ScheduleAppointmentWindow extends Window.
The question is, how can I save/add new appointment by this window? 
I've tried to:  var act = DataManager.CreateNew(ActivityType.Appointment, out dei);
and then filling the properties of "act", but I don't view the new activity in the schedule calendar

Parents
No Data
Reply Children
No Data