Skip to main content

AppointmentResourceEdit.ShowEmptyResource Property

Gets or sets whether the AppointmentResourceEdit control allows selecting (Any) resource which specifies an empty resource object. This is a dependency property.

Namespace: DevExpress.Xpf.Scheduling.Editors

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

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public bool ShowEmptyResource { get; set; }

Property Value

Type Description
Boolean

true, to show the empty resource item; otherwise, false.

Remarks

The (Any) item is a special object (empty resource) indicating that no resource is associated with that appointment. This object is obtained using the ResourceItemEmpty.Resource property.

Set the ShowEmptyResource to false to hide the EmptyResource item in the AppointmentResourceEdit control.

Tip

The empty resource’s caption is localizable and specified by the SchedulerStringId.Caption_EmptyResource identifier.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowEmptyResource 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.

See Also