SegmentedPivot
Description
A segmented navigation pivot
A SegmentedPivot is a tabbed interface styled as a segmented control. It's best used for toggling between closely related views or filters where space is limited.
The active tab's content is wrapped the same way a Stack wraps its children, so sizing extensions such as .S(), .WS(), .HS(), and .Grow() applied to the component returned by a tab's content factory take effect on the wrapper and fill the available space — the same behavior as adding a component to a Stack.
Sample
API reference
public sealed class SegmentedPivot : IComponent, IBindableComponent<string>A pill-style pivot variant where the tabs share a connected segmented-control look.
- Namespace
- Tesserae
- Implements
- IComponent, IBindableComponent<string>
Constructors
| Name | Description |
|---|---|
| SegmentedPivot | Initializes a new instance of this class. |
Properties
| Name | Description |
|---|---|
| SelectedTab | Gets or sets the selected tab. |
Methods
| Name | Description |
|---|---|
| OnBeforeNavigate | Registers a callback invoked when the before navigate event fires. |
| OnNavigate | Registers a callback invoked when the navigate event fires. |
| Select | Configures the component to select. |
| AsObservable | Returns an observable that tracks the id of the currently-selected tab. |
| SetBoundValue | Programmatically selects a tab by id as part of a two-way binding. |
| Render | Renders the component's root HTML element. |
public SegmentedPivot Select(string id, bool refresh = false)Configures the component to select.
public IObservable<string> AsObservable()Returns an observable that tracks the id of the currently-selected tab.
public void SetBoundValue(string value)Programmatically selects a tab by id as part of a two-way binding.