AppointmentInplaceEditorBase Class

Provides all the settings which are required to edit a particular appointment in a custom in-place editor.

Namespace: DevExpress.Xpf.Scheduler.UI

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

public class AppointmentInplaceEditorBase :
    UserControl,
    ISchedulerInplaceEditorEx,
    IDisposable
Public Class AppointmentInplaceEditorBase
    Inherits UserControl
    Implements ISchedulerInplaceEditorEx,
               IDisposable

Remarks

IMPORTANT

You are viewing documentation for the legacy WPF Scheduler control. If you're starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The AppointmentInplaceEditorBase class enables you to create your own custom in-place editor, and use it instead of the default editor. It can be helpful, for example, when it is necessary to create something between an Edit Appointment form and simple subject in-place editor.

NOTE

To substitute the standard in-place editor with your own custom editor, handle the SchedulerControl.InplaceEditorShowing event and use the InplaceEditorEventArgs.InplaceEditor property.

Examples

This example illustrates how to create a custom in-place editor using the AppointmentInplaceEditorBase class.

Partial Public Class CustomInplaceEditor
    Inherits AppointmentInplaceEditorBase
    Public Sub New(ByVal control As SchedulerControl, ByVal apt As Appointment)
        MyBase.New(control, apt)
        InitializeComponent()
    End Sub

    Private Sub OK_button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        OnCommitChanges()
    End Sub

    Private Sub Cancel_button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        OnRollbackChanges()
    End Sub
End Class
See Also