I was a bit frustrated with the collapsing feature that hides the text of the buttons when the window is not wide enough, because only the buttons are affected, not the dropdownbuttons and splitbuttons, leading to a weird looking result when they are mixed in a same group.
I found the following solution: derive from DropDownButton, and override CreateChildElements with
I found the following solution: derive from DropDownButton, and override CreateChildElements with
base.CreateChildElements();
CollapsableButtonAdapter adapter = new CollapsableButtonAdapter(ActionButton)
{ ShouldHandleMouseInput = false }; // otherwise, the adapter swallows the clicks
Children.Add(adapter);