Topic: a C# .NET Revit add-in demonstrating use of a split ribbon button to access a secondary command, e.g., option settings. In the Revit API discussion forum thread on using a
StackButton as a
PushButton with options, Allan 'aksaks' Seidel recently proposed a neat UI trick, saying: Perhaps this idea might be usable for others. The
StackButton ribbon control is a stack of different
PushButton instances where the last used
PushButton remains visible to be used again. That visible button is reflected in the stack button's
CurrentButton property. Imagine if the
StackButton control always shows the first button in the stack, and the other button(s) are secondary to the first button's purpose...