public static void CreateUI(RibbonPanel ribbonPanel) { var buttonData = NewPushButtonData <CommandRhinoOptions, Availability> ( CommandName, "Rhino.png", "Shows Rhino Options window" ); // set this button as the panel dialog-launcher (arrow-button at the corner of panel) if (ribbonPanel.AddItem(buttonData) is PushButton pushButton) { ribbonPanel.SetButtonToDialogLauncher(Addin.AddinName, pushButton); } }