Skip to content

SegmentedControlMarkupExtensions.OnSelectionChanged method

Subscribes handler to SelectionChanged. Occurs when the selected segment changes.

public static SegmentedControl OnSelectionChanged(this SegmentedControl target,
Action<object?> handler)
parameter description
target Target SegmentedControl.
handler Handler subscribed to SelectionChanged.

The same element for chaining.

Sets: SegmentedControl.SelectionChanged