/// <summary>
        /// Begins when the behavior attached to the view
        /// </summary>
        /// <param name="bindable">bindable param</param>
        protected override void OnDetachingFrom(ContentPage bindable)
        {
            this.schedule.CellDoubleTapped -= this.OnSchedulerCellDoubleTapped;
            (this.editorLayout.BindingContext as EditorLayoutViewModel).AppointmentModified -= this.OnEditorLayoutAppointmentModified;

            this.schedule     = null;
            this.editorLayout = null;
        }
        /// <summary>
        /// Begins when the behavior attached to the view.
        /// </summary>
        /// <param name="bindable">bindable value</param>
        protected override void OnAttachedTo(ContentPage bindable)
        {
            this.schedule = (bindable.Content as Grid).Children[0] as Syncfusion.SfSchedule.XForms.SfSchedule;

            this.editorLayout = (bindable.Content as Grid).Children[1] as EditorLayout;

            this.schedule.TimelineViewSettings.AppointmentHeight = 1000;

            if (Device.RuntimePlatform == Device.Android)
            {
                this.schedule.ViewHeaderStyle.DateFontSize = 24;
            }

            this.schedule.CellDoubleTapped += this.OnSchedulerCellDoubleTapped;
            (this.editorLayout.BindingContext as EditorLayoutViewModel).AppointmentModified += this.OnEditorLayoutAppointmentModified;
            (this.editorLayout.Behaviors[0] as EditorLayoutBehavior).AddEditorElements();
        }