Back to Devexpress

AppointmentEditViewModelBase.CustomFields Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmenteditviewmodelbase-b0bf66ed.md

latest2.9 KB
Original Source

AppointmentEditViewModelBase.CustomFields Property

Stores the additional properties.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ExpandoDictionaryObject CustomFields { get; }
vb
Public ReadOnly Property CustomFields As ExpandoDictionaryObject

Property Value

TypeDescription
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.

wpf-scheduler-process-appointment-drag-drop-resize-operations/CS/SchedulerDragDropResizeExample/ViewModel/MainViewModel.cs#L57

csharp
AppointmentDragResizeViewModel draggedViewModel = e.ViewModels.First() as AppointmentDragResizeViewModel;
if (draggedViewModel.CustomFields["FixedTime"] != null)
    if ((bool)draggedViewModel.CustomFields["FixedTime"] &&

wpf-scheduler-process-appointment-drag-drop-resize-operations/VB/SchedulerDragDropResizeExample/ViewModel/MainViewModel.vb#L51

vb
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

AppointmentEditViewModelBase Members

DevExpress.Xpf.Scheduling Namespace