Only available if ButtonType is either TrayButtonType.ToggleButton or TrayButtonType.PopupToggleButton
The underlying UI ToggleButton has its Checked state bound to IsChecked.
When overridden code or the UI button changes the value of IsChecked, then OnButtonChecked will be invoked.
Normally the UI changes the value of IsChecked, and you can set some corresponding external state within the OnButtonChecked callback.
When changes occur within the corresponding external state, you may want to update the UI Button's appearance only, using SetCheckedNoCallback instead of directly setting IsChecked.
Target Platforms: Windows 11, Windows 10