SchedulerControl.ReplaceService<T>(T) Method
Performs a service substitution.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduler
Declaration
Parameters
Name | Type | Description |
---|---|---|
newService | T | A new service to replace. |
Type Parameters
Name |
---|
T |
Returns
Type | Description |
---|---|
T | Previously registered service of the specified type, or null (Nothing in Visual Basic) if the service does not exist. |
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.
Use the ReplaceService<T> method instead of the SchedulerControl.GetService -> SchedulerControl.RemoveService -> SchedulerControl.AddService method sequence.