wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentitemoperationeventargs.md
Gets or sets whether performing a particular action is allowed.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public bool Allow { get; set; }
Public Property Allow As Boolean
| Type | Description |
|---|---|
| Boolean |
true, if an action is allowed; otherwise, false.
|
The action is considered allowed if the Allow property is not set in the corresponding AllowAppointment event handler.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Allow 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-apply-end-user-restrictions/CS/WpfApplication1/MainWindow.xaml.cs#L18
// If the "Disable Creating Appointments" bar item is checked, do not allow appointment creation
e.Allow = false;
return;
wpf-scheduler-apply-end-user-restrictions/VB/WpfApplication1/MainWindow.xaml.vb#L22
' If the "Disable Creating Appointments" bar item is checked, do not allow appointment creation
e.Allow = False
Return
See Also
AppointmentItemOperationEventArgs Class