How can we access Ribbon's drop down Pin and settings (a small arrow at the corner)
The way to access this will be using AdWindows.dll which for Revit API is unsupported. You can take a look at some of the examples from the blog The Builder Coder regarding cutomization of the Ribbon using this DLL.
http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html
In the case of supported API, RibbonPanel.AddSlideOut() adds a sliding panel like the one shown to custom Ribbon UI. You can’t do anything with the pin – the user should have control over whether they want it extended or not.
Hope this helps.
Cheers,
here is the code how i get the pin to work.
public void PushButton_Settings(RibbonPanel HyderApp) { HyderApp.AddSlideOut();// this Give me Pin! PushButtonData pushButtonData1 = new PushButtonData("Settings", "File path Settings", _introLabPath, "HCL_Ribbon.Command"); pushButtonData1.LargeImage = NewBitmapImage("Setting-icon.png"); pushButtonData1.Image = NewBitmapImage("Setting-icon.png"); pushButtonData1.ToolTip = "set the path to the folder location"; HyderApp.AddItem(pushButtonData1); }