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.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Scheduler, DevExpress.Wpf.Scheduler
Declaration
public class AppointmentInplaceEditorBase :
UserControl,
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.
Example
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
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentInplaceEditorBase class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.