windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-tilenavpane-b1ac5a6f.md
Occurs when the TileNavPane.SelectedElement is about to be changed.
Namespace : DevExpress.XtraBars.Navigation
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public event TileNavPaneSelectedElementEventHandler SelectedElementChanging
<DXCategory("Behavior")>
Public Event SelectedElementChanging As TileNavPaneSelectedElementEventHandler
The SelectedElementChanging event's data class is DevExpress.XtraBars.Navigation.TileNavPaneSelectedElementEventArgs.
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