RibbonFlyOutAnchor

Represents a FlyOutAnchor control in the SharePoint Server Ribbon.
SharePoint 2010 Ribbon FlyOut Anchor

Inheritance Hierarchy


Assembly: QASPRibbon.dll
Namespace: QASPRibbon.Controls

Properties

Property Type Description
Id String A string that identifies the flyout anchor, such as "RibbonControl". (Inherited from RibbonElement)
Title String A string value representing the flyout anchor's label. (Inherited from RibbonElement)
Visible Boolean A value that indicates whether a flyout anchor control is rendered on the ribbon. (Inherited from RibbonVisualControl)
Enabled Boolean A value that indicates whether a flyout anchor control is enabled. (Inherited from RibbonVisualControl)
ToolTip RibbonToolTip The tooltip of the flyout anchor. (Inherited from RibbonVisualControl)
Alt String An alternative text that is used for the flyout anchor.
CacheMenuVersions Boolean A value that indicates whether constructed versions of a dynamic menu is stored to use in next time. The default is False.
PopulateDynamically Boolean A value that indicates whether a menu will be created dynamically (True) or not (False). The default is False.
PopulateOnlyOnce Boolean A value that indicates whether a dynamic menu will be populated only the first time that it is accessed. The default is False.
Sections IEnumerable<RibbonMenuSection> Sections used in root level of this flyout anchor.
OnClientActivate String Client-side script that executes when a flyout anchor is activated.
OnClientStateCheck String Client-side script that executes before checking flyout anchor is enabled or not.
OnClientMenuClose String Client-side script that executes when menu is closed.

Constructors

public RibbonFlyOutAnchor()

public RibbonFlyOutAnchor(string id)

public RibbonFlyOutAnchor(string id, string title)

Example

The following example defines a flyout anchor control with tooltip.
//ToolTip
var simpleFlyOutAnchorToolTip = new RibbonToolTip("ToolTip Title", "ToolTip Description");
//FlyOutAnchor
var simpleFlyOutAnchor = new RibbonFlyOutAnchor("FlyOutAnchor", "FlyOut Anchor")
                    {
                        ToolTip = simpleFlyOutAnchorToolTip,
                        Sections = new []
                        {
                            new RibbonMenuSection("Section1", "Section #1")
                            {
                                DisplayMode = RibbonMenuDisplayMode.Menu16, //Text only
                                Controls = new RibbonControl[]
                                {
                                    new RibbonButton("MS", "Microsoft")
                                    {
                                        OnClientClick = "alert('Microsoft');"
                                    }
                                }
                            }
                        }
                    };

See also




Last edited Dec 24, 2012 at 11:04 AM by VitalyZhukov, version 4

Comments

No comments yet.