question about events + audio
Posted: 07 Nov 2025, 03:10
We're having some struggles hooking up events for audio -- specifically getting them to trigger at the proper time (and not when we don't want them to trigger).
An example would be ComboBox -- we can hook into the `SelectionChanged` event to trigger audio when the selection changes, but there are weird edge cases like when we're setting up the initial user interface, the selection is changed, so you hear the audio event.
You can also get into weird situations with this on first load of the user interface when focus and other events fire, but for audio purposes we'd ideally like to ignore them, and only change things as a response to user input.
Has anyone found good patterns to deal with these edge cases?
thanks,
sam
An example would be ComboBox -- we can hook into the `SelectionChanged` event to trigger audio when the selection changes, but there are weird edge cases like when we're setting up the initial user interface, the selection is changed, so you hear the audio event.
You can also get into weird situations with this on first load of the user interface when focus and other events fire, but for audio purposes we'd ideally like to ignore them, and only change things as a response to user input.
Has anyone found good patterns to deal with these edge cases?
thanks,
sam