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

TileNavPane.SelectedElementChanging Event

Occurs when the TileNavPane.SelectedElement is about to be changed.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Behavior")]
public event TileNavPaneSelectedElementEventHandler SelectedElementChanging

#Event Data

The SelectedElementChanging event's data class is DevExpress.XtraBars.Navigation.TileNavPaneSelectedElementEventArgs.

#Remarks

The SelectedElementChanging event allows you to cancel changing the selected element (TileNavPane.SelectedElement). To do this, set the TileNavPaneSelectedElementEventArgs.Cancel property to true.

You can also obtain the previously and newly selected navigation element with the TileNavPaneSelectedElementEventArgs.PreviousElement and TileNavPaneSelectedElementEventArgs.Element event parameters, respectively.

The TileNavPane.SelectedElementChanged event is raised after the TileNavPane.SelectedElement is changed.

See Also