Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarActiveGroupChangingEventArgs.Cancel Property

Gets or sets a value indicating whether the operation which raised an event should be canceled.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public bool Cancel { get; set; }

#Property Value

Type Description
Boolean

true if the operation raising the event should be canceled; otherwise, false.

#Remarks

The NavBarActiveGroupChangingEventArgs object is passed to events that fire before specific initiated actions are completed. The Cancel property of this object enables you to cancel the action which is about to be performed.

For instance, this property is useful when you handle the NavBarViewBase.ActiveGroupChanging event. Set this property to true to cancel activating the processed group. This can be used if you want to prohibit group activation with respect to specific conditions.

See Also