Back to Devexpress

AppointmentItemOperationEventArgs.Allow Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentitemoperationeventargs.md

latest2.6 KB
Original Source

AppointmentItemOperationEventArgs.Allow Property

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

Declaration

csharp
public bool Allow { get; set; }
vb
Public Property Allow As Boolean

Property Value

TypeDescription
Boolean

true, if an action is allowed; otherwise, false.

|

Remarks

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

csharp
// 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

vb
' If the "Disable Creating Appointments" bar item is checked, do not allow appointment creation
e.Allow = False
Return

See Also

AppointmentItemOperationEventArgs Class

AppointmentItemOperationEventArgs Members

DevExpress.Xpf.Scheduling Namespace