Share via


SelectorBar.SelectionChanged Event

Definition

Occurs when the SelectorBar selection changes; that is, when the SelectedItem property has changed.

// Register
event_token SelectionChanged(TypedEventHandler<SelectorBar, SelectorBarSelectionChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void SelectionChanged(event_token const* cookie) const;

// Revoke with event_revoker
SelectorBar::SelectionChanged_revoker SelectionChanged(auto_revoke_t, TypedEventHandler<SelectorBar, SelectorBarSelectionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<SelectorBar,SelectorBarSelectionChangedEventArgs> SelectionChanged;
function onSelectionChanged(eventArgs) { /* Your code */ }
selectorBar.addEventListener("selectionchanged", onSelectionChanged);
selectorBar.removeEventListener("selectionchanged", onSelectionChanged);
- or -
selectorBar.onselectionchanged = onSelectionChanged;
Public Custom Event SelectionChanged As TypedEventHandler(Of SelectorBar, SelectorBarSelectionChangedEventArgs) 

Event Type

Remarks

This event is raised when an item is selected, which can happen in one of these ways:

  • The Tapped event through mouse or touch
  • Programmatic selection through the SelectorBar.SelectedItem property
  • Tabbed focus changes (and a new item is selected)
  • Left or right navigation within the SelectorBar
  • UI Automation

Applies to