Dela via


RibbonMenuItem.HasGallery Property

Gets a value that indicates whether at least one menu item is a RibbonGallery.

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

Syntax

'Declaration
Public Property HasGallery As Boolean
public bool HasGallery { get; private set; }
public:
property bool HasGallery {
    bool get ();
    private: void set (bool value);
}
member HasGallery : bool with get, private set
function get HasGallery () : boolean
private function set HasGallery (value : boolean)

Property Value

Type: System.Boolean
true if at least one menu item is a RibbonGallery; otherwise, false. The registered default is true. For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

HasGalleryProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonMenuItem Class

Microsoft.Windows.Controls.Ribbon Namespace