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.
Example usage
- XAML
- C#
<fluence:SelectorBar SelectedIndex="0">
<fluence:SelectorBarItem Text="Recent" />
<fluence:SelectorBarItem Text="Shared" />
</fluence:SelectorBar>
var views = new Fluence.Wpf.Controls.SelectorBar();
views.Items.Add(new Fluence.Wpf.Controls.SelectorBarItem { Text = "Recent" });
Key properties
| Property | Default | Purpose |
|---|---|---|
SelectionMode | Single | The control coerces selection to one item. |
ItemsSource | null | Supplies view choices from a collection. |
DisplayMemberPath | Empty string | Selects 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.