Version

GalleryTool Property (GalleryItemGroup)

Returns the owning GalleryTool
Syntax
'Declaration
 
Public ReadOnly Property GalleryTool As GalleryTool
public GalleryTool GalleryTool {get;}
Example
The following example shows how to use the MaxDropDownHeight property to get the owning GalleryTool.

Imports System
Imports System.Windows
Imports Infragistics.Windows.Ribbon


Namespace MyNamespace
    Public Partial Class MyWindow
        Inherits XamRibbonWindow
        Public Sub New()
            InitializeComponent()
        End Sub
       
        Private Sub CheckGalleryTool()
            Dim gallery As GalleryTool = Me.galleryGroup.GalleryTool
        End Sub
    End Class
End Namespace
using System;
using System.Windows;
using Infragistics.Windows.Ribbon;


namespace MyNamespace
{
    public partial class MyWindow : XamRibbonWindow
    {
        public MyWindow()
        {
            InitializeComponent();
        }

        private void CheckGalleryTool()
        {
            // Gallery tool
            GalleryTool gallery = this.galleryGroup.GalleryTool;
	     }
    }
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also