Back to Devexpress

NavigationFrame.SelectedPageChanging Event

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-navigationframe-1660cb53.md

latest2.1 KB
Original Source

NavigationFrame.SelectedPageChanging Event

Fires when the NavigationFrame is about to change its currently selected page and allows you to cancel this upcoming modification.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Layout")]
public event SelectedPageChangingEventHandler SelectedPageChanging
vb
<DXCategory("Layout")>
Public Event SelectedPageChanging As SelectedPageChangingEventHandler

Event Data

The SelectedPageChanging event's data class is DevExpress.XtraBars.Navigation.SelectedPageChangingEventArgs.

Remarks

Handle the SelectedPageChanging event and set the Cancel property to true to restrict the frame navigation to the specific NavigationPage. If not canceled, the NavigationFrame.SelectedPageChanged event occurs.

The current selection in the frame page is stored in the NavigationFrame.SelectedPage property.

See Also

SelectedPageChanged

SelectedPage

NavigationFrame Class

NavigationFrame Members

DevExpress.XtraBars.Navigation Namespace