Share via


RibbonGalleryItem.Ribbon Property

Gets a reference to the Ribbon that this control belongs to.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public ReadOnly Property Ribbon As Ribbon
public Ribbon Ribbon { get; }
public:
property Ribbon^ Ribbon {
    Ribbon^ get ();
}
member Ribbon : Ribbon
function get Ribbon () : Ribbon

Property Value

Type: Microsoft.Windows.Controls.Ribbon.Ribbon
A reference to the Ribbon that this control belongs to. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

RibbonProperty

Metadata properties set to true

None

Remarks

This property is set on the parent Ribbon control and is inherited by the child controls. It is used to access visual style brushes defined on the Ribbon class.

.NET Framework Security

See Also

Reference

RibbonGalleryItem Class

Microsoft.Windows.Controls.Ribbon Namespace