wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmenteditviewmodelbase-b0bf66ed.md
Stores the additional properties.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public ExpandoDictionaryObject CustomFields { get; }
Public ReadOnly Property CustomFields As ExpandoDictionaryObject
| Type | Description |
|---|---|
| DevExpress.Xpf.Scheduling.ExpandoDictionaryObject |
A DevExpress.Xpf.Scheduling.ExpandoDictionaryObject object.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomFields property.
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.
AppointmentDragResizeViewModel draggedViewModel = e.ViewModels.First() as AppointmentDragResizeViewModel;
if (draggedViewModel.CustomFields["FixedTime"] != null)
if ((bool)draggedViewModel.CustomFields["FixedTime"] &&
Dim draggedViewModel As AppointmentDragResizeViewModel = TryCast(e.ViewModels.First(), AppointmentDragResizeViewModel)
If draggedViewModel.CustomFields("FixedTime") IsNot Nothing Then
If CBool(draggedViewModel.CustomFields("FixedTime")) AndAlso draggedViewModel.Start <> draggedViewModel.Appointment.Start Then e.Allow = False
See Also
AppointmentEditViewModelBase Class