We've created an example demonstrating how to implement a BackstageButtonItem with ToggleButton behavior.
This functionality is implemented via a BackstageButtonItem descendant. The BackstageButtonItem acquires the selected state when being clicked. When the BackstageButtonItem is double-clicked, a command assigned to it is executed.