Back to Devexpress

TileNavPane.SelectedElement Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-tilenavpane-26eaffb0.md

latest3.3 KB
Original Source

TileNavPane.SelectedElement Property

Gets or sets the NavElement currently selected in the TileNavPane.

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public NavElement SelectedElement { get; set; }
vb
<Browsable(False)>
Public Property SelectedElement As NavElement

Property Value

TypeDescription
NavElement

The NavElement object which is currently selected in the TileNavPane.

|

Remarks

An end-user can select a NavElement by clicking a tile in a drop-down tile bar. A NavElement currently selected in the TileNavPane is displayed as the last link of the breadcrumbs navigation aid.

Read the SelectedElement property to get the currently selected NavElement. If no element is selected in the TileNavPane the SelectedElement property returns null ( Nothing in VB). You can also use the SelectedElement property to select the NavElement in code.

In the following picture, the NavElement captioned Esitmated revenue is the TileNavPane‘s currently selected element.

You can also respond to changing the selected element by handling the TileNavPane.SelectedElementChanging and TileNavPane.SelectedElementChanged events.

See Also

SelectedElementChanging

SelectedElementChanged

ContinuousNavigation

AppearanceItem

TileNavPane Class

TileNavPane Members

DevExpress.XtraBars.Navigation Namespace