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

class

SegmentedPivot

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

NameDescription
SegmentedPivotInitializes a new instance of this class.
Constructor
SegmentedPivot
public SegmentedPivot()

Initializes a new instance of this class.

Properties

NameDescription
SelectedTabGets or sets the selected tab.
Property
SegmentedPivot.SelectedTab
public string SelectedTab

Gets or sets the selected tab.

Methods

NameDescription
OnBeforeNavigateRegisters a callback invoked when the before navigate event fires.
OnNavigateRegisters a callback invoked when the navigate event fires.
SelectConfigures the component to select.
AsObservableReturns an observable that tracks the id of the currently-selected tab.
SetBoundValueProgrammatically selects a tab by id as part of a two-way binding.
RenderRenders the component's root HTML element.
Method
SegmentedPivot.OnBeforeNavigate
public SegmentedPivot OnBeforeNavigate(PivotEventHandler<PivotBeforeNavigateEvent> onBeforeNavigate)

Registers a callback invoked when the before navigate event fires.

Method
SegmentedPivot.OnNavigate
public SegmentedPivot OnNavigate(PivotEventHandler<PivotNavigateEvent> onNavigate)

Registers a callback invoked when the navigate event fires.

Method
SegmentedPivot.Select
public SegmentedPivot Select(string id, bool refresh = false)

Configures the component to select.

Method
SegmentedPivot.AsObservable
public IObservable<string> AsObservable()

Returns an observable that tracks the id of the currently-selected tab.

Method
SegmentedPivot.SetBoundValue
public void SetBoundValue(string value)

Programmatically selects a tab by id as part of a two-way binding.

Method
SegmentedPivot.Render
public HTMLElement Render()

Renders the component's root HTML element.

See also

© 2026 Curiosity. All rights reserved.