Skip to main content

SelectorBar

Description​

Use SelectorBar to switch between peer views of one page, and SlideNavigationPresenter to slide the view in from the side the selection moved.

SelectorBar in light mode SelectorBar in dark mode

Example usage​

<fluence:SelectorBar SelectedIndex="0">
<fluence:SelectorBarItem Text="Recent" />
<fluence:SelectorBarItem Text="Shared" />
</fluence:SelectorBar>

Key properties​

PropertyDefaultPurpose
SelectionModeSingleThe control coerces selection to one item.
ItemsSourcenullSupplies view choices from a collection.
DisplayMemberPathEmpty stringSelects a label member for generated items.

State and behavior​

Selection changes the active item. Handle SelectionChanged or bind SelectedItem to update the displayed view; the gallery pairs it with SlideNavigationPresenter.

Parts​

SelectorBarItem​

Description​

SelectorBarItem is a selectable view choice inside SelectorBar. The screenshots show SelectorBarItem inside SelectorBar.

The parent control capture above shows this part in context.

Example usage​

<fluence:SelectorBar SelectedIndex="0">
<fluence:SelectorBarItem Text="Recent" />
<fluence:SelectorBarItem Text="Shared" />
</fluence:SelectorBar>

State and behavior​

The selected item gets the active indicator and its Text and optional Icon remain visible.

Reference​

Events​

SelectionChanged reports a selection change.

Reference​